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

feat(schemas): add saml_application_configs table #6817

Merged
merged 4 commits into from
Nov 22, 2024

Conversation

darcyYe
Copy link
Contributor

@darcyYe darcyYe commented Nov 18, 2024

Summary

add saml_application_configs table

We made entity_id and acs_url nullable because:

  1. There is a one-to-one correspondence between records in saml_application_configs and SAML apps.
  2. If a SAML app is created via the API without simultaneously inserting a record into saml_application_configs, we would need to determine, based on the DB state at that time, when to insert a saml_application_configs record. If these fields are not nullable, for a particular SAML app, when the SAML config record does not exist, it would be impossible to use the patch API to modify one of these fields individually.

Testing

Covered by CI.

Checklist

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

Copy link

github-actions bot commented Nov 18, 2024

COMPARE TO master

Total Size Diff 📈 +2.56 KB

Diff by File
Name Diff
packages/schemas/alterations/next-1731904029-add-saml-application-configs-table.ts 📈 +1.13 KB
packages/schemas/src/foundations/jsonb-types/index.ts 📈 +47 Bytes
packages/schemas/src/foundations/jsonb-types/saml-application-configs.ts 📈 +616 Bytes
packages/schemas/tables/saml_application_configs.sql 📈 +802 Bytes

@github-actions github-actions bot added feature Cool stuff size/s labels Nov 18, 2024
@darcyYe darcyYe force-pushed the yemq-log-10113-add-saml-application-proxies-table branch from 3272ad1 to c1b10ae Compare November 18, 2024 04:52
@darcyYe darcyYe changed the base branch from yemq-log-10133-add-isVisible-to-applications-table to yemq-log-7205-add-saml-application-secrets-table November 18, 2024 04:52
@darcyYe darcyYe force-pushed the yemq-log-10113-add-saml-application-proxies-table branch from c1b10ae to 75e7def Compare November 18, 2024 06:44
@darcyYe darcyYe changed the title feat(schemas): add saml_application_proxies table feat(schemas): add saml_application_configs table Nov 18, 2024
@darcyYe darcyYe force-pushed the yemq-log-7205-add-saml-application-secrets-table branch from 9543eb7 to f3d1c51 Compare November 19, 2024 06:06
@darcyYe darcyYe force-pushed the yemq-log-10113-add-saml-application-proxies-table branch 2 times, most recently from d129075 to 61399b8 Compare November 19, 2024 06:16
@darcyYe darcyYe force-pushed the yemq-log-7205-add-saml-application-secrets-table branch from f3d1c51 to 47dd64b Compare November 19, 2024 07:57
@darcyYe darcyYe force-pushed the yemq-log-10113-add-saml-application-proxies-table branch from 61399b8 to 97dfb47 Compare November 19, 2024 08:00
@darcyYe darcyYe force-pushed the yemq-log-7205-add-saml-application-secrets-table branch from 47dd64b to 2d7fae3 Compare November 20, 2024 07:42
@darcyYe darcyYe force-pushed the yemq-log-10113-add-saml-application-proxies-table branch from 97dfb47 to c28b5dc Compare November 20, 2024 07:45
@github-actions github-actions bot added size/m and removed size/s labels Nov 20, 2024
@darcyYe darcyYe force-pushed the yemq-log-10113-add-saml-application-proxies-table branch from e59349e to 5554cf6 Compare November 20, 2024 08:28
@github-actions github-actions bot added size/s and removed size/m labels Nov 20, 2024
@darcyYe darcyYe force-pushed the yemq-log-10113-add-saml-application-proxies-table branch from 5554cf6 to 4e3a6a6 Compare November 20, 2024 09:32
@darcyYe darcyYe force-pushed the yemq-log-7205-add-saml-application-secrets-table branch from 2d7fae3 to 7d8cc8d Compare November 21, 2024 07:13
@darcyYe darcyYe force-pushed the yemq-log-10113-add-saml-application-proxies-table branch from 4e3a6a6 to 57a1561 Compare November 21, 2024 10:05
@darcyYe darcyYe force-pushed the yemq-log-7205-add-saml-application-secrets-table branch from 7d8cc8d to 4de3026 Compare November 21, 2024 11:10
Base automatically changed from yemq-log-7205-add-saml-application-secrets-table to master November 21, 2024 11:30
@github-actions github-actions bot added size/m and removed size/s labels Nov 21, 2024
@darcyYe darcyYe force-pushed the yemq-log-10113-add-saml-application-proxies-table branch from 57a1561 to 6faece8 Compare November 21, 2024 14:36
@github-actions github-actions bot added size/s and removed size/m labels Nov 21, 2024
Copy link
Contributor

@simeng-li simeng-li left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@darcyYe darcyYe merged commit f563517 into master Nov 22, 2024
37 checks passed
@darcyYe darcyYe deleted the yemq-log-10113-add-saml-application-proxies-table branch November 22, 2024 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants