[GitHub] [incubator-flagon-useralejs] poorejc commented on issue #50: sendOnClose function broken -- logs dropped when users navigate away from page

2021-04-16 Thread GitBox
poorejc commented on issue #50: URL: https://github.com/apache/incubator-flagon-useralejs/issues/50#issuecomment-821766828 > All of the tests in the [merged branch](https://github.com/apache/incubator-flagon-useralejs/tree/UncleGedd-sendOnClose) are passing on my end, using Node version

[GitHub] [incubator-flagon-useralejs] poorejc commented on issue #50: sendOnClose function broken -- logs dropped when users navigate away from page

2021-04-07 Thread GitBox
poorejc commented on issue #50: URL: https://github.com/apache/incubator-flagon-useralejs/issues/50#issuecomment-815408726 Great info, @UncleGedd. I’ll try testing it again with your parameters ASAP. Thanks again! > On Apr 6, 2021, at 4:45 PM, UncleGedd ***@***.***> wrote: >

[GitHub] [incubator-flagon-useralejs] poorejc commented on issue #50: sendOnClose function broken -- logs dropped when users navigate away from page

2021-04-02 Thread GitBox
poorejc commented on issue #50: URL: https://github.com/apache/incubator-flagon-useralejs/issues/50#issuecomment-812802241 Did some quick testing on https://github.com/apache/incubator-flagon-useralejs/tree/flagon-userale-50 BLUF: flipped out visibilitychange for pagehide listener.

[GitHub] [incubator-flagon-useralejs] poorejc commented on issue #50: sendOnClose function broken -- logs dropped when users navigate away from page

2021-04-02 Thread GitBox
poorejc commented on issue #50: URL: https://github.com/apache/incubator-flagon-useralejs/issues/50#issuecomment-812796025 @UncleGedd, @confusingstraw I beat up the webworkers pretty good in Chrome and Safari. BLUF: The web-worker solution does appear to work, but there's still

[GitHub] [incubator-flagon-useralejs] poorejc commented on issue #50: sendOnClose function broken -- logs dropped when users navigate away from page

2021-04-01 Thread GitBox
poorejc commented on issue #50: URL: https://github.com/apache/incubator-flagon-useralejs/issues/50#issuecomment-812314024 > I finished up the spike and put it in a branch [here](https://github.com/UncleGedd/incubator-flagon-useralejs/tree/spike-workers). I was able to get a decent unit

[GitHub] [incubator-flagon-useralejs] poorejc commented on issue #50: sendOnClose function broken -- logs dropped when users navigate away from page

2021-03-31 Thread GitBox
poorejc commented on issue #50: URL: https://github.com/apache/incubator-flagon-useralejs/issues/50#issuecomment-811511744 @UncleGedd thanks again! I'll take a look at this branch tomorrow, test like hell. Also, I'll try out some of the other events Rob discovered aside from

[GitHub] [incubator-flagon-useralejs] poorejc commented on issue #50: sendOnClose function broken -- logs dropped when users navigate away from page

2021-03-26 Thread GitBox
poorejc commented on issue #50: URL: https://github.com/apache/incubator-flagon-useralejs/issues/50#issuecomment-808621268 @confusingstraw you've always been someone I consider imminently sane. Sounds like the right way to go is [3] Websockets @confusingstraw makes a compelling

[GitHub] [incubator-flagon-useralejs] poorejc commented on issue #50: sendOnClose function broken -- logs dropped when users navigate away from page

2021-03-25 Thread GitBox
poorejc commented on issue #50: URL: https://github.com/apache/incubator-flagon-useralejs/issues/50#issuecomment-806930053 > No problem! Also, welcome @kevbrowndev! > > Regarding the other failing unit test: > > ```js > it('sends logs on page exit without navigator', () =>

[GitHub] [incubator-flagon-useralejs] poorejc commented on issue #50: sendOnClose function broken -- logs dropped when users navigate away from page

2021-03-25 Thread GitBox
poorejc commented on issue #50: URL: https://github.com/apache/incubator-flagon-useralejs/issues/50#issuecomment-806908863 > Ok, so I've tried writing a cypress/journey test for `sendBeacon` and it's pretty flaky, but manual testing works in the browser (Chrome) consistently though

[GitHub] [incubator-flagon-useralejs] poorejc commented on issue #50: sendOnClose function broken -- logs dropped when users navigate away from page

2021-03-23 Thread GitBox
poorejc commented on issue #50: URL: https://github.com/apache/incubator-flagon-useralejs/issues/50#issuecomment-805452663 @UncleGedd are you open to helping me test this out a bit? I'm digging into this one tomorrow night, but if you're into it, I would love some more testing on this

[GitHub] [incubator-flagon-useralejs] poorejc commented on issue #50: sendOnClose function broken -- logs dropped when users navigate away from page

2021-03-19 Thread GitBox
poorejc commented on issue #50: URL: https://github.com/apache/incubator-flagon-useralejs/issues/50#issuecomment-803046568 That's great literature, @confusingstraw. Thanks! I'll checkout firing on pageHide and test against page refresh and navigation, closure. Looks like support for

[GitHub] [incubator-flagon-useralejs] poorejc commented on issue #50: sendOnClose function broken -- logs dropped when users navigate away from page

2021-03-18 Thread GitBox
poorejc commented on issue #50: URL: https://github.com/apache/incubator-flagon-useralejs/issues/50#issuecomment-802499142 Removed sendOnRefresh from Submit event handling: ``` Object.keys(refreshEvents).forEach(function(ev) { document.addEventListener(ev, function(e) {

[GitHub] [incubator-flagon-useralejs] poorejc commented on issue #50: sendOnClose function broken -- logs dropped when users navigate away from page

2021-03-18 Thread GitBox
poorejc commented on issue #50: URL: https://github.com/apache/incubator-flagon-useralejs/issues/50#issuecomment-802497782 Updated sendOnClose to flush logs queue: ``` export function sendOnClose(logs, config) { document.addEventListener('visibilitychange', function () {