-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Set
last_update_date
to the time reported by the REST endpoint (…
…#2672) Use the `Last-Modified` header (or the latest `modified` vuln date if the header is missing) to set the REST SourceRepository's `last_update_date`, instead of using the time when the importer ran. Should alleviate #2670 for well-behaved REST sources, though it still doesn't handle cases where the source itself adds a record with date before the previous updated date. While I was here, I also tidied up the `ignore_last_import_time` logic a bit (because the long line splitting was annoying).
- Loading branch information
1 parent
c677c32
commit 514150e
Showing
3 changed files
with
108 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters