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 a distinguishing prefix to OpenAPI operation IDs for enterprise stubs #22072

Merged
merged 2 commits into from
Jul 27, 2023

Conversation

maxb
Copy link
Contributor

@maxb maxb commented Jul 26, 2023

@maxb
Copy link
Contributor Author

maxb commented Jul 26, 2023

pr/no-changelog please

@averche averche self-assigned this Jul 26, 2023
@averche averche self-requested a review July 26, 2023 21:54
@averche averche added this to the 1.15 milestone Jul 26, 2023
Copy link
Contributor

@averche averche left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@averche averche enabled auto-merge (squash) July 26, 2023 21:55
@averche averche disabled auto-merge July 26, 2023 21:57
// OpenAPI won't be good for much other than identifying the endpoint exists at all. Thus, it
// is useful to make it clear that this is only a stub. Code generation will use this to ignore
// these operations.
OperationPrefix: "enterprise-stub-system",
Copy link
Contributor

Choose a reason for hiding this comment

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

One quick thought. Would it make sense to call this "enterprise-stub" instead? For other prefixes under /sys, we've been dropping the "system" part. It's not a big deal regardless since it will be filtered out, just a thought.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The system- prefix had not been dropped for any of these, so I was just prepending enterprise-stub- to what was already there. But, sure, might as well bring these into line with the surrounding convention as well.

In that case, I'll also fix sys/replication/status which is not a stub, but hasn't had the system part dropped yet.

@averche averche merged commit efa76db into hashicorp:main Jul 27, 2023
84 of 86 checks passed
@maxb maxb deleted the enterprise-stub-openapi branch July 27, 2023 04:47
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.

2 participants