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

Folder Level Permissions #3590

Closed
wants to merge 103 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
103 commits
Select commit Hold shift + click to select a range
2b98b45
wip
adrians5j Aug 9, 2023
e7c0f25
wip
adrians5j Aug 11, 2023
d06b24a
Merge remote-tracking branch 'origin/next' into adrian/flp-complete
adrians5j Aug 30, 2023
49120b6
Merge remote-tracking branch 'origin/dev' into adrian/flp-complete
adrians5j Aug 30, 2023
3f7db8e
wip: create identity profiles
adrians5j Aug 31, 2023
aba8784
Merge remote-tracking branch 'origin/next' into adrian/flp-complete
adrians5j Sep 11, 2023
a0cb9c9
wip
adrians5j Sep 13, 2023
f8b7db7
wip
adrians5j Sep 22, 2023
4fdaa7e
wip
adrians5j Sep 26, 2023
bbc8575
wip
adrians5j Sep 27, 2023
c236bac
wip
adrians5j Sep 27, 2023
831815e
wip
adrians5j Sep 27, 2023
15825ae
wip
adrians5j Sep 28, 2023
b3d885b
wip
adrians5j Sep 28, 2023
77ab1b5
wip
adrians5j Sep 28, 2023
d783507
wip
adrians5j Sep 29, 2023
380ab58
wip
adrians5j Oct 2, 2023
f6c6095
wip
adrians5j Oct 2, 2023
3478aa2
wip
adrians5j Oct 4, 2023
fba33de
wip
adrians5j Oct 5, 2023
5bdc4cd
wip
adrians5j Oct 6, 2023
c72449d
wip
adrians5j Oct 6, 2023
bef1e18
wip
adrians5j Oct 6, 2023
df9df17
wip
adrians5j Oct 6, 2023
5069c60
wip
adrians5j Oct 8, 2023
1be9a02
wip
adrians5j Oct 9, 2023
df0e4b7
wip
adrians5j Oct 10, 2023
dbc31a7
wip
adrians5j Oct 10, 2023
8144c93
Merge remote-tracking branch 'origin/next' into adrian/flp-complete-a…
adrians5j Oct 10, 2023
06a4f7a
wip
adrians5j Oct 10, 2023
3ac37cf
wip
adrians5j Oct 10, 2023
8cba393
wip
adrians5j Oct 10, 2023
395e498
wip
adrians5j Oct 11, 2023
963465a
wip
adrians5j Oct 11, 2023
4fa80f9
wip
adrians5j Oct 11, 2023
51f9c70
wip
adrians5j Oct 12, 2023
887809e
wip: pb deco
adrians5j Oct 12, 2023
e7ea2ff
wip: listAllFolders using CMS SO
adrians5j Oct 12, 2023
2728ea4
wip: decorators only if FLP enabled
adrians5j Oct 12, 2023
5241ddf
wip: add `listAllFoldersWithPermissions`
adrians5j Oct 12, 2023
964f180
wip: admin users
adrians5j Oct 13, 2023
3595c3c
wip: FM decorators / tests
adrians5j Oct 13, 2023
5706a66
wip: cwp tpls
adrians5j Oct 13, 2023
c415c90
wip: cms decorators
adrians5j Oct 16, 2023
f05efaf
wip: correct `isLastStep`
adrians5j Oct 16, 2023
689b8cf
wip: pb decorators
adrians5j Oct 16, 2023
10444a7
wip: prettier
adrians5j Oct 16, 2023
07ee724
wip: prettier/eslint/yarn/adio
adrians5j Oct 16, 2023
d67fdec
Merge branch 'next' into adrian/flp-complete-admin-users-full
adrians5j Oct 16, 2023
db737ea
wip: prettier/eslint/yarn/adio
adrians5j Oct 16, 2023
7f0ba5c
wip: undo label / field changes
adrians5j Oct 16, 2023
04dfb4c
wip: undo label / field changes
adrians5j Oct 16, 2023
cc8d8c7
wip
adrians5j Oct 16, 2023
465e1c8
wip
adrians5j Oct 16, 2023
aa937af
wip
adrians5j Oct 16, 2023
a4e898a
wip: ensure instead of can
adrians5j Oct 17, 2023
e64d8eb
test: update test
adrians5j Oct 17, 2023
fbde603
wip
adrians5j Oct 17, 2023
b6082c0
wip: tests
adrians5j Oct 17, 2023
4ccd787
wip: prettier
adrians5j Oct 17, 2023
74bba55
wip: prettier
adrians5j Oct 17, 2023
c2b6806
wip: tests
adrians5j Oct 17, 2023
14698ef
wip: remove required on GQL inputs (e.g. AdminUsersInstallInput)
adrians5j Oct 17, 2023
219cbab
wip: add `api-admin-users` handler
adrians5j Oct 17, 2023
003f644
wip: update tests
adrians5j Oct 17, 2023
e30feb8
wip: update tests
adrians5j Oct 17, 2023
be7da3a
wip: bugs
adrians5j Oct 17, 2023
e7d2f6b
wip: withoutAuth in onLogin hook
adrians5j Oct 18, 2023
907ceb6
wip: increase t/o
adrians5j Oct 18, 2023
b597eff
wip
adrians5j Oct 18, 2023
e0fb844
wip [no ci]
adrians5j Oct 18, 2023
0bc92fe
wip [no ci]
adrians5j Oct 18, 2023
c08191f
wip: cypress
adrians5j Oct 18, 2023
4d134e1
wip: remove FmContext
adrians5j Oct 18, 2023
26c8ea7
wip: polish
adrians5j Oct 18, 2023
8289ce9
Merge branch 'next' into adrian/flp-complete-admin-users-full
adrians5j Oct 18, 2023
af3295b
wip: show "E-mail not available." if not returned by GQL API
adrians5j Oct 18, 2023
c21695d
fix: onClick handler for access levels menu items
adrians5j Oct 19, 2023
bb53a15
fix: onClick handler for access levels menu items
adrians5j Oct 19, 2023
a1ac55e
fix: add region to output
adrians5j Oct 19, 2023
71268bb
fix: use aws.config for region
adrians5j Oct 19, 2023
b8462e2
fix: add region to webiny info cmd
adrians5j Oct 19, 2023
e18410b
fix: add gql lambda fn name to API output
adrians5j Oct 19, 2023
eb3fd8d
fix: add comments
adrians5j Oct 19, 2023
4863db7
fix: remove `GetUsernameUser` / add comments
adrians5j Oct 19, 2023
c56d384
fix: comments
adrians5j Oct 19, 2023
6cd744e
fix: remove redundant fields
adrians5j Oct 19, 2023
257a418
fix: remove redundant await
adrians5j Oct 19, 2023
a065437
fix: update comment
adrians5j Oct 19, 2023
2d40542
fix: update display name creation
adrians5j Oct 19, 2023
70629fd
fix: simplify display name generation
adrians5j Oct 19, 2023
1adfeac
fix: simplify display name generation
adrians5j Oct 19, 2023
5f6a205
fix: update validator
adrians5j Oct 19, 2023
b8068b4
fix: update validator
adrians5j Oct 19, 2023
ef5a690
fix: update types/validators
adrians5j Oct 19, 2023
444b80d
fix: make email required back / fix types
adrians5j Oct 19, 2023
dd51a3a
fix: move admin users GQL into cognito
adrians5j Oct 19, 2023
2084cd0
fix: move admin users GQL into cognito
adrians5j Oct 19, 2023
460fdfb
fix: move admin users GQL into cognito
adrians5j Oct 19, 2023
df7e5fe
fix: move admin users GQL into cognito
adrians5j Oct 19, 2023
360ac39
fix: move admin users GQL into cognito
adrians5j Oct 19, 2023
f9efd12
fix: move admin users GQL into cognito
adrians5j Oct 19, 2023
f0e3f7e
fix: move admin users GQL into cognito
adrians5j Oct 19, 2023
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
6 changes: 2 additions & 4 deletions apps/api/graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
},
"dependencies": {
"@webiny/api-aco": "0.0.0",
"@webiny/api-admin-users-cognito": "0.0.0",
"@webiny/api-admin-users-cognito-so-ddb": "0.0.0",
"@webiny/api-admin-users": "0.0.0",
"@webiny/api-admin-users-so-ddb": "0.0.0",
"@webiny/api-apw": "0.0.0",
"@webiny/api-apw-scheduler-so-ddb": "0.0.0",
"@webiny/api-file-manager": "0.0.0",
Expand Down Expand Up @@ -50,8 +50,6 @@
"adio": {
"ignore": {
"dependencies": [
"@webiny/api-admin-users-cognito",
"@webiny/api-admin-users-cognito-so-ddb",
"@webiny/api-security-cognito",
"@webiny/api-security-okta"
],
Expand Down
7 changes: 3 additions & 4 deletions apps/api/graphql/src/security.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ import { createStorageOperations as securityStorageOperations } from "@webiny/ap
import { authenticateUsingHttpHeader } from "@webiny/api-security/plugins/authenticateUsingHttpHeader";
import apiKeyAuthentication from "@webiny/api-security/plugins/apiKeyAuthentication";
import apiKeyAuthorization from "@webiny/api-security/plugins/apiKeyAuthorization";
import cognitoAuthentication from "@webiny/api-security-cognito";
import cognitoAuthentication, { syncWithCognito } from "@webiny/api-security-cognito";
import anonymousAuthorization from "@webiny/api-security/plugins/anonymousAuthorization";
import tenantLinkAuthorization from "@webiny/api-security/plugins/tenantLinkAuthorization";
import createAdminUsersApp from "@webiny/api-admin-users-cognito";
import { syncWithCognito } from "@webiny/api-admin-users-cognito/syncWithCognito";
import { createStorageOperations as createAdminUsersStorageOperations } from "@webiny/api-admin-users-cognito-so-ddb";
import createAdminUsersApp from "@webiny/api-admin-users";
import { createStorageOperations as createAdminUsersStorageOperations } from "@webiny/api-admin-users-so-ddb";

export default ({ documentClient }: { documentClient: DocumentClient }) => [
/**
Expand Down
14 changes: 4 additions & 10 deletions apps/api/graphql/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
"path": "../../../packages/api-aco/tsconfig.build.json"
},
{
"path": "../../../packages/api-admin-users-cognito/tsconfig.build.json"
"path": "../../../packages/api-admin-users/tsconfig.build.json"
},
{
"path": "../../../packages/api-admin-users-cognito-so-ddb/tsconfig.build.json"
"path": "../../../packages/api-admin-users-so-ddb/tsconfig.build.json"
},
{
"path": "../../../packages/api-apw/tsconfig.build.json"
Expand Down Expand Up @@ -113,14 +113,8 @@
"~/*": ["./src/*"],
"@webiny/api-aco/*": ["../../../packages/api-aco/src/*"],
"@webiny/api-aco": ["../../../packages/api-aco/src"],
"@webiny/api-admin-users-cognito/*": ["../../../packages/api-admin-users-cognito/src/*"],
"@webiny/api-admin-users-cognito": ["../../../packages/api-admin-users-cognito/src"],
"@webiny/api-admin-users-cognito-so-ddb/*": [
"../../../packages/api-admin-users-cognito-so-ddb/src/*"
],
"@webiny/api-admin-users-cognito-so-ddb": [
"../../../packages/api-admin-users-cognito-so-ddb/src"
],
"@webiny/api-admin-users-so-ddb/*": ["../../../packages/api-admin-users-so-ddb/src/*"],
"@webiny/api-admin-users-so-ddb": ["../../../packages/api-admin-users-so-ddb/src"],
"@webiny/api-apw/*": ["../../../packages/api-apw/src/*"],
"@webiny/api-apw": ["../../../packages/api-apw/src"],
"@webiny/api-file-manager/*": ["../../../packages/api-file-manager/src/*"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,25 +138,12 @@ context("Forms Creation", () => {
});
});

// Finally, delete the form and it's all revisions
for (let i = 0; i < 2; i++) {
cy.findByTestId("fb.form-preview.header.delete").click();
cy.wait(500);
cy.findByTestId("fb.form-preview.header.delete-dialog").within(() => {
cy.findByText("Confirmation required!").should("exist");
cy.findByTestId("confirmationdialog-confirm-action").click();
});
cy.findByText(/Revision was deleted successfully/i).should("exist");
cy.wait(500);
}

cy.findByTestId("fb.form-preview.header.delete").click();
cy.wait(500);
cy.findByTestId("fb.form-preview.header.delete-dialog").within(() => {
cy.findByText("Confirmation required!").should("exist");
cy.findByTestId("confirmationdialog-confirm-action").click();
});
cy.findByText(/Form was deleted successfully/i).should("exist");
cy.wait(500);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ context("Headless CMS - Content Models CRUD", () => {
// 2.3 Click save button
cy.findByTestId("new-record-button").click();
cy.findByTestId("cms-new-content-model-modal").within(() => {
cy.findByText("New Content Model").should("exist");
// Ensures we start typing once the content model group select is loaded.
// This is important because otherwise, typing into the first field would be partially lost.
cy.contains("Ungrouped").should("exist");

cy.findByTestId("cms.newcontentmodeldialog.name")
.focus()
Expand Down Expand Up @@ -179,7 +181,9 @@ context("Headless CMS - Content Models CRUD", () => {
// 2.3 Click save button
cy.findByTestId("new-record-button").click();
cy.findByTestId("cms-new-content-model-modal").within(() => {
cy.findByText("New Content Model").should("exist");
// Ensures we start typing once the content model group select is loaded.
// This is important because otherwise, typing into the first field would be partially lost.
cy.contains("Ungrouped").should("exist");

cy.findByTestId("cms.newcontentmodeldialog.name")
.focus()
Expand Down
Loading