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

Add utils to support demo datasource project #1477

Merged

Conversation

tinahollygb
Copy link
Contributor

Adds some utils to support approach discussed in this tech spec with @lukesonnet.

@linear
Copy link

linear bot commented Jul 17, 2023

GB-290 Demo Datasource -> Create shared util functions

  • Create a util getDemoDatasourceProjectIdForOrganization(id: string): string which constructs a demo project ID e.g. prj_org-abc123_demo-datasource-project. This will prevent additional round trips to Mongo for verifying that we can create resources under this project (so we don’t have to query projects by ID with isDemo=true. (add to shared package)
  • Create a util isDemoDatasourceProject(organizationId, projectId). (add to shared package)

@tinahollygb tinahollygb marked this pull request as ready for review July 17, 2023 23:36
@github-actions
Copy link

Your preview environment pr-1477-bttf has been deployed.

Preview environment endpoints are available at:

@tinahollygb tinahollygb merged commit c352d57 into main Jul 18, 2023
3 checks passed
@tinahollygb tinahollygb deleted the tina/gb-290-demo-datasource-create-shared-util-functions branch July 18, 2023 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants