Skip to content

fix(proto): generate openapi for v2 api with gnostic#4847

Merged
erka merged 4 commits into
v2from
rd/v2/openapi
Oct 5, 2025
Merged

fix(proto): generate openapi for v2 api with gnostic#4847
erka merged 4 commits into
v2from
rd/v2/openapi

Conversation

@erka

@erka erka commented Oct 3, 2025

Copy link
Copy Markdown
Contributor

This pull request introduces several improvements and enhancements to the Flipt gRPC/protobuf API, especially for the environments service, as well as some build and tooling changes. The most notable updates are the addition of new messages and fields to support richer environment and namespace management, improvements to the proto generation process, and dependency/version updates.

@github-actions

github-actions Bot commented Oct 3, 2025

Copy link
Copy Markdown
Contributor

The latest Buf updates on your PR. Results from workflow Proto / proto-lint (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedOct 4, 2025, 4:41 PM

@codecov

codecov Bot commented Oct 3, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.57%. Comparing base (b098687) to head (9857824).
⚠️ Report is 1 commits behind head on v2.

Additional details and impacted files
@@            Coverage Diff             @@
##               v2    #4847      +/-   ##
==========================================
+ Coverage   58.11%   58.57%   +0.46%     
==========================================
  Files         135      135              
  Lines       16843    16843              
==========================================
+ Hits         9788     9866      +78     
+ Misses       6375     6292      -83     
- Partials      680      685       +5     
Flag Coverage Δ
integrationtests 33.92% <ø> (+1.70%) ⬆️
unittests 49.14% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@erka
erka force-pushed the rd/v2/openapi branch 2 times, most recently from d8d71d9 to 8358e4e Compare October 4, 2025 16:10
@erka
erka marked this pull request as ready for review October 4, 2025 16:32
@erka
erka requested a review from a team as a code owner October 4, 2025 16:32
@dosubot dosubot Bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label Oct 4, 2025
@erka
erka requested a review from Copilot October 4, 2025 16:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enhances the environments service API by adding comprehensive OpenAPI documentation, improving protobuf message definitions, and updating build tooling. The changes focus on better documenting existing endpoints and removing problematic wildcard path patterns from the resource API.

  • Added extensive OpenAPI documentation for all environment service endpoints including summaries and parameter descriptions
  • Removed confusing resource endpoints with wildcard path patterns and consolidated them into cleaner, more specific paths
  • Added detailed comments to protobuf messages and fields for better code documentation

Reviewed Changes

Copilot reviewed 16 out of 17 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
rpc/v2/environments/openapi.yaml Added comprehensive OpenAPI documentation including endpoint summaries, parameter descriptions, and schema documentation
rpc/v2/environments/environments.proto Enhanced protobuf definitions with extensive comments and OpenAPI annotations
rpc/v2/environments/environments.pb.go Generated protobuf Go code reflecting the enhanced documentation
rpc/v2/environments/environments.pb.gw.go Updated gRPC gateway code with corrected path patterns
magefile.go Improved build tooling for protobuf generation
internal/cmd/protoc-gen-go-flipt-sdk/go.mod Added dependency for flipt RPC package
rpc/v2/evaluation/evaluation.pb.go Updated protoc-gen-go version
rpc/v2/analytics/analytics.pb.go Updated protoc-gen-go version
rpc/flipt/*/*.pb.go Updated protoc-gen-go version across all flipt packages

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread rpc/v2/environments/environments.proto Outdated
@erka erka changed the title chore: openapi and gnostic research fix(proto): generate openapi for v2 api with gnostic Oct 4, 2025
@erka erka added the v2 Flipt v2 label Oct 4, 2025
@dosubot

dosubot Bot commented Oct 4, 2025

Copy link
Copy Markdown

Related Documentation

Checked 4 published document(s). No updates required.

You have 1 draft document(s). Publish docs to keep them always up-to-date

How did I do? Any feedback?  Join Discord

@erka
erka requested a review from Copilot October 4, 2025 16:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 17 out of 18 changed files in this pull request and generated 2 comments.

Comments suppressed due to low confidence (1)

rpc/v2/environments/openapi.yaml:1

  • The comment says 'The list of namespaces' but this field contains a single namespace, not a list. The comment should be 'The namespace' instead.
# Generated with protoc-gen-openapi

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread rpc/v2/environments/environments.proto Outdated
Comment thread rpc/v2/environments/environments.proto Outdated
erka and others added 4 commits October 4, 2025 17:41
Co-authored-by: Copilot <[email protected]>
Signed-off-by: Roman Dmytrenko <[email protected]>
Co-authored-by: Copilot <[email protected]>
Signed-off-by: Roman Dmytrenko <[email protected]>
Signed-off-by: Roman Dmytrenko <[email protected]>
@erka

erka commented Oct 4, 2025

Copy link
Copy Markdown
Contributor Author

@markphelps I propose this over #4846

@markphelps markphelps left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

looks great thank you!

@erka
erka merged commit cda230e into v2 Oct 5, 2025
31 checks passed
@erka
erka deleted the rd/v2/openapi branch October 5, 2025 08:23
@github-project-automation github-project-automation Bot moved this to Done in Flipt V2 Oct 5, 2025
@dosubot

dosubot Bot commented Oct 5, 2025

Copy link
Copy Markdown

Documentation Updates

Checked 4 published document(s). No updates required.

You have 1 draft document(s). Publish docs to keep them always up-to-date

How did I do? Any feedback?  Join Discord

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XXL This PR changes 1000+ lines, ignoring generated files. v2 Flipt v2

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants