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

VIH-10326 Fix v2 toggle issues #1305

Merged
merged 6 commits into from
Nov 21, 2023
Merged

Conversation

oliver-scott
Copy link
Contributor

@oliver-scott oliver-scott commented Nov 17, 2023

Jira link (if applicable)

https://tools.hmcts.net/jira/browse/VIH-10326

Change description

Fixes the admin web issues when the Use Bookings API V2 feature flag is toggled off.

  • Error booking a hearing
  • Judge name not auto-populating after selecting them on the booking form

The issue was introduced as part of adding the Judicial Office Holders component.

The PostJudgesBySearchTerm endpoint had been removed and the search.service was changed to call a different endpoint which returns a PersonResponse instead of a JudgeResponse. This change was not needed as the search service is not referenced by the Judicial Office Holders component, so I have reverted the service changes and reinstated the original API endpoint and its tests.

@oliver-scott oliver-scott marked this pull request as ready for review November 17, 2023 15:47
@oliver-scott oliver-scott requested review from a team as code owners November 17, 2023 15:47
@komaldabhi1509
Copy link

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

88.6% 88.6% Coverage
0.0% 0.0% Duplication

@will-craig will-craig merged commit 89f8d85 into master Nov 21, 2023
8 checks passed
will-craig pushed a commit that referenced this pull request Nov 29, 2023
* Fix v2 toggle issues

* Reinstate api tests

* Update search service

* Added null coalesc for non populated johs

* Check fo null judicary participant before mapping

---------

Co-authored-by: William Craig <[email protected]>
(cherry picked from commit 89f8d85)
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.

3 participants