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: partial update fixes #56

Merged
merged 4 commits into from
Nov 1, 2024
Merged

fix: partial update fixes #56

merged 4 commits into from
Nov 1, 2024

Conversation

n-dusan
Copy link
Contributor

@n-dusan n-dusan commented Oct 31, 2024

Description (e.g. "Related to ...", etc.)

Closes #53

  • Fix partial update to correctly update publication_version entries for new (incoming) publications.
  • Remove Postgres from DatabaseKind enum.
  • Fix docstring comment

Code review checklist (for code reviewer to complete)

  • Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)
  • Title summarizes what is changing
  • Commit messages are meaningful (see this for details)
  • Tests have been included and/or updated, as appropriate
  • Docstrings have been included and/or updated, as appropriate
  • Standalone docs have been updated accordingly

Automated tests, benchmarks and linters

You can run the tests, lints and benchmarks that are run on CI locally with:

just ci

There was an issue where only the newer dates were inserted when a new
publication is pulled down. This meant that the new publication only had a
single (newer) publication version entry, instead of the expected N
(already inserted) entries.

To fix, we now only set `last_inserted_date` for the current (already inserted) publication.
For all publications following the current one, reset the `last_inserted_date`.
We no longer plan on using Postgres database connection. Keep the code
flexible for now, though, where we can extend with new DB backends.
@n-dusan n-dusan added the bug Something isn't working label Oct 31, 2024
@n-dusan n-dusan requested a review from dgreisen October 31, 2024 20:12
@n-dusan n-dusan self-assigned this Oct 31, 2024
@n-dusan n-dusan merged commit ce3142d into main Nov 1, 2024
4 checks passed
@n-dusan n-dusan deleted the ndusan/partial-update-fixes branch November 1, 2024 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix partial stelae update
2 participants