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

HT-2970 / HT-2940: Update last_modified iff something has changed #89

Merged
merged 2 commits into from
Jun 4, 2021

Conversation

aelkiss
Copy link
Member

@aelkiss aelkiss commented May 28, 2021

See #86 ; merge after #86 / #88. Only relevant commit here is 7f882b4

  • Adds tests for ensuring last modified changes when adding or updating
    holdings, ocn resolution, ht items

  • Only updates an ht item if something has actually changed

@aelkiss aelkiss requested a review from jsteverman May 28, 2021 13:46
@aelkiss
Copy link
Member Author

aelkiss commented May 28, 2021

Updating holding with new UUID and date received should NOT update last_modified. We can keep the last_modified name.

@aelkiss
Copy link
Member Author

aelkiss commented May 28, 2021

Also we need to fix the holdings equality checking to compare all fields.

@aelkiss aelkiss force-pushed the HT-2970-htitem-update branch from 7f882b4 to 1e34217 Compare May 28, 2021 15:03
Copy link
Contributor

@jsteverman jsteverman left a comment

Choose a reason for hiding this comment

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

Changes in 7f882b4 look good.
As discussed, we still need to handle the holdings updates.

aelkiss added 2 commits June 4, 2021 09:58
- Adds tests for ensuring last modified changes when adding or updating
holdings, ocn resolution, ht items

- Only updates an ht item if something has actually changed
- Don't save the cluster & trigger modify date change if all we did was
change the submitted date & uuid on existing holdings
- Make sure holdings equality check checks all fields
- Refactor holdings tests
@aelkiss aelkiss force-pushed the HT-2970-htitem-update branch from 1e34217 to 2ad71e6 Compare June 4, 2021 13:59
@aelkiss
Copy link
Member Author

aelkiss commented Jun 4, 2021

Addressed holdings equality & last modified date issue and rebased.

@aelkiss aelkiss requested a review from jsteverman June 4, 2021 14:00
@aelkiss aelkiss merged commit 69e03e3 into master Jun 4, 2021
@aelkiss aelkiss deleted the HT-2970-htitem-update branch June 4, 2021 19:13
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

Successfully merging this pull request may close these issues.

2 participants