Skip to content

Comments

update oapi-codegen v2#1855

Merged
jaketf merged 8 commits intomainfrom
regen-clients
May 22, 2025
Merged

update oapi-codegen v2#1855
jaketf merged 8 commits intomainfrom
regen-clients

Conversation

@jaketf
Copy link
Contributor

@jaketf jaketf commented May 22, 2025

Description

In prep for AF Programmatic support, this regenerates the core clients moving off the deprecated deepmap oapi-generator to it's new v2 import paths.

we'll likely need to regen these again after adding Astro executor / remote execution support to the upstream APIs. The hope of this PR is to make those later PRs go smoother.

🎟 Issue(s)

Related #1854

🧪 Functional Testing

List the functional testing steps to confirm this feature or fix.

📸 Screenshots

Add screenshots to illustrate the validity of these changes.

📋 Checklist

  • Rebased from the main (or release if patching) branch (before testing)
  • Ran make test before taking out of draft
  • Ran make lint before taking out of draft
  • Added/updated applicable tests
  • Tested against Astro-API (if necessary).
  • Tested against Houston-API and Astronomer (if necessary).
  • Communicated to/tagged owners of respective clients potentially impacted by these changes.
  • Updated any related documentation

@jaketf jaketf marked this pull request as ready for review May 22, 2025 01:15
}

err := handler.Login("", "")
err := handler.Login("testuser", "testtoken")
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for fixing this and in another unrelated test. I thought I'd fixed these but they're still sitting in an open PR.


func ListConnections(workspaceID, deploymentID string, coreClient astrocore.CoreClient) (map[string]astrocore.EnvironmentObjectConnection, error) {
envObjs, err := listEnvironmentObjects(workspaceID, deploymentID, astrocore.ListEnvironmentObjectsParamsObjectTypeCONNECTION, coreClient)
envObjs, err := listEnvironmentObjects(workspaceID, deploymentID, astrocore.CONNECTION, coreClient)
Copy link
Contributor

Choose a reason for hiding this comment

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

It's bizarre how this new client gen version removes the prefixes from some enums but adds them to others 😕

@jaketf jaketf merged commit d809396 into main May 22, 2025
4 of 5 checks passed
@jaketf jaketf deleted the regen-clients branch May 22, 2025 17:25
neel-astro pushed a commit that referenced this pull request May 26, 2025
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants