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

refactor(core): update relation queries #6055

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

gao-sun
Copy link
Member

@gao-sun gao-sun commented Jun 19, 2024

Summary

use object with explicit keys instead of arrays for relation queries (insert and exists). this makes the parameters clearer and eliminate the risk of element disorder.

Testing

no api change, integration tests should cover

Checklist

  • .changeset
  • unit tests
  • integration tests
  • necessary TSDoc comments

Copy link

COMPARE TO master

Total Size Diff 📈 +1.21 KB

Diff by File
Name Diff
packages/core/src/libraries/application.ts 📈 +84 Bytes
packages/core/src/libraries/organization-invitation.ts 📈 +148 Bytes
packages/core/src/libraries/user.ts 📈 +24 Bytes
packages/core/src/oidc/grants/refresh-token.ts 📈 +47 Bytes
packages/core/src/oidc/resource.ts 📈 +12 Bytes
packages/core/src/routes/applications/application-user-consent-organization.ts 📈 +9 Bytes
packages/core/src/routes/interaction/actions/submit-interaction.ts 📈 +38 Bytes
packages/core/src/routes/interaction/consent/index.ts 📈 +24 Bytes
packages/core/src/routes/organization/index.ts 📈 +12 Bytes
packages/core/src/routes/organization/index.user-role-relations.ts 📈 +73 Bytes
packages/core/src/routes/organization/roles.ts 📈 +112 Bytes
packages/core/src/utils/RelationQueries.ts 📈 +727 Bytes
packages/core/src/utils/SchemaRouter.ts 📈 +69 Bytes

@github-actions github-actions bot added enhancement Make it better size/m labels Jun 19, 2024
@gao-sun gao-sun marked this pull request as ready for review June 19, 2024 12:44
@gao-sun gao-sun merged commit e83e94f into master Jun 20, 2024
30 checks passed
@gao-sun gao-sun deleted the gao-refactor-relation-queries branch June 20, 2024 01:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Make it better size/m
Development

Successfully merging this pull request may close these issues.

2 participants