-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* generate and set deputy uid on entity in dd_user and pre-reg table for court order fixtures * generate deputy uid for pre-reg fixtures for deputy and co-deputies * set primary flag to true for lay deputies and co-deputies * update endpoint to successfully pull client info and render on client details page * update generation of unique emails to prevent future pipeline failures
- Loading branch information
1 parent
43cd768
commit 751cd89
Showing
6 changed files
with
18 additions
and
8 deletions.
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
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
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 |
---|---|---|
|
@@ -737,7 +737,7 @@ private function generateDeputyPrimaryAccount() | |
'data' => [ | ||
'firstname' => 'Sue', | ||
'lastname' => 'Jones', | ||
'email' => sprintf('firstdeputyaccount%[email protected]', rand(1, 20)), | ||
'email' => sprintf('firstdeputy%[email protected]', $casenumber), | ||
'postcode' => 'SW1', | ||
'client_firstname' => 'John', | ||
'client_lastname' => 'Smith', | ||
|
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 |
---|---|---|
|
@@ -93,6 +93,7 @@ public function courtOrdersAction(Request $request) | |
$courtDate = $request->get('court-date') ? new \DateTime($request->get('court-date')) : new \DateTime(); | ||
$deputyEmail = $request->query->get('deputy-email', sprintf('original-%s-deputy-%[email protected]', strtolower($submitted['deputyType']), mt_rand(1000, 9999))); | ||
$caseNumber = $request->get('case-number', ClientHelpers::createValidCaseNumber()); | ||
$deputyUid = intval('7'.str_pad((string) mt_rand(1, 99999999), 11, '0', STR_PAD_LEFT)); | ||
|
||
$response = $this->restClient->post('v2/fixture/court-order', json_encode([ | ||
'deputyType' => $submitted['deputyType'], | ||
|
@@ -105,6 +106,7 @@ public function courtOrdersAction(Request $request) | |
'activated' => $submitted['activated'], | ||
'orgSizeClients' => $submitted['orgSizeClients'], | ||
'orgSizeUsers' => $submitted['orgSizeUsers'], | ||
'deputyUid' => $deputyUid, | ||
])); | ||
|
||
$query = ['query' => ['filter_by_ids' => implode(',', $response['deputyIds'])]]; | ||
|
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