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

Feature/324 implement update locations #620

Merged
merged 49 commits into from
Oct 14, 2024

Conversation

brendan-oconnell
Copy link
Contributor

@brendan-oconnell brendan-oconnell commented Aug 26, 2024

Addresses #324

Known bug: When a user views a Canonical Location and exits the modal without making changes by clicking Cancel, X, or outside of the modal, and then opens the modal for another non-Canonical Location, the second Location will sometimes incorrectly display as Canonical: Yes in the modal.

If the user then returns to the Canonical Location without making changes to the second Location, the Canonical Location will sometimes incorrectly display Location Platform: Project MUSE.

In neither case does this affect the underlying values of the fields upon Save; if the user clicks Save when the values are displaying incorrectly, the correct, original values of the fields will be preserved.

This display issue has already been identified in several other parts of the view (see #366).

…hen in edit mode (will delete later, as it doesn't work for Add New Location)
Copy link
Member

@rhigman rhigman left a comment

Choose a reason for hiding this comment

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

Haven't tried running the code yet, just read through it and noted a few things that could be tweaked.

CHANGELOG.md Outdated Show resolved Hide resolved
thoth-api/src/graphql/model.rs Outdated Show resolved Hide resolved
thoth-api/src/graphql/model.rs Outdated Show resolved Hide resolved
thoth-api/src/graphql/model.rs Outdated Show resolved Hide resolved
thoth-api/src/graphql/model.rs Outdated Show resolved Hide resolved
thoth-api/src/graphql/model.rs Outdated Show resolved Hide resolved
thoth-api/src/graphql/model.rs Outdated Show resolved Hide resolved
thoth-app/src/models/location/location_query.rs Outdated Show resolved Hide resolved
thoth-app/src/models/mod.rs Outdated Show resolved Hide resolved
@brendan-oconnell brendan-oconnell removed the request for review from ja573 September 24, 2024 09:19
Copy link
Member

@ja573 ja573 left a comment

Choose a reason for hiding this comment

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

This is all working perfectly. Just have a few comments about streamlining certain bits (which I realise you're just inheriting! So feel free to correct them in the original)

thoth-app/src/models/mod.rs Outdated Show resolved Hide resolved
thoth-api/src/model/location/crud.rs Outdated Show resolved Hide resolved
thoth-api/src/model/location/crud.rs Outdated Show resolved Hide resolved
thoth-api/src/model/location/crud.rs Show resolved Hide resolved
thoth-api/src/model/location/crud.rs Outdated Show resolved Hide resolved
thoth-api/src/model/location/crud.rs Outdated Show resolved Hide resolved
thoth-api/src/model/location/crud.rs Outdated Show resolved Hide resolved
thoth-api/src/model/location/crud.rs Outdated Show resolved Hide resolved
thoth-api/src/model/location/crud.rs Show resolved Hide resolved
@brendan-oconnell brendan-oconnell removed the request for review from rhigman October 2, 2024 08:23
@brendan-oconnell brendan-oconnell merged commit ba5b633 into develop Oct 14, 2024
12 checks passed
@brendan-oconnell brendan-oconnell deleted the feature/324_implement_update_locations branch October 14, 2024 12:17
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.

Make Location editable
3 participants