Commit 5b3dc72
Split CI/CD-related infrastructure into its own model (#15002)
* wip cicd split
* migration updates
* old ui
* display under ci/cd eng details
* cicdinfra type field is read only on form to prevent changes in usage on engagements
* migration update after merge
* add cicd link to navbar
* css for disabled controls (new old ui)
* eng view updates
* classic copies of templates
* make (name, infra type) unique
* linter fix
* cicd tests
* linter fixes
* test fixes
* refactor model into module in line with how it should be done
* refactor cicd api to correct layout
* refactor (old) ui into proper package
* add cicd_infrastructure to modules state table
* remove config authorized decorator usage
* rework api perms to allow read by authed user, edit by superuser
* rework edit-related view perms
* comment
* disallow editing of infra type on instances in api, check in model save as well
* reorder listings to scm/build/orch for logical usage
* fix migration
* comments
* migration updates after merge
* Renumber cicd_infrastructure migration to 0285 after dev merge
* fix: make CICDInfrastructure a grantable configuration permission
CICDInfrastructure was never added to get_configuration_permissions_fields(),
so its view/add/change/delete codenames never reached a user's configuration
permissions. Non-superusers could not be granted access and the new CI/CD
Infrastructure UI/menu was effectively superuser-only, unlike the
Tool_Configuration it replaces. Register it (with a "CI/CD Infrastructure"
display name) so it is grantable like every other configuration model.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Valentijn Scholten <valentijnscholten@gmail.com>
Co-authored-by: Cody Maffucci <46459665+Maffooch@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent d604c30 commit 5b3dc72
36 files changed
Lines changed: 1036 additions & 132 deletions
File tree
- dojo
- authorization
- cicd_infrastructure
- api
- ui
- db_migrations
- engagement
- ui
- fixtures
- static/dojo/css
- templates_classic
- dojo
- templates
- dojo
- user
- unittests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
1114 | 1115 | | |
1115 | 1116 | | |
1116 | 1117 | | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
1117 | 1130 | | |
1118 | 1131 | | |
1119 | 1132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
Whitespace-only changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
Whitespace-only changes.
0 commit comments