Skip to content

Conversation

@samtfm
Copy link
Contributor

@samtfm samtfm commented Apr 26, 2021

SUMMARY

Some error messages are returned in the format Record<string, string>

This change expands the typescript types to expect this, and modifies the parsing function to account for this possibility.

SCREEENSHOTS

Screen Shot 2021-04-26 at 1 37 12 PM

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@codecov
Copy link

codecov bot commented Apr 26, 2021

Codecov Report

Merging #14360 (c972486) into master (e7ad03d) will increase coverage by 0.01%.
The diff coverage is 64.66%.

❗ Current head c972486 differs from pull request most recent head 1c4b37e. Consider uploading reports for the commit 1c4b37e to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master   #14360      +/-   ##
==========================================
+ Coverage   77.11%   77.13%   +0.01%     
==========================================
  Files         954      954              
  Lines       48174    48152      -22     
  Branches     5977     5988      +11     
==========================================
- Hits        37151    37143       -8     
+ Misses      10826    10812      -14     
  Partials      197      197              
Flag Coverage Δ
javascript 72.01% <59.15%> (-0.09%) ⬇️

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

Impacted Files Coverage Δ
superset-frontend/src/chart/Chart.jsx 44.06% <0.00%> (-4.09%) ⬇️
superset-frontend/src/dashboard/reducers/types.ts 0.00% <ø> (ø)
...tend/src/filters/components/Select/controlPanel.ts 63.63% <ø> (ø)
superset/security/manager.py 91.48% <ø> (ø)
superset/views/base_api.py 98.28% <ø> (ø)
superset/views/base_schemas.py 0.00% <0.00%> (ø)
superset/views/sql_lab.py 60.68% <0.00%> (ø)
superset/viz.py 55.49% <0.00%> (-0.10%) ⬇️
superset/views/core.py 75.65% <14.28%> (-0.06%) ⬇️
superset-frontend/src/views/CRUD/hooks.ts 45.19% <33.33%> (-0.89%) ⬇️
... and 28 more

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 e7ad03d...1c4b37e. Read the comment docs.

@junlincc
Copy link
Member

/testenv up

@github-actions
Copy link
Contributor

@junlincc Ephemeral environment spinning up at http://54.213.7.29:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

Copy link
Member

@lilykuang lilykuang left a comment

Choose a reason for hiding this comment

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

LGTM

@lilykuang lilykuang merged commit b147fa8 into apache:master Apr 30, 2021
@lilykuang lilykuang deleted the samtfm/fix-single-string-error-toasts branch April 30, 2021 16:30
@github-actions
Copy link
Contributor

Ephemeral environment shutdown and build artifacts deleted.

amitmiran137 pushed a commit to nielsen-oss/superset that referenced this pull request May 3, 2021
* master: (38 commits)
  refactor(native-filters): allow cascading only for filter_select (apache#14441)
  test(maximize-chart): Add tests to maximize chart action (apache#14371)
  fix: fixing mysql error message (apache#14416)
  feat: Logic added to limiting factor column in Query model (apache#13521)
  change relationship (apache#14435)
  fix: bootstrap data permissions (apache#14348)
  fix: parse simple string error message values (apache#14360)
  chore: add stack trace to all calls of logger.error (apache#14382)
  update README with new docs and recordings (apache#14432)
  Renamed impyla from implya in impala.mdx and Renamed PIP package impyla from impala in index.mdx (apache#14425)
  fix(native-filters): fix filter scope error (apache#14426)
  feat: Adding limiting_factor column to Query model (apache#14234)
  feat: Add etag caching to dashboard APIs (apache#14357)
  chore: Moves Card to the components folder (apache#14139)
  feat: Dynamic imports for the Icons component (apache#14318)
  feat: Support env vars configuration for WebSocket server (apache#14398)
  fix: SQLLab role permissions (apache#14372)
  fix(native-filters): always show filters without dataset (apache#14409)
  fix error getting partitionQuery from table.partition (apache#14369)
  refactor: Boostrap to AntD - Tabs (apache#14048)
  ...
hughhhh pushed a commit that referenced this pull request May 4, 2021
* fix parsing error messages that are formatted as single strings

* fix other instances of error typing
cccs-RyanS pushed a commit to CybercentreCanada/superset that referenced this pull request Dec 17, 2021
* fix parsing error messages that are formatted as single strings

* fix other instances of error typing
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 29, 2021
* fix parsing error messages that are formatted as single strings

* fix other instances of error typing
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
* fix parsing error messages that are formatted as single strings

* fix other instances of error typing
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.3.0 First shipped in 1.3.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/S 🚢 1.3.0 First shipped in 1.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants