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

fix: feature OpenAPI endpoints - project related #4212

Merged
merged 21 commits into from
Jul 14, 2023
Merged

Conversation

Tymek
Copy link
Member

@Tymek Tymek commented Jul 11, 2023

Update OpenAPI for /api/admin/projects/{projectId}/features/ and related endpoints

@vercel
Copy link

vercel bot commented Jul 11, 2023

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

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 14, 2023 2:35pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Jul 14, 2023 2:35pm

@Tymek Tymek marked this pull request as ready for review July 11, 2023 16:17
Copy link
Contributor

@thomasheartman thomasheartman left a comment

Choose a reason for hiding this comment

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

There's a lot of great work in here! 💯 Most of my comments are small suggestion and can be left at your own discretion, but I'd like to explore especially the thing about making the variant weight type into an enum. I'm afraid that could backfire or cause a breaking change. Of course, we could discuss whether that's a bug on the end user's part or not, but I'd like to hear your thoughts.

Also noticed that the endpoint responses in one of the files were missing some error codes, so I've added notes about that.

src/lib/openapi/spec/clone-feature-schema.ts Show resolved Hide resolved
src/lib/openapi/spec/clone-feature-schema.ts Outdated Show resolved Hide resolved
src/lib/openapi/spec/create-feature-schema.ts Outdated Show resolved Hide resolved
src/lib/openapi/spec/environments-schema.ts Outdated Show resolved Hide resolved
src/lib/openapi/spec/feature-variants-schema.ts Outdated Show resolved Hide resolved
src/lib/routes/admin-api/project/project-features.ts Outdated Show resolved Hide resolved
src/lib/routes/admin-api/project/project-features.ts Outdated Show resolved Hide resolved
src/lib/routes/admin-api/project/project-features.ts Outdated Show resolved Hide resolved
Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
Copy link
Contributor

@thomasheartman thomasheartman left a comment

Choose a reason for hiding this comment

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

Looks good to me now 😄 I added a small suggestion for the PUT endpoint we talked about. I also see some of the tests are failing. Just make sure we're not breaking anything here

src/lib/routes/admin-api/project/project-features.ts Outdated Show resolved Hide resolved
@Tymek Tymek merged commit f91c8a3 into main Jul 14, 2023
16 checks passed
@Tymek Tymek deleted the fix/feature-schema-update branch July 14, 2023 14:48
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