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

Sync OpenAPI and regenerate: Grand refactor of list handling #197

Merged
merged 1 commit into from
Jul 13, 2023
Merged

Sync OpenAPI and regenerate: Grand refactor of list handling #197

merged 1 commit into from
Jul 13, 2023

Conversation

maxb
Copy link
Contributor

@maxb maxb commented Jul 13, 2023

Resolves #174

Resolves #186

apidiff:

Incompatible changes:
- (*Auth).GithubReadTeams: removed
- (*Auth).GithubReadUsers: removed
- (*System).PoliciesList: removed
Compatible changes:
- (*Auth).GithubListTeams: added
- (*Auth).GithubListUsers: added
- (*Secrets).CubbyholeList: added
- (*Secrets).KvV1List: added
- (*Secrets).KvV2ListMetadata: added
- (*System).RawList: added
- (*System).RawListPath: added

(and related changes in schema package)

How has this been tested?

Ad-hoc testing of:

client.Secrets.KvV2Write
client.Secrets.KvV2Read
client.Secrets.KvV2ListMetadata
client.Secrets.KvV2ReadMetadata
client.Secrets.KvV1Read
client.Secrets.KvV1List
client.Secrets.CubbyholeRead
client.Secrets.CubbyholeList

This did surface that various of the KvV1 and Cubbyhole methods are missing
suitable request/response definitions, making them unusable or inconsistent.

Also we may want to consider renaming KvV2ListMetadata to KvV2List.

Still, this is a step in the right direction.

Closes #174

Closes #186

apidiff:
```
Incompatible changes:
- (*Auth).GithubReadTeams: removed
- (*Auth).GithubReadUsers: removed
- (*System).PoliciesList: removed
Compatible changes:
- (*Auth).GithubListTeams: added
- (*Auth).GithubListUsers: added
- (*Secrets).CubbyholeList: added
- (*Secrets).KvV1List: added
- (*Secrets).KvV2ListMetadata: added
- (*System).RawList: added
- (*System).RawListPath: added
```
(and related changes in schema package)
@maxb maxb requested a review from a team July 13, 2023 21:04
Copy link
Collaborator

@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.

This is really awesome, thanks @maxb!

@averche averche merged commit 252790a into hashicorp:main Jul 13, 2023
@maxb maxb deleted the sync-openapi branch July 14, 2023 00:02
@averche averche mentioned this pull request Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants