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

[released bug] Fleet UI: standard query library platforms render prop… #17712

Merged
merged 1 commit into from
Mar 22, 2024

Conversation

RachelElysia
Copy link
Member

Issue

Cerra #17662
This fix is also in Feature PR #17663 but added here so if we want to include it in a patch

Description

  • The FE doesn't recognize whitespaces in it's multiple dropdown menu
  • Removes whitespace between platform names to render the dropdown

Alternative was to modify the Dropdown component to allow joins with ", " and "," but that was complicating the component for a one-off issue.

Checklist for submitter

If some of the following don't apply, delete the relevant line.

  • Changes file added for user-visible changes in changes/ or orbit/changes/.
  • Manual QA for all new/changed functionality

@RachelElysia RachelElysia requested a review from a team as a code owner March 19, 2024 14:18
Copy link

codecov bot commented Mar 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.67%. Comparing base (aef64e3) to head (d410842).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #17712   +/-   ##
=======================================
  Coverage   65.67%   65.67%           
=======================================
  Files        1193     1193           
  Lines      108026   108026           
  Branches     2574     2574           
=======================================
  Hits        70947    70947           
  Misses      31709    31709           
  Partials     5370     5370           
Flag Coverage Δ
frontend 51.94% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -724,7 +724,7 @@ const EditQueryForm = ({
placeholder="Select"
label="Platform"
onChange={onChangeSelectPlatformOptions}
value={lastEditedQueryPlatforms}
value={lastEditedQueryPlatforms.replace(/\s/g, "")} // NOTE: FE requires no whitespace to render UI
Copy link
Contributor

Choose a reason for hiding this comment

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

just want to .replaceAll here

Copy link
Contributor

Choose a reason for hiding this comment

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

nevermind

@RachelElysia RachelElysia merged commit 644dddc into main Mar 22, 2024
14 checks passed
@RachelElysia RachelElysia deleted the standard-query-platform branch March 22, 2024 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants