Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: hide grpc option in check cards when feature flag off #922

Merged
merged 1 commit into from
Aug 23, 2024

Conversation

ckbedwell
Copy link
Contributor

@ckbedwell ckbedwell commented Aug 23, 2024

Problem

The gRPC shortcut label was showing on the check group cards when the gRPC feature flag was off.

The API Endpoint card showing the gRPC option in the supported protocols.

Solution

Alter the logic in the useCheckTypeGroupOptions so that it is filtering protocols that have a featureToggle value.

The API Endpoint card only showing HTTP, Ping, DNS, TCP and Traceroute in the supported protocols.

There is a slight downside to this solution that we now have two places to update when we remove / change the status of feature flags however this should be mitigated by the additional and updated tests I've added.

Slack thread where it was discovered.

@ckbedwell ckbedwell requested a review from VikaCep August 23, 2024 09:52
@ckbedwell ckbedwell requested a review from a team as a code owner August 23, 2024 09:52
@ckbedwell ckbedwell merged commit 0d674df into main Aug 23, 2024
5 checks passed
@ckbedwell ckbedwell deleted the fix/grpc-option-showing branch August 23, 2024 22:47
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants