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

Improve naming in experiment row context menu component #3346

Merged
merged 1 commit into from
Feb 24, 2023
Merged

Conversation

mattseddon
Copy link
Member

@mattseddon mattseddon commented Feb 24, 2023

Comments inline

@@ -175,7 +175,7 @@ const getSingleSelectMenuOptions = (

const notExperiment = depth !== 1

const withId = (
const notRunningWithId = (
Copy link
Member Author

Choose a reason for hiding this comment

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

I have now been caught out by this POS a few times. It silently added || hasRunningExperiment to the hidden options which leads to plenty of head scratching. Name is updated to reflect what it is actually doing.

'Share to Studio',
MessageFromWebviewType.SHARE_EXPERIMENT_TO_STUDIO,
notExperiment || hasRunningExperiment,
notExperiment,
Copy link
Member Author

Choose a reason for hiding this comment

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

[F] Should be no behaviour change here.

@mattseddon mattseddon marked this pull request as ready for review February 24, 2023 02:16
@codeclimate
Copy link

codeclimate bot commented Feb 24, 2023

Code Climate has analyzed commit 461bf31 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (85% is the threshold).

This pull request will bring the total coverage in the repository to 96.0%.

View more on Code Climate.

@mattseddon mattseddon merged commit 79a3cd9 into main Feb 24, 2023
@mattseddon mattseddon deleted the not-running branch February 24, 2023 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants