-
Notifications
You must be signed in to change notification settings - Fork 1
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
1879 edit operation #2253
Merged
Merged
1879 edit operation #2253
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
31c6f94
chore: read only widget support array values
marcellmueller 4d8a953
chore: create administration operation information schema
marcellmueller bf6b688
chore: add registration_purpose fixtures
marcellmueller c091143
chore: add operation update api route
marcellmueller dc0ece6
chore: add get operation with documents route
marcellmueller d7a8e96
chore: add get operation with documents shared action
marcellmueller c2593f2
chore: save operation details on edit
marcellmueller d2c8da5
chore: add new operation_id endpoints tests
marcellmueller 9403854
chore: allow industry users to edit operation details
marcellmueller f9c398a
chore: fix typescript enumnames error
marcellmueller 30ff06f
chore: fix build error
marcellmueller b579c01
chore: update operation information tests
marcellmueller 917727d
chore: add operation information form tests
marcellmueller b1a4cf7
chore: update registration_purpose fixtures
marcellmueller fc61c7c
chore: add more purpose fixtures
marcellmueller 8b46e19
chore: fix regulated_products required bug
marcellmueller 4a871e4
chore: add operation out schema fields after rebase
marcellmueller b400a9c
chore: save regulated_products field
marcellmueller 454e4c8
chore: add multiple operator out schema
marcellmueller 8876960
chore: fix cra business number
marcellmueller 8dd850a
chore: update test
marcellmueller 49782dd
chore: add file preview
marcellmueller c9a7771
chore: fix read only file widget error
marcellmueller e73346b
chore: add operation service comment
marcellmueller 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
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
170 changes: 170 additions & 0 deletions
170
bc_obps/registration/fixtures/mock/registration_purpose.json
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,170 @@ | ||
[ | ||
{ | ||
"model": "registration.registrationpurpose", | ||
"pk": 1, | ||
"fields": { | ||
"registration_purpose": "OBPS Regulated Operation", | ||
"operation_id": "c0743c09-82fa-4186-91aa-4b5412e3415c" | ||
} | ||
}, | ||
{ | ||
"model": "registration.registrationpurpose", | ||
"pk": 2, | ||
"fields": { | ||
"registration_purpose": "Potential Reporting Operation", | ||
"operation_id": "c0743c09-82fa-4186-91aa-4b5412e3415c" | ||
} | ||
}, | ||
{ | ||
"model": "registration.registrationpurpose", | ||
"pk": 3, | ||
"fields": { | ||
"registration_purpose": "OBPS Regulated Operation", | ||
"operation_id": "1bd04128-d070-4d3a-940a-0874c4956181" | ||
} | ||
}, | ||
{ | ||
"model": "registration.registrationpurpose", | ||
"pk": 4, | ||
"fields": { | ||
"registration_purpose": "Reporting Operation", | ||
"operation_id": "1bd04128-d070-4d3a-940a-0874c4956181" | ||
} | ||
}, | ||
{ | ||
"model": "registration.registrationpurpose", | ||
"pk": 5, | ||
"fields": { | ||
"registration_purpose": "New Entrant Operation", | ||
"operation_id": "1bd04128-d070-4d3a-940a-0874c4956181" | ||
} | ||
}, | ||
{ | ||
"model": "registration.registrationpurpose", | ||
"pk": 6, | ||
"fields": { | ||
"registration_purpose": "OBPS Regulated Operation", | ||
"operation_id": "3b5b95ea-2a1a-450d-8e2e-2e15feed96c9" | ||
} | ||
}, | ||
{ | ||
"model": "registration.registrationpurpose", | ||
"pk": 7, | ||
"fields": { | ||
"registration_purpose": "Reporting Operation", | ||
"operation_id": "3b5b95ea-2a1a-450d-8e2e-2e15feed96c9" | ||
} | ||
}, | ||
{ | ||
"model": "registration.registrationpurpose", | ||
"pk": 8, | ||
"fields": { | ||
"registration_purpose": "Electricity Import Operation", | ||
"operation_id": "3b5b95ea-2a1a-450d-8e2e-2e15feed96c9" | ||
} | ||
}, | ||
{ | ||
"model": "registration.registrationpurpose", | ||
"pk": 9, | ||
"fields": { | ||
"registration_purpose": "OBPS Regulated Operation", | ||
"operation_id": "17f13f4d-29b4-45f4-b025-b21f2e126771" | ||
} | ||
}, | ||
{ | ||
"model": "registration.registrationpurpose", | ||
"pk": 10, | ||
"fields": { | ||
"registration_purpose": "Reporting Operation", | ||
"operation_id": "1bd04128-d070-4d3a-940a-0874c4956181" | ||
} | ||
}, | ||
{ | ||
"model": "registration.registrationpurpose", | ||
"pk": 11, | ||
"fields": { | ||
"registration_purpose": "OBPS Regulated Operation", | ||
"operation_id": "aeeb781e-a97b-4ab2-9a6e-02e4522add1a" | ||
} | ||
}, | ||
{ | ||
"model": "registration.registrationpurpose", | ||
"pk": 12, | ||
"fields": { | ||
"registration_purpose": "Reporting Operation", | ||
"operation_id": "02a3ab84-26c6-4a79-bf89-72f877ceef8e" | ||
} | ||
}, | ||
{ | ||
"model": "registration.registrationpurpose", | ||
"pk": 13, | ||
"fields": { | ||
"registration_purpose": "OBPS Regulated Operation", | ||
"operation_id": "0ac72fa9-2636-4f54-b378-af6b1a070787" | ||
} | ||
}, | ||
{ | ||
"model": "registration.registrationpurpose", | ||
"pk": 14, | ||
"fields": { | ||
"registration_purpose": "Reporting Operation", | ||
"operation_id": "df62d793-8cfe-4272-a93e-ea9c9139ff82" | ||
} | ||
}, | ||
{ | ||
"model": "registration.registrationpurpose", | ||
"pk": 15, | ||
"fields": { | ||
"registration_purpose": "OBPS Regulated Operation", | ||
"operation_id": "c5b3643b-c143-42f3-8a2b-03ccc7319cd9" | ||
} | ||
}, | ||
{ | ||
"model": "registration.registrationpurpose", | ||
"pk": 16, | ||
"fields": { | ||
"registration_purpose": "OBPS Regulated Operation", | ||
"operation_id": "954c0382-ff61-4e87-a8a0-873586534b54" | ||
} | ||
}, | ||
{ | ||
"model": "registration.registrationpurpose", | ||
"pk": 14, | ||
"fields": { | ||
"registration_purpose": "Reporting Operation", | ||
"operation_id": "ef9044dd-2a27-4d26-86fe-02e51e0755f7" | ||
} | ||
}, | ||
{ | ||
"model": "registration.registrationpurpose", | ||
"pk": 15, | ||
"fields": { | ||
"registration_purpose": "Reporting Operation", | ||
"operation_id": "59d95661-c752-489b-9fd1-0c3fa3454dda" | ||
} | ||
}, | ||
{ | ||
"model": "registration.registrationpurpose", | ||
"pk": 14, | ||
"fields": { | ||
"registration_purpose": "Reporting Operation", | ||
"operation_id": "6d07d02a-1ad2-46ed-ad56-2f84313e98bf" | ||
} | ||
}, | ||
{ | ||
"model": "registration.registrationpurpose", | ||
"pk": 15, | ||
"fields": { | ||
"registration_purpose": "Potential Reporting Operation", | ||
"operation_id": "df62d793-8cfe-4272-a93e-ea9c9139ff82" | ||
} | ||
}, | ||
{ | ||
"model": "registration.registrationpurpose", | ||
"pk": 16, | ||
"fields": { | ||
"registration_purpose": "Electricity Import Operation", | ||
"operation_id": "c5b3643b-c143-42f3-8a2b-03ccc7319cd9" | ||
} | ||
} | ||
] |
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
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.
Added a new API route, though I was split on if I should add a query param like
documents
and return the documents if it was true. Can we have conditional Django Ninja schemas? Is a separate route fine?