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: store timestamps locally for local resources #6936

Merged
merged 4 commits into from
Sep 4, 2024

Conversation

jeremylong
Copy link
Owner

Fixes Issue #6434

Store last updated timestamps locally for local, file-based resources.

@boring-cyborg boring-cyborg bot added the core changes to core label Aug 30, 2024
@jeremylong jeremylong linked an issue Aug 30, 2024 that may be closed by this pull request
Copy link
Collaborator

@aikebah aikebah left a comment

Choose a reason for hiding this comment

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

LGTM, though (on this second read)... it might be worth considering refactoring the

            if (lastUpdatedOn <= 0) {
                //fall back on conversion from file last modified to storing in the db.
                lastUpdatedOn = repo.lastModified();
            }

into the getLastUpdated method of the LocalDataSource rather than repeating it in each subclass as a fallback when not getting a lastUpdated back from the call.

@jeremylong jeremylong added this to the 11.0.0 milestone Sep 4, 2024
@jeremylong jeremylong merged commit c53d4a4 into main Sep 4, 2024
6 checks passed
@jeremylong jeremylong deleted the scratch/local-data branch September 4, 2024 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core changes to core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

up to date check for file based data sources broken
2 participants