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

DMP 4161 Darts API should only accept uppercase courthouse and courtroom from Portal #2351

Merged
merged 13 commits into from
Dec 11, 2024

Conversation

TomReed
Copy link
Contributor

@TomReed TomReed commented Dec 5, 2024

JIRA link (if applicable)

DMP-4161

Change description

I used the AC from the related Portal UI item DMP-4160 and applied to checks to corresponding endpoints in the api.

Endpoints with uppercase checks:

  • POST /api/cases/search - courtroom and courthouse
  • POST /api/admin/cases/search - courtroom
  • POST /api/admin/transformed-medias/search - courthouse
  • POST /api/admin/transcriptions/search - courthouse

AC3: searching for a courtroom display name in admin portal of DMP-4160 does not appear to have a corresponding backend endpoint and when searching in the portal there is no network activity. Assumed retrieved from Angular scope as reference data?

Additionally have added uppercase check on these endpoints not covered by 4161

  • POST /admin/courthouses adminCourtHousePost
  • PATCH /admin/courthouses updateCourthouse

Does this PR introduce a breaking change? (check one with "x")

Last two endpoints need implementing if front end

[x] Yes
[] No

Copy link
Contributor

@davet1985 davet1985 left a comment

Choose a reason for hiding this comment

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

LGTM

@jackmaloney
Copy link
Contributor

@TomReed think this needs to include the POST /admin/courthouses and PATCH /admin/courthouses endpoints?

@TomReed
Copy link
Contributor Author

TomReed commented Dec 6, 2024

Checks on:
POST /admin/courthouses adminCourtHousePost
PATCH /admin/courthouses updateCourthouse
also added.

@TomReed TomReed enabled auto-merge (squash) December 11, 2024 09:39
@TomReed TomReed merged commit e54dc8d into master Dec 11, 2024
10 checks passed
@TomReed TomReed deleted the dmp-4161-court-uppercase-checks branch December 11, 2024 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants