Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: remove unecessary API.getWorkspaceParameters#20462

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
BrunoQuaresma merged 3 commits intomainfrombq/fix-parameters-api
Oct 27, 2025

Conversation

@BrunoQuaresma
Copy link
Contributor

I initially createdAPI.getWorkspaceParameters to group two related requests, but after revisiting the implementation, I realized this abstraction doesn’t add much value. It also prevents us from taking full advantage of React Query’s built-in caching and invalidation.

So instead of grouping them, I removed the helper and replaced it with separate queries — this simplifies the flow and lets React Query handle caching more efficiently.

Related to#20431 (comment)

Copy link
Contributor

@ParkreinerParkreiner left a comment
edited
Loading

Choose a reason for hiding this comment

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

If I'm reading things right, the last major thing we'd need to do is update theDebugButton stories file to use these queries for the final story:

{key:[templateVersionRoot,MockWorkspace.latest_build.template_version_id,"richParameters",],data:[],},{key:["workspaceBuilds",MockWorkspace.latest_build.id,"parameters"],data:[],},

Though we have a few functions lying around that we can export in the query object files to make the setup a little less fragile

BrunoQuaresma reacted with thumbs up emoji
}
returnvalue;
});
constonlyMultableValues=templateVersionParameters
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: there's a typo in the variable name

BrunoQuaresma reacted with thumbs up emoji
Copy link
Contributor

@ParkreinerParkreiner left a comment

Choose a reason for hiding this comment

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

I think we're good to go

@BrunoQuaresmaBrunoQuaresma merged commit90b64c5 intomainOct 27, 2025
31 checks passed
@BrunoQuaresmaBrunoQuaresma deleted the bq/fix-parameters-api branchOctober 27, 2025 15:47
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsOct 27, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@aslilacaslilacAwaiting requested review from aslilac

1 more reviewer

@ParkreinerParkreinerParkreiner approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

@BrunoQuaresmaBrunoQuaresma

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@BrunoQuaresma@Parkreiner

[8]ページ先頭

©2009-2025 Movatter.jp