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

Issue #9 in Mini-RFC #10

Open
golnazads opened this issue Sep 25, 2024 · 2 comments
Open

Issue #9 in Mini-RFC #10

golnazads opened this issue Sep 25, 2024 · 2 comments

Comments

@golnazads
Copy link
Contributor

golnazads commented Sep 25, 2024

Re-importing references should be an idempotent operation for sources that have not been modified, i.e. if I upload the same reference file in the DB, and none of the reference strings have changed, we don’t want to wipe away the resolved results (unless we explicitly force this via a command line argument). Similarly, if just one of the references has been modified, this will be the only reference that will be re-resolved, while all the unchanged records will remain as they are. In order to deal with the updating and deletion of records that are no longer present in the source file we could simply track the status of each reference via a flag (PENDING, PROCESSED, DELETED).

Explanation
Check single reference string at a time and run only if the reference string has changed.

@aaccomazzi
Copy link
Member

@ehenneken please review and provide feedback

@ehenneken
Copy link
Member

@golnazads @aaccomazzi agreed

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

No branches or pull requests

3 participants