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

[FCL-626] Reinstate updating a document URI on NCN update #1867

Conversation

jacksonj04
Copy link
Collaborator

@jacksonj04 jacksonj04 commented Jan 23, 2025

We haven't yet implemented the ingester change to provide UUID-based document URIs, but editors are still receiving documents at /failure URIs. Since the new code won't change these (by design), we need to temporarily reinstate the functions which update the URI when the NCN changes.

As part of this we refactor out the logic in EditJudgmentView.post which processes the actual change into a new update_ncn_of_document method.

@jacksonj04 jacksonj04 force-pushed the FCL-626-when-a-judgment-is-saved-in-eui-and-the-ncn-changes-it-should-still-overwrite-the-uri branch 10 times, most recently from 4d314f4 to eaa9cb5 Compare January 29, 2025 17:43
@jacksonj04 jacksonj04 marked this pull request as ready for review January 29, 2025 17:45
judgments/utils/aws.py Outdated Show resolved Hide resolved
judgments/utils/aws.py Outdated Show resolved Hide resolved
@dragon-dxw
Copy link
Collaborator

Code Climate seems to be blocking merge. I don't seem to be able to meaningfully interact with CodeClimate to see what's wrong.

@jacksonj04 jacksonj04 force-pushed the FCL-626-when-a-judgment-is-saved-in-eui-and-the-ncn-changes-it-should-still-overwrite-the-uri branch from eaa9cb5 to e32c8b4 Compare January 30, 2025 10:13
As part of this, we refactor the old NCN updating behaviour to be more isolated, robust and testable.
@jacksonj04 jacksonj04 force-pushed the FCL-626-when-a-judgment-is-saved-in-eui-and-the-ncn-changes-it-should-still-overwrite-the-uri branch 3 times, most recently from 0f57fab to 1747950 Compare January 30, 2025 11:08
The EUI doesn't need its own implementations of these; delete and use the ones from the API Client instead. As part of this we get the better type checking from the API Client, so make necessary adjustments.
@jacksonj04 jacksonj04 force-pushed the FCL-626-when-a-judgment-is-saved-in-eui-and-the-ncn-changes-it-should-still-overwrite-the-uri branch from 1747950 to 32811e0 Compare January 30, 2025 12:03
@jacksonj04 jacksonj04 enabled auto-merge January 30, 2025 12:10
@jacksonj04 jacksonj04 added this pull request to the merge queue Jan 30, 2025
Merged via the queue into main with commit a880f8f Jan 30, 2025
12 checks passed
@jacksonj04 jacksonj04 deleted the FCL-626-when-a-judgment-is-saved-in-eui-and-the-ncn-changes-it-should-still-overwrite-the-uri branch January 30, 2025 12:35
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