Skip to content

[fga] Introduce EnvVarService #18503

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 1 commit into from
Aug 16, 2023
Merged

[fga] Introduce EnvVarService #18503

merged 1 commit into from
Aug 16, 2023

Conversation

jeanp413
Copy link
Member

@jeanp413 jeanp413 commented Aug 12, 2023

Description

Summary generated by Copilot

🤖 Generated by Copilot at 0e48ca9

Refactored the server component to separate the logic of user-level and workspace-level environment variables. Introduced a new EnvVarService class for user-level environment variables, and renamed the existing EnvVarService class to EnvVarResolver for workspace-level environment variables. Updated the imports, references, and tests accordingly.

Related Issue(s)

Fixes https://linear.app/gitpod/issue/EXP-409/

Documentation

Preview status

gitpod:summary

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

@roboquat roboquat added size/XXL and removed size/XL labels Aug 15, 2023
}

@injectable()
export class EnvVarService {
Copy link
Member

@akosyakov akosyakov Aug 15, 2023

Choose a reason for hiding this comment

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

Should it go under user folder? User should not depend on projects. Maybe it is better than have envvar folder.

@jeanp413 jeanp413 force-pushed the jp/unnecessary-thrush branch from adcb96a to 7a426dc Compare August 15, 2023 15:39
@jeanp413 jeanp413 force-pushed the jp/unnecessary-thrush branch from 86fe43e to 093a452 Compare August 16, 2023 15:07
@jeanp413
Copy link
Member Author

@svenefftinge Updated, can you take another look 🙏

Copy link
Member

@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.

LGTM - also tested in preview env
please squash the commits

@jeanp413 jeanp413 force-pushed the jp/unnecessary-thrush branch from 093a452 to 2740099 Compare August 16, 2023 16:47
@jeanp413
Copy link
Member Author

/unhold

@roboquat roboquat merged commit b95a468 into main Aug 16, 2023
@roboquat roboquat deleted the jp/unnecessary-thrush branch August 16, 2023 20:12
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.

5 participants