-
Notifications
You must be signed in to change notification settings - Fork 13
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
DTSRD-2136. Update Name for a given organisation #1573
Open
SabinaHMCTS
wants to merge
82
commits into
master
Choose a base branch
from
DTSRD-2136
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
82 commits
Select commit
Hold shift + click to select a range
db90255
Upgrading perftest branch to V16 and adding subnet_suffix
SabinaHMCTS 530bf25
Update name for an organisation moving code to controller
SabinaHMCTS 0a6934f
Update name for an organisation adding test cases
SabinaHMCTS c93a0f8
Update name for an organisation adding test cases
SabinaHMCTS c163fbf
Update name for an organisation adding test cases
SabinaHMCTS 4bf43e3
Merge branch 'master' into DTSRD-2136
SabinaHMCTS 8743c98
Update name for an organisation adding test cases
SabinaHMCTS 9ab2dfa
Update name for an organisation adding test cases
SabinaHMCTS 379ba0b
Update name for an organisation adding test cases
SabinaHMCTS f6ce243
Update name for an organisation adding test cases
SabinaHMCTS df887a5
Merge branch 'master' into DTSRD-2136
SabinaHMCTS 570432d
Update OrganisationCreationRequestValidatorTest.java
SabinaHMCTS 9927c5e
Update ProfessionalInternalUserFunctionalTest.java
SabinaHMCTS f6a762a
Update name sra for an organisation adding test cases
SabinaHMCTS 1029f2c
Update name sra for an organisation adding test cases
SabinaHMCTS 0afe4d2
Update name sra for an organisation adding test cases
SabinaHMCTS dafd810
Update name sra for an organisation adding test cases
SabinaHMCTS 3cb3dbd
Update name sra for an organisation adding test cases
SabinaHMCTS b8e0323
Merge branch 'master' into DTSRD-2136
SabinaHMCTS 76e261c
fixing review comments
SabinaHMCTS 88e1cff
fixing review comments
SabinaHMCTS 6edef7d
fixing review comments
SabinaHMCTS 5e99427
fixing review comments
SabinaHMCTS 809444f
Merge branch 'master' into DTSRD-2136
SabinaHMCTS 357d65f
Update name sra for an organisation adding test cases
SabinaHMCTS fd295ab
Update name sra for an organisation adding test cases
SabinaHMCTS 5273b65
Merge branch 'master' into DTSRD-2136
SabinaHMCTS 177e806
Merge branch 'master' into DTSRD-2136
SabinaHMCTS 8dc916e
Update ProfessionalInternalUserFunctionalTest.java
SabinaHMCTS 94b25b5
Update ProfessionalInternalUserFunctionalTest.java
SabinaHMCTS 0ae9a03
Update OrganisationServiceImpl.java
SabinaHMCTS dbefdbb
update admin unit tests
SabinaHMCTS 31d9f06
update admin unit tests
SabinaHMCTS 1a96311
update functional tests
SabinaHMCTS ed30490
Update OrganisationServiceImpl.java
SabinaHMCTS 1587540
Merge branch 'master' into DTSRD-2136
SabinaHMCTS 76a321d
Update OrganisationInternalController.java
SabinaHMCTS 69971f4
Update OrganisationServiceImpl.java
SabinaHMCTS 7f82f30
Update ProfessionalInternalUserFunctionalTest.java
SabinaHMCTS f6bc99b
Update UpdateOrgNameSraIdIntegrationTest.java
SabinaHMCTS dc30a32
Fixing build
SabinaHMCTS 437cdd9
Changing endpoint to only update Organisation Name
SabinaHMCTS 9279e00
Changing endpoint to only update Organisation Name
SabinaHMCTS 2792daf
Changing endpoint to only update Organisation Name
SabinaHMCTS 35133bf
Changing endpoint to only update Organisation Name
SabinaHMCTS ed57433
Changing endpoint to only update Organisation Name
SabinaHMCTS 744e4bc
Changes to fix review comments
SabinaHMCTS 2c039fb
Changes to fix review comments
SabinaHMCTS c0aadab
Changes to fix review comments
SabinaHMCTS 4965cf6
Changes to fix review comments
SabinaHMCTS 1ee1c6c
Changes to fix review comments
SabinaHMCTS c6e634b
Changes to fix review comments
SabinaHMCTS 437ef4b
Changes to fix review comments
SabinaHMCTS 218fc52
Changes to fix review comments
SabinaHMCTS e5df3a0
Update UpdateOrgNameIntegrationTest.java
SabinaHMCTS 7470194
Changes to fix review comments
SabinaHMCTS e7b85c9
Changes to fix review comments
SabinaHMCTS 8a86724
Changes to fix review comments
SabinaHMCTS 0137be0
Changes to fix review comments
SabinaHMCTS 875902a
Merge branch 'master' into DTSRD-2136
SabinaHMCTS 48ffa58
DTSRD-2136: Org name update - refactored IT tests
rajkatla-hmcts 294b75b
DTSRD-2136: Org name update - refactored IT tests
rajkatla-hmcts 3539636
removed teh extra code for DTSRD-2134
SabinaHMCTS b530f0f
DTSRD-2136: Org name update - refactored error messages
rajkatla-hmcts 00f0ca5
DTSRD-2136: Org name update - refactored error messages
rajkatla-hmcts cc40acf
DTSRD-2136: Org name update - refactored error messages
rajkatla-hmcts 41d4ffa
DTSRD-2136: Org name update - refactored error messages
rajkatla-hmcts d149a7b
DTSRD-2136: Org name update - refactored error messages
rajkatla-hmcts 60e96f3
DTSRD-2136: Org name update - temporary fix for test coverage issue
rajkatla-hmcts 99e68f1
changed orgId to invalid value
SabinaHMCTS 76ed65f
fixing sonar code smell
SabinaHMCTS 5fd5005
DTSRD-2136: Org name update - populating last updated value
rajkatla-hmcts b080721
DTSRD-2136: Org name update - populating last updated value
rajkatla-hmcts 836cb17
DTSRD-2136: Org name update - populating last updated value
rajkatla-hmcts 1f657b8
DTSRD-2136: Org name update - functional test update for error scenario
rajkatla-hmcts 4b2d138
DTSRD-2136: Org name update - functional test update for error scenario
rajkatla-hmcts 7bc5b51
DTSRD-2136: Org name update
rajkatla-hmcts 9efcae0
fixing review comments on controller changed status to OK and deleted…
SabinaHMCTS 612f4b0
made changes to endpoint to accept multiple requests for name change
SabinaHMCTS 581a2ab
made changes to endpoint to accept multiple requests for name change
SabinaHMCTS 57a11b9
made changes to endpoint to accept multiple requests for name change
SabinaHMCTS 924344b
made changes to endpoint to accept multiple requests for name change
SabinaHMCTS File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
256 changes: 255 additions & 1 deletion
256
...Test/java/uk/gov/hmcts/reform/professionalapi/ProfessionalInternalUserFunctionalTest.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
214 changes: 214 additions & 0 deletions
214
...ntegrationTest/java/uk/gov/hmcts/reform/professionalapi/UpdateOrgNameIntegrationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,214 @@ | ||
package uk.gov.hmcts.reform.professionalapi; | ||
|
||
|
||
import org.apache.commons.lang.RandomStringUtils; | ||
import org.junit.jupiter.api.Test; | ||
import uk.gov.hmcts.reform.professionalapi.controller.request.OrganisationCreationRequest; | ||
import uk.gov.hmcts.reform.professionalapi.controller.request.OrganisationNameUpdateRequest; | ||
import uk.gov.hmcts.reform.professionalapi.util.AuthorizationEnabledIntegrationTest; | ||
|
||
import java.time.LocalDate; | ||
import java.time.LocalDateTime; | ||
import java.util.ArrayList; | ||
import java.util.LinkedHashMap; | ||
import java.util.List; | ||
import java.util.Map; | ||
|
||
import static org.assertj.core.api.Assertions.assertThat; | ||
import static uk.gov.hmcts.reform.professionalapi.helper.OrganisationFixtures.someMinimalOrganisationRequest; | ||
|
||
class UpdateOrgNameIntegrationTest extends AuthorizationEnabledIntegrationTest { | ||
|
||
|
||
@Test | ||
void update_name_of_an_active_organisation_should_return_success_if_all_requests_updated() { | ||
//create organisation | ||
String orgId1 = getActiveOrganisationId(); | ||
String orgId2 = getActiveOrganisationId(); | ||
|
||
//create request to update organisation | ||
OrganisationNameUpdateRequest organisationNameUpdateRequest = createOrganisationNameUpdateRequest( | ||
"updatedName1","updatedName2",orgId1,orgId2); | ||
//updateName | ||
Map<String, Object> orgUpdatedNameResponse = professionalReferenceDataClient | ||
.updateOrgName(organisationNameUpdateRequest,hmctsAdmin); | ||
|
||
LinkedHashMap responses = (LinkedHashMap)orgUpdatedNameResponse.get("response_body"); | ||
assertThat(responses.get("status")).isEqualTo("success"); | ||
assertThat(responses.get("message")).isEqualTo("All names updated successfully"); | ||
|
||
verifyRetrievedOrg(orgId1,"updatedName1"); | ||
verifyRetrievedOrg(orgId2,"updatedName2"); | ||
|
||
deleteCreatedTestOrganisations(orgId1, orgId2); | ||
} | ||
|
||
@Test | ||
void update_name_of_an_active_organisation_should_return_partial_success_if_any_fail() { | ||
//create organisation | ||
String orgId1 = getActiveOrganisationId(); | ||
String orgId2 = getActiveOrganisationId(); | ||
|
||
//create request to update organisation | ||
OrganisationNameUpdateRequest organisationNameUpdateRequest = createOrganisationNameUpdateRequest( | ||
"updatedName1","",orgId1,orgId2); | ||
|
||
Map<String, Object> orgUpdatedNameResponse = professionalReferenceDataClient | ||
.updateOrgName(organisationNameUpdateRequest,hmctsAdmin); | ||
|
||
LinkedHashMap responses = (LinkedHashMap)orgUpdatedNameResponse.get("response_body"); | ||
assertThat(responses.get("status")).isEqualTo("partial_success"); | ||
|
||
//verify successfully saved | ||
verifyRetrievedOrg(orgId1,"updatedName1"); | ||
|
||
//verify error response | ||
ArrayList responseList = (ArrayList)responses.get("names"); | ||
LinkedHashMap result = (LinkedHashMap)responseList.get(1); | ||
assertThat(result.get("organisationId")).isEqualTo(orgId2); | ||
assertThat(result.get("status")).isEqualTo("failure"); | ||
assertThat(result.get("statusCode")).isEqualTo(400); | ||
assertThat(result.get("message")).isEqualTo("Organisation name is missing"); | ||
|
||
deleteCreatedTestOrganisations(orgId1, orgId2); | ||
} | ||
|
||
@Test | ||
void update_name_missing_in_all_requests_should_return_failure() { | ||
//create organisation | ||
String orgId1 = getActiveOrganisationId(); | ||
String orgId2 = getActiveOrganisationId(); | ||
|
||
//create request to update organisation | ||
OrganisationNameUpdateRequest organisationNameUpdateRequest = createOrganisationNameUpdateRequest( | ||
"",null,orgId1,orgId2); | ||
|
||
Map<String, Object> orgUpdatedNameResponse = professionalReferenceDataClient | ||
.updateOrgName(organisationNameUpdateRequest,hmctsAdmin); | ||
|
||
LinkedHashMap responses = (LinkedHashMap)orgUpdatedNameResponse.get("response_body"); | ||
|
||
assertThat(responses.get("status")).isEqualTo("failure"); | ||
|
||
ArrayList responseList = (ArrayList)responses.get("names"); | ||
LinkedHashMap firstResult = (LinkedHashMap)responseList.get(0); | ||
LinkedHashMap secondResult = (LinkedHashMap)responseList.get(1); | ||
assertThat(secondResult.get("organisationId")).isEqualTo(orgId2); | ||
assertThat(secondResult.get("status")).isEqualTo("failure"); | ||
assertThat(secondResult.get("statusCode")).isEqualTo(400); | ||
assertThat(secondResult.get("message")).isEqualTo("Organisation name is missing"); | ||
|
||
assertThat(firstResult.get("organisationId")).isEqualTo(orgId1); | ||
assertThat(firstResult.get("status")).isEqualTo("failure"); | ||
assertThat(firstResult.get("statusCode")).isEqualTo(400); | ||
assertThat(firstResult.get("message")).isEqualTo("Organisation name is missing"); | ||
|
||
deleteCreatedTestOrganisations(orgId1, orgId2); | ||
} | ||
|
||
@Test | ||
void orgId_missing_in_all_requests_should_return_failure() { | ||
//create request to update organisation | ||
OrganisationNameUpdateRequest organisationNameUpdateRequest = createOrganisationNameUpdateRequest( | ||
"updatedName1","updatedName2","1235874596555555",null); | ||
|
||
Map<String, Object> orgUpdatedNameResponse = professionalReferenceDataClient | ||
.updateOrgName(organisationNameUpdateRequest,hmctsAdmin); | ||
|
||
LinkedHashMap responses = (LinkedHashMap)orgUpdatedNameResponse.get("response_body"); | ||
|
||
assertThat(responses.get("status")).isEqualTo("failure"); | ||
|
||
ArrayList responseList = (ArrayList)responses.get("names"); | ||
LinkedHashMap firstResult = (LinkedHashMap)responseList.get(0); | ||
LinkedHashMap secondResult = (LinkedHashMap)responseList.get(1); | ||
assertThat(secondResult.get("organisationId")).isEqualTo(""); | ||
assertThat(secondResult.get("status")).isEqualTo("failure"); | ||
assertThat(secondResult.get("statusCode")).isEqualTo(400); | ||
assertThat(secondResult.get("message")).isEqualTo("Organisation id is missing"); | ||
|
||
assertThat(firstResult.get("organisationId")).isEqualTo("1235874596555555"); | ||
assertThat(firstResult.get("status")).isEqualTo("failure"); | ||
assertThat(firstResult.get("statusCode")).isEqualTo(400); | ||
assertThat(firstResult.get("message")).isEqualTo( | ||
"The given organisationIdentifier must be 7 Alphanumeric Characters"); | ||
|
||
} | ||
|
||
|
||
|
||
@Test | ||
void update_name_with_exception_during_save_returns_500_partial_success() { | ||
//create organisation | ||
String orgId1 = getActiveOrganisationId(); | ||
String orgId2 = getActiveOrganisationId(); | ||
|
||
//create request to update organisation | ||
String organisationNameViolatingDatabaseMaxLengthConstraint = RandomStringUtils.random(296); | ||
OrganisationNameUpdateRequest organisationNameUpdateRequest = createOrganisationNameUpdateRequest( | ||
organisationNameViolatingDatabaseMaxLengthConstraint,"updatedName1",orgId1,orgId2); | ||
//create request to update organisation | ||
|
||
Map<String, Object> orgUpdatedNameResponse = professionalReferenceDataClient | ||
.updateOrgName(organisationNameUpdateRequest,hmctsAdmin); | ||
LinkedHashMap responses = (LinkedHashMap)orgUpdatedNameResponse.get("response_body"); | ||
|
||
assertThat(responses.get("status")).isEqualTo("partial_success"); | ||
|
||
ArrayList responseList = (ArrayList)responses.get("names"); | ||
LinkedHashMap result1 = (LinkedHashMap)responseList.get(0); | ||
assertThat(result1.get("organisationId")).isEqualTo(orgId1); | ||
assertThat(result1.get("status")).isEqualTo("failure"); | ||
assertThat(result1.get("statusCode")).isEqualTo(500); | ||
assertThat(result1.get("message").toString().contains( | ||
"Failed to update the name for the given organisationIdentifier. Reason :")); | ||
LinkedHashMap result = (LinkedHashMap)responseList.get(1); | ||
assertThat(result.get("organisationId")).isEqualTo(orgId2); | ||
assertThat(result.get("status")).isEqualTo("success"); | ||
assertThat(result.get("statusCode")).isEqualTo(200); | ||
assertThat(result.get("message")).isEqualTo("Name updated successfully"); | ||
|
||
deleteCreatedTestOrganisations(orgId1, orgId2); | ||
|
||
} | ||
|
||
|
||
private String getActiveOrganisationId() { | ||
OrganisationCreationRequest organisationCreationRequest2 = someMinimalOrganisationRequest().build(); | ||
String organisationIdentifier = createAndActivateOrganisationWithGivenRequest(organisationCreationRequest2); | ||
updateOrganisation(organisationIdentifier, hmctsAdmin, "ACTIVE"); | ||
|
||
return organisationIdentifier; | ||
} | ||
|
||
public OrganisationNameUpdateRequest createOrganisationNameUpdateRequest(String name1,String name2,String orgId1, | ||
String orgId2) { | ||
OrganisationNameUpdateRequest organisationNameUpdateRequest = new OrganisationNameUpdateRequest(); | ||
List<OrganisationNameUpdateRequest.OrganisationNameUpdateData> organisationNameUpdateDataList | ||
= new ArrayList<>(); | ||
OrganisationNameUpdateRequest.OrganisationNameUpdateData organisationNameUpdateData1 = | ||
new OrganisationNameUpdateRequest.OrganisationNameUpdateData(name1,orgId1); | ||
OrganisationNameUpdateRequest.OrganisationNameUpdateData organisationNameUpdateData2 = | ||
new OrganisationNameUpdateRequest.OrganisationNameUpdateData(name2,orgId2); | ||
organisationNameUpdateDataList.add(organisationNameUpdateData1); | ||
organisationNameUpdateDataList.add(organisationNameUpdateData2); | ||
organisationNameUpdateRequest.setOrganisationNameUpdateDataList(organisationNameUpdateDataList); | ||
|
||
return organisationNameUpdateRequest; | ||
} | ||
|
||
public void verifyRetrievedOrg(String orgId,String expected) { | ||
Map<String, Object> responseBody = | ||
professionalReferenceDataClient.retrieveSingleOrganisation(orgId, hmctsAdmin); | ||
final Object name = responseBody.get("name"); | ||
assertThat(name).isNotNull().isEqualTo(expected); | ||
|
||
LocalDateTime updatedDate = LocalDateTime.parse(responseBody.get("lastUpdated").toString()); | ||
assertThat(updatedDate.toLocalDate()).isEqualTo(LocalDate.now()); | ||
} | ||
|
||
public void deleteCreatedTestOrganisations(String orgId1, String orgId2) { | ||
professionalReferenceDataClient.deleteOrganisation(hmctsAdmin,orgId1); | ||
professionalReferenceDataClient.deleteOrganisation(hmctsAdmin,orgId2); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ | |
import uk.gov.hmcts.reform.professionalapi.controller.request.NewUserCreationRequest; | ||
import uk.gov.hmcts.reform.professionalapi.controller.request.OrganisationByProfileIdsRequest; | ||
import uk.gov.hmcts.reform.professionalapi.controller.request.OrganisationCreationRequest; | ||
import uk.gov.hmcts.reform.professionalapi.controller.request.OrganisationNameUpdateRequest; | ||
import uk.gov.hmcts.reform.professionalapi.controller.request.OrganisationOtherOrgsCreationRequest; | ||
import uk.gov.hmcts.reform.professionalapi.controller.request.PbaRequest; | ||
import uk.gov.hmcts.reform.professionalapi.controller.request.UpdatePbaRequest; | ||
|
@@ -1022,6 +1023,44 @@ public Map<String, Object> findOrganisationsByUserId(String userId, String role) | |
return getResponse(responseEntity); | ||
} | ||
|
||
|
||
|
||
public ResponseEntity<Map> updateOrgNameException( | ||
OrganisationNameUpdateRequest organisationNameUpdateRequest, String role) { | ||
|
||
ResponseEntity<Map> responseEntity = null; | ||
String urlPath = "http://localhost:" + prdApiPort + APP_INT_BASE_PATH + "/name"; | ||
|
||
HttpEntity<OrganisationNameUpdateRequest> requestEntity = new HttpEntity<>(organisationNameUpdateRequest, | ||
getMultipleAuthHeaders(role)); | ||
responseEntity = restTemplate.exchange(urlPath, HttpMethod.PUT, requestEntity, Map.class); | ||
|
||
return responseEntity; | ||
} | ||
|
||
public Map<String, Object> updateOrgName( | ||
OrganisationNameUpdateRequest organisationNameUpdateRequest, String role) { | ||
|
||
ResponseEntity<Map> responseEntity = null; | ||
String urlPath = "http://localhost:" + prdApiPort + APP_INT_BASE_PATH + "/name"; | ||
try { | ||
HttpEntity<OrganisationNameUpdateRequest> requestEntity = new HttpEntity<>(organisationNameUpdateRequest, | ||
getMultipleAuthHeaders(role)); | ||
responseEntity = restTemplate.exchange(urlPath, HttpMethod.PUT, requestEntity, Map.class); | ||
|
||
} catch (RestClientResponseException ex) { | ||
HashMap<String, Object> statusAndBody = new HashMap<>(2); | ||
statusAndBody.put("http_status", String.valueOf(ex.getRawStatusCode())); | ||
statusAndBody.put("response_body", ex.getResponseBodyAsString()); | ||
return statusAndBody; | ||
} | ||
|
||
Map<String, Object> organisationResponse = new HashMap<>(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. minor: map creation could be replaced by using Map.of(k1, v1, k2, v2) factory method |
||
organisationResponse.put("http_status", responseEntity.getStatusCodeValue()); | ||
organisationResponse.put("response_body", responseEntity.getBody()); | ||
return organisationResponse; | ||
} | ||
|
||
public Map<String, Object> retrieveUsersInOrganisationsByOrganisationIdentifiers( | ||
UsersInOrganisationsByOrganisationIdentifiersRequest request, Integer pageSize, | ||
UUID searchAfterUser, UUID searchAfterOrganisation) { | ||
|
@@ -1038,5 +1077,6 @@ public Map<String, Object> retrieveUsersInOrganisationsByOrganisationIdentifiers | |
} | ||
String uriPath = sb.toString(); | ||
return postRequest(uriPath, request, null, null); | ||
|
||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/integrationTest/java/uk/gov/hmcts/reform/professionalapi/util/TestDataArguments.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package uk.gov.hmcts.reform.professionalapi.util; | ||
|
||
import lombok.Builder; | ||
import uk.gov.hmcts.reform.professionalapi.controller.request.OrganisationNameUpdateRequest; | ||
|
||
@Builder | ||
public record TestDataArguments( | ||
String statusCode, | ||
String errorMessage, | ||
String organisationIdentifier, | ||
String orgName, | ||
OrganisationNameUpdateRequest organisationNameUpdateRequest, | ||
boolean validOrgIdIsRequired) {} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: map creation could be replaced by using Map.of(k1, v1, k2, v2) factory method