Commit 7cefb6c
Feat: Added support for multiple project owners (litmuschaos#4597)
* Modified db schema of Owner.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Added new API GetProjectOwners.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* fix: return type error.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* chore(deps): Bump golang.org/x/crypto in /chaoscenter/authentication (litmuschaos#4527)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.18.0 to 0.21.0.
- [Commits](golang/crypto@v0.18.0...v0.21.0)
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): Bump follow-redirects in /chaoscenter/web (litmuschaos#4529)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.5 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](follow-redirects/follow-redirects@v1.15.5...v1.15.6)
---
updated-dependencies:
- dependency-name: follow-redirects
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): Bump github.com/golang/protobuf (litmuschaos#4493)
Bumps [github.com/golang/protobuf](https://github.com/golang/protobuf) from 1.5.3 to 1.5.4.
- [Release notes](https://github.com/golang/protobuf/releases)
- [Commits](golang/protobuf@v1.5.3...v1.5.4)
---
updated-dependencies:
- dependency-name: github.com/golang/protobuf
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Raj Das <mail.rajdas@gmail.com>
* Modified SendInvitation API.
This modification unables to send invite with the role as owner.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Modified LeaveProject API.
This modification checks if the User is the last owner of the project and if not User can leave the project.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* RBAC modification `LeaveProject`.
Allows Owner to be able to leave the project.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Added `UpdateMemberRole` API.
This API is used for updating role of the member in the project.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Fixed some syntax errors.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Updated roles for owner.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Added new API `DeleteProject`.
Owner can delete project with help of this API.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Added mocks.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* modified go.sum
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Added condition `UpdateMemberRole`.
User cannot change role of their own, so that it will avoid edge cases like
1. User is the last owner of the project.
2. User accidentally losing owner access to the projects.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* made suggested changes.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Changed DeleteProject endpoint to have url parameter.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Minor fixes.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* [WIP] : Multiple project owner backend. (litmuschaos#4536)
* Modified db schema of Owner.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Added new API GetProjectOwners.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* fix: return type error.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* chore(deps): Bump golang.org/x/crypto in /chaoscenter/authentication (litmuschaos#4527)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.18.0 to 0.21.0.
- [Commits](golang/crypto@v0.18.0...v0.21.0)
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): Bump follow-redirects in /chaoscenter/web (litmuschaos#4529)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.5 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](follow-redirects/follow-redirects@v1.15.5...v1.15.6)
---
updated-dependencies:
- dependency-name: follow-redirects
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): Bump github.com/golang/protobuf (litmuschaos#4493)
Bumps [github.com/golang/protobuf](https://github.com/golang/protobuf) from 1.5.3 to 1.5.4.
- [Release notes](https://github.com/golang/protobuf/releases)
- [Commits](golang/protobuf@v1.5.3...v1.5.4)
---
updated-dependencies:
- dependency-name: github.com/golang/protobuf
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Raj Das <mail.rajdas@gmail.com>
* Modified SendInvitation API.
This modification unables to send invite with the role as owner.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Modified LeaveProject API.
This modification checks if the User is the last owner of the project and if not User can leave the project.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* RBAC modification `LeaveProject`.
Allows Owner to be able to leave the project.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Added `UpdateMemberRole` API.
This API is used for updating role of the member in the project.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Fixed some syntax errors.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Updated roles for owner.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Added new API `DeleteProject`.
Owner can delete project with help of this API.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Added mocks.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* modified go.sum
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Added condition `UpdateMemberRole`.
User cannot change role of their own, so that it will avoid edge cases like
1. User is the last owner of the project.
2. User accidentally losing owner access to the projects.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* made suggested changes.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Changed DeleteProject endpoint to have url parameter.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Minor fixes.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
---------
Signed-off-by: aryan <aryan1bhokare@gmail.com>
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Aryan Bhokare <92683836+aryan-bhokare@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Raj Das <mail.rajdas@gmail.com>
* Added new route .
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Added `CreateProject` modal.
Added a modal CreateProject with it's controller and views.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Some changes in `CreateProjectView`.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Added `ProjectDashboardCardMenu`.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Added `ProjectDashboardCard`.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Added `DeleteProject` API mutations.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Added `ProjectDashboard`.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Added image and strings.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Modified `project entities`.
Added new fields in `Project` struct.
Added fields for filters, pagination, and some constants.
Modified `CreateProjectInput`.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* [Backend] Modification in Backend for the UI.
Added Filters and pagination in Backend.
Modified API's and added a pipeline for the aggregation of results.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Added `project_util` for validation of input request.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Indent Fixes
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Modification for Frontend Hook of `CreateProject` API.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Modified `ListProject` Query frontend hook.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Removed string constants and some minor changes.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Added Project Filters.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Added pagination and filter subheader in Dashboard.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* modified auth-api swagger file.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Added tags section in create-project modal.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Changes due to modification of API and addition of new strings
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* minor changes and resolved some errors.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Added routing when clicked on the card.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Modifications in backend tests as per API updates.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Fix: NoProjects Element and NoFilteredProject Results element.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Added scroll for the project list.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Some changes in UI w.r.t Multiple Project Owner Feature.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Made search text type insensitive.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Update chaoscenter/web/src/controllers/ProjectDashboard/ProjectFilters.tsx
Co-authored-by: Hrishav <hrishav.kumar@harness.io>
Signed-off-by: Aryan Bhokare <92683836+aryan-bhokare@users.noreply.github.com>
* requested changes.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* removed unnecessary handle function
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* requested backend changes and small fixes
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Changed folder structure.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* requested changes.
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* fixed import orders
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* fixing RoleEditor to RoleExecuter
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* removed redundant deleteprojectinput
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* fixed bug caused in merging
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* fixed bug caused in merging
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* removed duplicate struct
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* Fix: frontend chaoshub test
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* fix: tag rendering issue in project dashboard
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* fix: Less user details in createProject
Signed-off-by: aryan <aryan1bhokare@gmail.com>
* fix: import orders
Signed-off-by: aryan <aryan1bhokare@gmail.com>
---------
Signed-off-by: aryan <aryan1bhokare@gmail.com>
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Aryan Bhokare <92683836+aryan-bhokare@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Raj Das <mail.rajdas@gmail.com>
Co-authored-by: Hrishav <hrishav.kumar@harness.io>
Co-authored-by: Saranya Jena <saranya.jena@harness.io>
Signed-off-by: andoriyaprashant <prashantandoriya@gmail.com>1 parent 5c1f9c0 commit 7cefb6c
File tree
48 files changed
+2442
-390
lines changed- chaoscenter
- authentication
- api
- handlers/rest
- mocks
- types
- utils
- pkg
- entities
- project
- services
- web/src
- api/auth
- hooks
- schemas
- components
- ProjectDashboardCardContainer
- controllers
- CreateProject
- CustomStepLog
- ProjectDashboardCardMenu
- ProjectDashboard
- ProjectSelectorList
- hooks
- images
- routes
- strings
- views
- ChaosHub/__tests__
- CreateProject
- InviteNewMembers
- ProjectDashboardCardMenu
- ProjectDashboard
- ProjectMembers
- ProjectSelectorList
- mkdocs/docs/auth/v3.0.0
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
48 files changed
+2442
-390
lines changedLines changed: 45 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
56 | | - | |
| 58 | + | |
| 59 | + | |
57 | 60 | | |
58 | | - | |
| 61 | + | |
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
63 | 66 | | |
64 | 67 | | |
65 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
66 | 75 | | |
67 | 76 | | |
68 | 77 | | |
| |||
122 | 131 | | |
123 | 132 | | |
124 | 133 | | |
125 | | - | |
126 | | - | |
127 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
128 | 138 | | |
129 | 139 | | |
130 | 140 | | |
| |||
135 | 145 | | |
136 | 146 | | |
137 | 147 | | |
138 | | - | |
| 148 | + | |
139 | 149 | | |
140 | 150 | | |
141 | 151 | | |
| |||
309 | 319 | | |
310 | 320 | | |
311 | 321 | | |
| 322 | + | |
312 | 323 | | |
313 | 324 | | |
314 | 325 | | |
| |||
324 | 335 | | |
325 | 336 | | |
326 | 337 | | |
327 | | - | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
328 | 349 | | |
329 | 350 | | |
330 | 351 | | |
| |||
349 | 370 | | |
350 | 371 | | |
351 | 372 | | |
| 373 | + | |
| 374 | + | |
352 | 375 | | |
353 | 376 | | |
354 | 377 | | |
355 | 378 | | |
356 | 379 | | |
357 | 380 | | |
358 | | - | |
| 381 | + | |
359 | 382 | | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
364 | 389 | | |
365 | 390 | | |
366 | 391 | | |
| |||
436 | 461 | | |
437 | 462 | | |
438 | 463 | | |
439 | | - | |
| 464 | + | |
440 | 465 | | |
441 | 466 | | |
442 | 467 | | |
| |||
734 | 759 | | |
735 | 760 | | |
736 | 761 | | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
737 | 768 | | |
738 | 769 | | |
739 | 770 | | |
| |||
Lines changed: 95 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
38 | 42 | | |
39 | 43 | | |
40 | | - | |
| 44 | + | |
41 | 45 | | |
42 | 46 | | |
43 | 47 | | |
| |||
60 | 64 | | |
61 | 65 | | |
62 | 66 | | |
63 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
64 | 88 | | |
65 | 89 | | |
66 | | - | |
| 90 | + | |
67 | 91 | | |
68 | 92 | | |
69 | 93 | | |
| |||
87 | 111 | | |
88 | 112 | | |
89 | 113 | | |
90 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
91 | 134 | | |
92 | 135 | | |
93 | | - | |
| 136 | + | |
94 | 137 | | |
95 | 138 | | |
96 | 139 | | |
| |||
106 | 149 | | |
107 | 150 | | |
108 | 151 | | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
113 | 171 | | |
114 | 172 | | |
| 173 | + | |
115 | 174 | | |
116 | | - | |
| 175 | + | |
117 | 176 | | |
118 | 177 | | |
119 | 178 | | |
| |||
129 | 188 | | |
130 | 189 | | |
131 | 190 | | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
132 | 215 | | |
133 | | - | |
| 216 | + | |
134 | 217 | | |
135 | 218 | | |
136 | 219 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | | - | |
102 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
| 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 | + | |
0 commit comments