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: check toggle limit on import #4665

Merged
merged 1 commit into from
Sep 12, 2023
Merged

feat: check toggle limit on import #4665

merged 1 commit into from
Sep 12, 2023

Conversation

kwasniew
Copy link
Contributor

@kwasniew kwasniew commented Sep 12, 2023

About the changes

Make the creation of toggles from import sequential so that we can count the toggles that already got created.

The last import stage should fail on limit exceeded:
Screenshot 2023-09-12 at 12 07 17

Screenshot 2023-09-12 at 12 07 15

This PR is not touching the validation stage yet.

Important files

Discussion points

This line from the toggle service is on the critical path and for 500 toggles it will run over and over again.

await this.projectStore.isFeatureLimitReached(projectId)

@vercel
Copy link

vercel bot commented Sep 12, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Sep 12, 2023 10:09am
unleash-monorepo-frontend ⬜️ Ignored (Inspect) Visit Preview Sep 12, 2023 10:09am

@kwasniew kwasniew merged commit 4dcbb4b into main Sep 12, 2023
11 checks passed
@kwasniew kwasniew deleted the import-limit-checking branch September 12, 2023 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants