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: Disallows negative options remaining in SelectControl #13749

Merged
merged 1 commit into from
Mar 30, 2021

Conversation

michael-s-molina
Copy link
Member

SUMMARY

Disallows negative options remaining in SelectControl. When a SelectControl has no options available, the user can still enter values and this caused the assistive text to contain negative values.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Screen Shot 2021-03-23 at 3 19 33 PM

Screen Shot 2021-03-23 at 3 20 14 PM

TEST PLAN

1 - Find a SelectControl with no options available (polygon chart -> customize for example).
2 - Enter arbitrary text as a value.
3 - No assistive text should be displayed.

@rusackas @junlincc

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Requires DB Migration.
  • Confirm DB Migration upgrade and downgrade tested.
  • Introduces new feature or API
  • Removes existing feature or API

@codecov
Copy link

codecov bot commented Mar 23, 2021

Codecov Report

Merging #13749 (6ef0a05) into master (452b530) will increase coverage by 0.23%.
The diff coverage is 100.00%.

❗ Current head 6ef0a05 differs from pull request most recent head 2ee3433. Consider uploading reports for the commit 2ee3433 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master   #13749      +/-   ##
==========================================
+ Coverage   77.23%   77.47%   +0.23%     
==========================================
  Files         933      933              
  Lines       47383    47186     -197     
  Branches     5928     5860      -68     
==========================================
- Hits        36597    36555      -42     
+ Misses      10638    10489     -149     
+ Partials      148      142       -6     
Flag Coverage Δ
cypress 56.23% <100.00%> (ø)
javascript 63.53% <100.00%> (+0.06%) ⬆️

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

Impacted Files Coverage Δ
...tasourcePanel/DatasourcePanelDragWrapper/index.tsx 100.00% <ø> (ø)
.../src/explore/components/controls/SelectControl.jsx 93.75% <100.00%> (ø)
superset-frontend/src/chart/chartAction.js 78.60% <0.00%> (+9.85%) ⬆️
superset-frontend/src/chart/chartReducer.ts 66.19% <0.00%> (+17.59%) ⬆️
superset-frontend/src/middleware/asyncEvent.ts 78.03% <0.00%> (+24.48%) ⬆️
superset-frontend/src/dashboard/index.jsx 100.00% <0.00%> (+60.00%) ⬆️
superset-frontend/src/explore/index.jsx 100.00% <0.00%> (+62.50%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 452b530...2ee3433. Read the comment docs.

@junlincc junlincc added need:merge The PR is ready to be merged and removed need:merge The PR is ready to be merged test:component labels Mar 23, 2021
@junlincc
Copy link
Member

LGTM! Thanks for the enhancement

@ktmud can you help merge, thanks!

@ktmud ktmud merged commit 4ae9b81 into apache:master Mar 30, 2021
amitmiran137 pushed a commit that referenced this pull request Mar 31, 2021
* master: (56 commits)
  test: Adds tests and storybook to CertifiedIcon component (#13457)
  chore: Moves CheckboxIcons to Checkbox folder (#13459)
  chore: Removes Popover duplication (#13462)
  build(deps): bump elliptic from 6.5.3 to 6.5.4 in /docs (#13527)
  fix: allow spaces in DB names (#13800)
  chore: Update PR template for SIP-59 DB migrations process (#13855)
  Add CODEOWNERS (#13759)
  feat(alerts & reports): Easier to read execution logs (#13752)
  fix: Disallows negative options remaining (#13749)
  Fix broken link (#13861)
  fix(native-filters): add global async query support to native filters (#13837)
  Displays row limit warning with Alert component (#13854)
  fix(errors): Downgrade error on stop query to a warning (#13826)
  fix(alerts and reports): Unify timestamp format on execution log view (#13718)
  fix(sqllab): warning message when rows limited (#13841)
  chore: add success log whenever a connection is working (#13811)
  fix(native-filters): improve loading styles for filter component (#13794)
  chore: update change log with cherry-picks for release 1.1 (#13824)
  feat: added support to configure the default explorer viz (#13610)
  fix(#13734): Properly escape special characters in CSV output  (#13735)
  ...
allanco91 pushed a commit to allanco91/superset that referenced this pull request May 21, 2021
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.2.0 labels Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/XS 🚢 1.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants