Skip to content

Use User.fgaRelationshipsVersion instead of User.additionalAttributes.fgaRelationshipsVersion #18838

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

Merged
merged 2 commits into from
Sep 29, 2023

Conversation

geropl
Copy link
Member

@geropl geropl commented Sep 28, 2023

Description

To be able to add indexes, and separate concerns.

Summary generated by Copilot

🤖 Generated by Copilot at 141a7cc

This pull request implements the FGA migration, which moves the FGA version from the additionalData field to a separate column in the d_b_user table. It updates the user data model, the database schema and migrations, the user database service and its tests, the relationship updater and its tests, and the user controller and service. It also fixes a typo in an unrelated migration.

Related Issue(s)

Fixes EXP-726

How to test

Documentation

Preview status

Gitpod was successfully deployed to your preview environment.

Build Options

Build
  • /werft with-werft
    Run the build with werft instead of GHA
  • leeway-no-cache
  • /werft no-test
    Run Leeway with --dont-test
Publish
  • /werft publish-to-npm
  • /werft publish-to-jb-marketplace
Installer
  • analytics=segment
  • with-dedicated-emulation
  • workspace-feature-flags
    Add desired feature flags to the end of the line above, space separated
Preview Environment / Integration Tests
  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-large-vm
  • /werft with-gce-vm
    If enabled this will create the environment on GCE infra
  • with-integration-tests=all
    Valid options are all, workspace, webapp, ide, jetbrains, vscode, ssh. If enabled, with-preview and with-large-vm will be enabled.
  • with-monitoring

/hold

@geropl
Copy link
Member Author

geropl commented Sep 28, 2023

@svenefftinge The related query turned up #3 on Monday while FGA was on. This PR just creates a new column and uses that, which is ok I thought because of the version 3 migration that has to be done anyway (saves us the migration + another deployment). WDYT?

Copy link
Contributor

@svenefftinge svenefftinge left a comment

Choose a reason for hiding this comment

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

thanks, that makes sense!

@geropl
Copy link
Member Author

geropl commented Sep 29, 2023

/unhold

@roboquat roboquat merged commit 8d94dd8 into main Sep 29, 2023
@roboquat roboquat deleted the gpl/726-fga-version branch September 29, 2023 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants