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: Always update product for redis events #104

Merged
merged 7 commits into from
Oct 31, 2024

Conversation

john-gom
Copy link
Collaborator

@john-gom john-gom commented Oct 29, 2024

What

Always import product updates for events. Also switch to using last_updated_t from Product Opener for incremental bulk imports

Fixes bug(s)

Signed-off-by: John Gomersall <[email protected]>
@john-gom john-gom requested a review from a team as a code owner October 29, 2024 12:57
@john-gom john-gom linked an issue Oct 29, 2024 that may be closed by this pull request
@john-gom john-gom changed the title Always update product for redis events fix: Always update product for redis events Oct 29, 2024
if (
source !== ProductSource.FULL_LOAD &&
source === ProductSource.INCREMENTAL_LOAD &&
lastModified?.getTime() === previousLastModified?.getTime()

Choose a reason for hiding this comment

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

Could you use last_updated_t instead of last_modified_t? last_updated_t is also changed when update_all_products.pl reanalyzes the product

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I've made the changes. More files affected but mostly renaming columns

@teolemon teolemon added the REDIS label Oct 29, 2024
Copy link

@stephanegigandet stephanegigandet left a comment

Choose a reason for hiding this comment

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

Thank you!

@john-gom john-gom merged commit b79eacc into main Oct 31, 2024
5 checks passed
@john-gom john-gom deleted the 103-always-update-product-for-redis-events branch October 31, 2024 15:08
@john-gom john-gom mentioned this pull request Oct 31, 2024
john-gom added a commit that referenced this pull request Oct 31, 2024
…for-redis-events

fix: Re-implement changes from PR #104
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Always update product for Redis events
3 participants