Skip to content

Unomi-336 fix past event count using custom timestamp#160

Merged
sergehuber merged 11 commits intoapache:masterfrom
YotpoLtd:UNOMI-336-fix_past_event_count_using_custom_timestamp
May 20, 2020
Merged

Unomi-336 fix past event count using custom timestamp#160
sergehuber merged 11 commits intoapache:masterfrom
YotpoLtd:UNOMI-336-fix_past_event_count_using_custom_timestamp

Conversation

@nlevitsky
Copy link
Copy Markdown
Contributor

@nlevitsky nlevitsky commented May 17, 2020

JIRA task -
https://issues.apache.org/jira/projects/UNOMI/issues/UNOMI-336

Check the event's timestamp before increasing the pastEvent counter by 1

Copy link
Copy Markdown
Contributor

@sergehuber sergehuber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution. It would be great to have an integration test to make sure that both the regular and the case with an event with an older timestamp are processed

@nlevitsky nlevitsky requested a review from sergehuber May 19, 2020 10:22
Copy link
Copy Markdown
Contributor

@sergehuber sergehuber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thanks !

@sergehuber sergehuber merged commit 5df3113 into apache:master May 20, 2020
asfgit pushed a commit that referenced this pull request May 20, 2020
* fix(SetEventOccurenceCountAction.java) - check the event's timestamp before increase the pastEvent counter by 1

* fix(SetEventOccurenceCountAction.java) - change comment to Serge suggestion

* rename(UpdateEventFromContextServletIT) - rename test class to "ContextServletIT"

* improve(ContextServletIT) - refactor existing tests

* improve(ContextServletIT) - delete indexes' CONTENT instead of deleting the indexes

* feat(ContextServletIT) - remove sessions between tests

* improve(TestUtils) - change "executeContextJSONRequest" function to static

* feat(ContextServletIT) - add unit-tests for past-event-segment calculation when adding events with custom timestamp

Co-authored-by: nlevitsky <Pitzek1305>
(cherry picked from commit 5df3113)
@nlevitsky nlevitsky deleted the UNOMI-336-fix_past_event_count_using_custom_timestamp branch May 20, 2020 14:47
shirbr pushed a commit to YotpoLtd/unomi-releases that referenced this pull request Jul 21, 2020
* fix(SetEventOccurenceCountAction.java) - check the event's timestamp before increase the pastEvent counter by 1

* fix(SetEventOccurenceCountAction.java) - change comment to Serge suggestion

* rename(UpdateEventFromContextServletIT) - rename test class to "ContextServletIT"

* improve(ContextServletIT) - refactor existing tests

* improve(ContextServletIT) - delete indexes' CONTENT instead of deleting the indexes

* feat(ContextServletIT) - remove sessions between tests

* improve(TestUtils) - change "executeContextJSONRequest" function to static

* feat(ContextServletIT) - add unit-tests for past-event-segment calculation when adding events with custom timestamp

Co-authored-by: nlevitsky <Pitzek1305>
shirbr pushed a commit to YotpoLtd/unomi-releases that referenced this pull request Sep 16, 2020
* fix(SetEventOccurenceCountAction.java) - check the event's timestamp before increase the pastEvent counter by 1

* fix(SetEventOccurenceCountAction.java) - change comment to Serge suggestion

* rename(UpdateEventFromContextServletIT) - rename test class to "ContextServletIT"

* improve(ContextServletIT) - refactor existing tests

* improve(ContextServletIT) - delete indexes' CONTENT instead of deleting the indexes

* feat(ContextServletIT) - remove sessions between tests

* improve(TestUtils) - change "executeContextJSONRequest" function to static

* feat(ContextServletIT) - add unit-tests for past-event-segment calculation when adding events with custom timestamp

Co-authored-by: nlevitsky <Pitzek1305>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants