Skip to content
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

[WX-1734] Workflow permissions modal #5096

Open
wants to merge 62 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 58 commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
7070133
wip
kpierre13 Sep 10, 2024
6af9ea5
wip
kpierre13 Sep 11, 2024
3e4b075
add new endpoints
kpierre13 Sep 20, 2024
fb32943
add temp button for modal
kpierre13 Sep 20, 2024
14c4872
PermissionsModal
kpierre13 Sep 20, 2024
4202482
PermissionsModal tests
kpierre13 Sep 20, 2024
3fbe881
wrap in act() errors
kpierre13 Sep 23, 2024
340d3a0
Add key to User component
kpierre13 Sep 23, 2024
24a173d
update aria-label
kpierre13 Sep 23, 2024
c7921bc
wip
kpierre13 Sep 25, 2024
3b95dce
add email validation
kpierre13 Sep 26, 2024
f3e3b8a
Update modal title; add publicly readable checkbox; update tests
kpierre13 Sep 27, 2024
ff42081
wip
kpierre13 Sep 10, 2024
54de947
wip
kpierre13 Sep 11, 2024
f90b83b
add new endpoints
kpierre13 Sep 20, 2024
6404e8b
add temp button for modal
kpierre13 Sep 20, 2024
46f7767
PermissionsModal
kpierre13 Sep 20, 2024
5297368
PermissionsModal tests
kpierre13 Sep 20, 2024
cdbc533
wrap in act() errors
kpierre13 Sep 23, 2024
754cb66
Add key to User component
kpierre13 Sep 23, 2024
75d186d
update aria-label
kpierre13 Sep 23, 2024
51daaf8
wip
kpierre13 Sep 25, 2024
c913e02
add email validation
kpierre13 Sep 26, 2024
2e90fe0
Update modal title; add publicly readable checkbox; update tests
kpierre13 Sep 27, 2024
ca022f0
Merge remote-tracking branch 'origin/wx-1734-workflow-permissions-mod…
kpierre13 Sep 27, 2024
27d164f
Merge branch 'dev' into wx-1734-workflow-permissions-modal-kp
kpierre13 Sep 27, 2024
4a38e2f
update tests
kpierre13 Sep 27, 2024
12a4614
type update
kpierre13 Sep 27, 2024
78c68f4
type update
kpierre13 Sep 27, 2024
ae9c80d
refresh workflowsummary on update to permissions; tests
kpierre13 Sep 27, 2024
06ed6a6
add permissionsModal to snapshotActionMenu
kpierre13 Sep 27, 2024
7d9b600
wip
kpierre13 Sep 27, 2024
0ca92e4
add test to wrapper
kpierre13 Sep 27, 2024
2edc35b
tests
kpierre13 Sep 27, 2024
21cebb6
Undo type change and fix snapshot variable usages
sam-schu Sep 30, 2024
b942e5a
Do not allow undefined selected snapshot
sam-schu Sep 30, 2024
ec5de77
Make menu button sentence case
sam-schu Sep 30, 2024
1e7ebfa
Move menu button to before delete snapshot button
sam-schu Sep 30, 2024
b0d0fe6
Update snapshot action menu props and comments
sam-schu Sep 30, 2024
2ae97e8
Do not show invalid email error immediately after adding user
sam-schu Sep 30, 2024
ec5357f
Add error tooltip to add user button
sam-schu Sep 30, 2024
8814e19
Revert "Add error tooltip to add user button"
sam-schu Oct 1, 2024
ced1045
Update workflow wrapper tests
sam-schu Oct 1, 2024
feec4d0
SonarCloud accessibility fixes
sam-schu Oct 1, 2024
971ba40
Remove redundant prop
sam-schu Oct 1, 2024
b5ade44
TypeScript fix & dropdown callback cleanup
sam-schu Oct 1, 2024
7e13abe
Typing fix
sam-schu Oct 1, 2024
c30ccfb
Merge dev into branch
sam-schu Oct 1, 2024
f538f6b
Attempt SonarCloud fix
sam-schu Oct 1, 2024
96ee67d
Refactor test mocks
sam-schu Oct 1, 2024
930b454
Remove redundant function and improve error handling
sam-schu Oct 2, 2024
2e9c197
Add additional WorkflowWrapper tests
sam-schu Oct 2, 2024
8f6e067
Update test prop types
sam-schu Oct 2, 2024
029865e
Reorganize tests
sam-schu Oct 2, 2024
0a895e7
Reorganize and update snapshot action menu tests
sam-schu Oct 2, 2024
4bd588c
Fix text box label ID
sam-schu Oct 2, 2024
c696ae5
Rewrite publicly readable logic
sam-schu Oct 3, 2024
a7ddd4e
Add and update permissions modal tests
sam-schu Oct 3, 2024
3e0f5ac
Update naming
sam-schu Oct 4, 2024
64713ea
Rename snapshot action menu button
sam-schu Oct 4, 2024
3b8a585
Do not allow existing users to be added again
sam-schu Oct 4, 2024
bc7987d
Merge branch 'dev' into wx-1734-workflow-permissions-modal-kp
sam-schu Oct 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/libs/ajax/methods/Methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,19 @@ export const Methods = (signal?: AbortSignal) => ({
return res.json();
},

permissions: async () => {
const res = await fetchOrchestration(`api/${root}/permissions`, _.merge(authOpts(), { signal }));
return res.json();
},

setPermissions: async (payload) => {
const res = await fetchOrchestration(
`api/${root}/permissions`,
_.mergeAll([authOpts(), jsonBody(payload), { signal, method: 'POST' }])
);
return res.json();
},

allConfigs: async () => {
const res = await fetchAgora(`methods/${namespace}/${name}/configurations`, _.merge(authOpts(), { signal }));
return res.json();
Expand Down
Loading
Loading