Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: replay message queue dumping logic #348

Merged
merged 3 commits into from
Jul 31, 2023

Conversation

1abhishekpandey
Copy link
Contributor

@1abhishekpandey 1abhishekpandey commented Jul 28, 2023

Description

  • This update addresses the replayMessageQueue dumping logic. Starting from this version, whenever the app is started or immediately after the Rudder SDK initialization, all the previous events that are pending to be sent to the device mode factories will be retrieved from the database and dumped.
  • Additionally, with the first update using this fixed version, any remaining previous events will be marked as device_mode_processing_done. This ensures that any past events will not be dumped to device mode factories anymore.

desusai7
desusai7 previously approved these changes Jul 28, 2023
pallabmaiti
pallabmaiti previously approved these changes Jul 30, 2023
@sonarcloud
Copy link

sonarcloud bot commented Jul 30, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

37.8% 37.8% Coverage
0.0% 0.0% Duplication

@1abhishekpandey 1abhishekpandey merged commit 307e730 into develop Jul 31, 2023
5 checks passed
1abhishekpandey added a commit that referenced this pull request Jul 31, 2023
* chore: added credit to NSData+GZIP (#341)

* fix: event not getting removed from DB and certain processing issue (#340)

* fix: event not getting removed  from DB and certain processing issue

* fix: application update event logic

* refactor: the firstEventTimestampBeforeSDKInit() logic

Now, the value will be stored into the UserDefault to cover the case where events are made while SDK is init but even before it complete its execution SDK stop e.g., writeKey error.

* chore: address Sonarcloud bug and code smell issue

* chore: addressing comments

Refactored most of the logic.

* chore: remove leftover codes

* chore: refactor RSEventDeletionStatus key in preference manager

* refactor: device mode events processing logic

* fix: improve the logic of isDeviceModeFactoriesNotPresent property

* chore: addressing comments

* code refactored

* fix: use correct variable name for rowId

---------

Co-authored-by: Pallab Maiti <[email protected]>

* fix: replay message queue dumping logic  (#348)

* fix: replay message queue dumping logic

* revert: previous logic to mark events as device mode processing done on App Update

* test: add new db unit test case and fix old one

* fix: fixed application installed and updated getting triggered in-correctly (#345)

Co-authored-by: Desu Sai Venkat <[email protected]>
Co-authored-by: Abhishek Pandey <[email protected]>

* fix: fixed automatic session not getting cleared on dynamically disabling track life cycle events (#344)

Co-authored-by: Desu Sai Venkat <[email protected]>
Co-authored-by: Abhishek Pandey <[email protected]>

* chore(release): 1.16.1

---------

Co-authored-by: Pallab Maiti <[email protected]>
Co-authored-by: Abhishek Pandey <[email protected]>
Co-authored-by: Pallab Maiti <[email protected]>
Co-authored-by: Desu Sai Venkat <[email protected]>
Co-authored-by: Desu Sai Venkat <[email protected]>
Co-authored-by: GitHub actions <[email protected]>
@1abhishekpandey 1abhishekpandey deleted the fix/replayMessageQueue branch August 1, 2023 13:07
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.

3 participants