Skip to content

feat: add all safe experiments to the deployment page #10276

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

Merged
merged 15 commits into from
Oct 17, 2023

Conversation

Kira-Pilot
Copy link
Member

@Kira-Pilot Kira-Pilot commented Oct 15, 2023

resolves #8978

Screenshot 2023-10-15 at 4 53 43 PM

Experiments will only appear in this list if they are safe to opt into.

I considered changing the response to the experiments endpoint, but it resulted in way more code and since there's been some back and forth about this feature I figured we'd just go with the simplest approach (a query param).

@Kira-Pilot Kira-Pilot requested review from a team and Parkreiner and removed request for a team October 15, 2023 22:03
@Kira-Pilot Kira-Pilot changed the title site(feat): add all safe experiments to the deployment page feat: add all safe experiments to the deployment page Oct 15, 2023
@Kira-Pilot Kira-Pilot requested a review from Emyrk October 16, 2023 15:33
Comment on lines 97 to 105
{isEnabled && (
<CheckCircleOutlined
sx={{
width: 16,
height: 16,
color: (theme) => theme.palette.success.light,
margin: (theme) => theme.spacing(0, 1),
}}
/>
Copy link
Member

Choose a reason for hiding this comment

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

I like the check. If nothing is set though, it is tricky to know if nothing is set, or they are all set.

Can we do something to indicate the value is available, but not set? Like maybe greying out the words? Just one idea.

Screenshot from 2023-10-16 10-57-20

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah! I like the design you've added above. I'll throw both in Slack and see what folks think.

Copy link
Member Author

@Kira-Pilot Kira-Pilot Oct 17, 2023

Choose a reason for hiding this comment

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

Screenshot 2023-10-17 at 1 35 28 PM

I actually kind of like either what I had previously, or what you suggested, but maybe not the mix of both as suggested in Slack.

Copy link
Member

@Parkreiner Parkreiner left a comment

Choose a reason for hiding this comment

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

Looks really good overall! Just had some suggestions, with one potentially having ramifications for the render behavior

@matifali
Copy link
Member

If someone uses CODER_EXPERIMENTS=*, Can we list them individually or only display *? I suggest we list them individually for better visibility of what experiments are enabled.

Also @bpmct what do you think about having a docs page on experiments that should at minimum, link to the experiment docs or describe what this experiment does?

@Kira-Pilot
Copy link
Member Author

Kira-Pilot commented Oct 17, 2023

If someone uses CODER_EXPERIMENTS=*, Can we list them individually or only display *? I suggest we list them individually for better visibility of what experiments are enabled.

@matifali Yup! We list all experiments as being opted into if * is used.

Copy link
Member

@Parkreiner Parkreiner left a comment

Choose a reason for hiding this comment

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

TypeScript looks good to me! I can't comment on the Go code, but if @Emyrk didn't raise any issues from his review, I'm sure this PR is good to go

@Kira-Pilot Kira-Pilot merged commit 1656249 into main Oct 17, 2023
@Kira-Pilot Kira-Pilot deleted the experiment-visual-2/kira-pilot branch October 17, 2023 18:49
@github-actions github-actions bot locked and limited conversation to collaborators Oct 17, 2023
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.

feature: List all enabled and available experiments on the deployment page
4 participants