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

Move entity storage to the Orchestration #110

Merged
merged 34 commits into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
83496bb
Forward create user request to cluster nodes
wcalderipe Feb 8, 2024
e0696a2
Add E2E test for create user
wcalderipe Feb 9, 2024
ad33103
Fix wrong exception on tests
wcalderipe Feb 9, 2024
0b5740a
Add documentation to policy engine management controller
wcalderipe Feb 9, 2024
bf9560d
Fix lint issue
wcalderipe Feb 9, 2024
d81fdef
Move DTOs to create user to authz-shared
wcalderipe Feb 9, 2024
e4c1ca7
Introduce Store module for Entity, Policy and Identity
wcalderipe Feb 13, 2024
3049a74
Merge remote-tracking branch 'origin/main' into feature/forward-creat…
wcalderipe Feb 13, 2024
a852412
Create and update user entity
wcalderipe Feb 13, 2024
e032d3a
Add EntityStoreModule
wcalderipe Feb 13, 2024
2b75368
Assign user to group
wcalderipe Feb 13, 2024
c8934eb
Create organization
wcalderipe Feb 13, 2024
d52ef9e
Remove entity prefix of files
wcalderipe Feb 13, 2024
fd1fbd6
Register wallet endpoint
wcalderipe Feb 13, 2024
bc1d38a
Create wallet group
wcalderipe Feb 13, 2024
b39874c
Assign wallet to a user
wcalderipe Feb 13, 2024
6d20b1e
Add endpoint to create an address book account
wcalderipe Feb 14, 2024
dcbf7bc
Add endpoint to register tokens
wcalderipe Feb 14, 2024
afadc4a
Add endpoint to create credential
wcalderipe Feb 14, 2024
30a84b1
Clean up DTOs
wcalderipe Feb 14, 2024
98ec08c
Refactor BaseAction and BaseActionRequest DTOs
wcalderipe Feb 14, 2024
6ecd25f
DTOs CR
Feb 14, 2024
a2c2cd7
fix other DTOs
Feb 14, 2024
e2ee392
Merge remote-tracking branch 'origin/main' into feature/forward-creat…
Feb 14, 2024
35688f6
fix enum prop
Feb 14, 2024
c273248
fix format
Feb 14, 2024
b588dd2
Fix wrong DTO file suffix
wcalderipe Feb 14, 2024
6ecf08e
Add endpoint to get organization entities
wcalderipe Feb 14, 2024
ac7dd38
Add shared development fixture for personas
wcalderipe Feb 15, 2024
e57bd48
Add entity repository in the policy engine
wcalderipe Feb 15, 2024
16a55e3
Refactor mock data
wcalderipe Feb 15, 2024
adbeca5
Fix orchestration E2E tests
wcalderipe Feb 15, 2024
a241480
Remove unused dependency
wcalderipe Feb 15, 2024
1eaddd8
Disable strictPropertyInitialization on TRI
wcalderipe Feb 15, 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
2 changes: 0 additions & 2 deletions .github/workflows/authz_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ jobs:
shell: bash
run: |
make authz/copy-default-env
make authz/test/db/setup
make authz/db/generate-types

- name: Test types
Expand All @@ -56,7 +55,6 @@ jobs:
- name: Test integration
shell: bash
run: |
make authz/test/db/setup
make authz/test/integration

# - name: Test E2E
Expand Down
21 changes: 5 additions & 16 deletions apps/authz/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ authz/db/setup:
prisma migrate reset \
--schema ${AUTHZ_DATABASE_SCHEMA} \
--force
make authz/db/seed

@echo ""
@echo "${TERM_GREEN}🛠️ Setting up Authz test database${TERM_NO_COLOR}"
Expand All @@ -65,23 +64,8 @@ authz/db/create-migration:
--schema ${AUTHZ_DATABASE_SCHEMA} \
--name ${NAME}

# To maintain seed data within their respective modules and then import them
# into the main seed.ts file for execution, it's necessary to compile the
# project and resolve its path aliases before running the vanilla JavaScript
# seed entry point.
authz/db/seed:
npx dotenv -e ${AUTHZ_PROJECT_DIR}/.env -- \
ts-node -r tsconfig-paths/register --project ${AUTHZ_PROJECT_DIR}/tsconfig.app.json ${AUTHZ_PROJECT_DIR}/src/shared/module/persistence/seed.ts

# === Testing ===

authz/test/db/setup:
npx dotenv -e ${AUTHZ_PROJECT_DIR}/.env.test --override -- \
prisma migrate reset \
--schema ${AUTHZ_DATABASE_SCHEMA} \
--skip-seed \
--force

authz/test/type:
make authz/db/generate-types
npx tsc \
Expand All @@ -106,6 +90,11 @@ authz/test/e2e:
authz/test/e2e/watch:
make authz/test/e2e ARGS=--watch

authz/test:
make authz/test/unit
make authz/test/integration
make authz/test/e2e

# === Open Policy Agent & Rego ===

authz/rego/build:
Expand Down
Loading
Loading