Skip to content

Conversation

BrunoQuaresma
Copy link
Collaborator

@BrunoQuaresma BrunoQuaresma commented May 7, 2025

Fix WorkspaceApp response type to better reflect the schema from https://registry.terraform.io/providers/coder/coder/latest/docs/resources/app.

EDIT(ethanndickson): This is a breaking change as it adds omitempty to multiple fields in a codersdk response type. API consumers that expect those fields to be always present may need to be updated.

@BrunoQuaresma BrunoQuaresma requested review from a team May 7, 2025 12:25
@BrunoQuaresma BrunoQuaresma self-assigned this May 7, 2025
@BrunoQuaresma BrunoQuaresma requested review from jaaydenh and removed request for a team May 7, 2025 12:25
@BrunoQuaresma BrunoQuaresma requested review from ammario and removed request for a team May 7, 2025 12:25
Copy link

@cdr-bot cdr-bot bot left a comment

Choose a reason for hiding this comment

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

This PR is a hotfix and has been automatically approved.

  • ✅ Base is main or release branch
  • ✅ Has hotfix label
  • ✅ Head is from coder/coder
  • ✅ Less than 100 lines

@BrunoQuaresma BrunoQuaresma requested review from a team and Emyrk and removed request for ammario and a team May 7, 2025 12:25
Copy link
Member

@mtojek mtojek left a comment

Choose a reason for hiding this comment

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

Wait a sec, isn't it API breaking change?

@BrunoQuaresma
Copy link
Collaborator Author

I'm not sure since it was a "bug"...

@BrunoQuaresma BrunoQuaresma requested a review from mtojek May 7, 2025 12:35
@mtojek
Copy link
Member

mtojek commented May 7, 2025

Hm.. can you link the real issue reported?

@BrunoQuaresma
Copy link
Collaborator Author

Hm.. can you link the real issue reported?

There is no issue. It is just an ad-hoc improvement that would make our FE code more reliable since the types are now truly representing the API response.

@BrunoQuaresma BrunoQuaresma changed the title chore: fix workspace apps response chore!: fix workspace apps response May 7, 2025
@github-actions github-actions bot added the release/breaking This label is applied to PRs to detect breaking changes as part of the release process label May 7, 2025
@BrunoQuaresma BrunoQuaresma merged commit 9fe5b71 into main May 7, 2025
38 checks passed
@BrunoQuaresma BrunoQuaresma deleted the bq/fix-workspaceapps-response branch May 7, 2025 13:05
@github-actions github-actions bot locked and limited conversation to collaborators May 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release/breaking This label is applied to PRs to detect breaking changes as part of the release process
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants