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

fix(site): retry and debug passing build parameters options #12384

Merged
merged 9 commits into from
Mar 4, 2024

Conversation

BrunoQuaresma
Copy link
Collaborator

Close #11748

Screenshot 2024-03-01 at 14 52 39

@BrunoQuaresma BrunoQuaresma requested a review from a team March 1, 2024 17:53
@BrunoQuaresma BrunoQuaresma self-assigned this Mar 1, 2024
@BrunoQuaresma BrunoQuaresma requested review from Kira-Pilot and removed request for a team March 1, 2024 17:53

rest.get("/api/v2/integrations/jfrog/xray-scan", (_, res, ctx) => {
return res(ctx.status(404));
}),
Copy link
Member

Choose a reason for hiding this comment

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

Why did we add these?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

To avoid getting unhandled request warnings during tests. The warning was introduced many PRs ago but I only noticed it now since it was messing with the output for my tests so I just fixed it.

@@ -438,4 +438,102 @@ describe("WorkspacePage", () => {
});
});
});

it("retry with build parameters", async () => {
Copy link
Member

Choose a reason for hiding this comment

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

nice!

...MockTemplateVersionParameter1,
display_name: "Parameter 1",
ephemeral: true,
} satisfies TemplateVersionParameter;
Copy link
Member

Choose a reason for hiding this comment

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

Why do we have to use satisifes here and above?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

When typing the variable directly it was missing a few attribute types after destructuring so using satisfies fixed that.

Copy link
Member

@Kira-Pilot Kira-Pilot left a comment

Choose a reason for hiding this comment

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

When Storybook is happy I'm happy!

@BrunoQuaresma BrunoQuaresma changed the title fix(site): add option to retry and debug passing build parameters fix(site): retry and debug passing build parameters options Mar 4, 2024
@BrunoQuaresma BrunoQuaresma merged commit afcea74 into main Mar 4, 2024
22 checks passed
@BrunoQuaresma BrunoQuaresma deleted the bq/add-retry-button-with-ephemeral branch March 4, 2024 13:25
@github-actions github-actions bot locked and limited conversation to collaborators Mar 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Not possible to easily change ephemeral parameters on failed build
2 participants