Skip to content

Use replication_key in last_processed instead of primary_key - #133

Merged
prijendev merged 7 commits into
masterfrom
SUPPORT-3665-fix-pages-bookmarking
Jul 31, 2025
Merged

prijendev merged 7 commits into
masterfrom
SUPPORT-3665-fix-pages-bookmarking

Conversation

@prijendev

Copy link
Copy Markdown
Contributor

Description of change

for record in parent_response:
      try:
          if last_processed and record.get(parent.key_properties[0]) < last_processed:
              # Skipping last synced parent ids
              continue
  • Here, sync_substream looks for the last processed parent_id to decide the parent to process. But, LT operator does not correctly compare the alpha numeric id’s since the sorting on the parent stream is based on the replication key i.e updated at. So on interrupted sync, it would miss some records which has id value less than the already synced id.
  • So, we are updating last_processed value with replication_key value instead of primary key i.e id

Manual QA steps

Risks

Rollback steps

  • revert this branch

AI generated code

https://internal.qlik.dev/general/ways-of-working/code-reviews/#guidelines-for-ai-generated-code

  • this PR has been written with the help of GitHub Copilot or another generative AI tool

@prijendev prijendev changed the title Support 3665 fix pages bookmarking Use replication_key in last_processed instead of primary_key Jul 29, 2025
@prijendev
prijendev marked this pull request as ready for review July 29, 2025 11:58
@prijendev
prijendev merged commit 46fdca2 into master Jul 31, 2025
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