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(tagging): adding tags containing a “:” to dashboards #26324

Merged
merged 2 commits into from
Dec 22, 2023

Conversation

lilykuang
Copy link
Member

@lilykuang lilykuang commented Dec 20, 2023

SUMMARY

  • Issue with Tagging for Dashboards: There is a problem with saving tags that have the “:” character for dashboards. These tags cannot be assigned to a dashboard, although they can be successfully assigned to charts.
  • removed the check on ":" or ","

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • 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

Copy link

codecov bot commented Dec 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (60abf7e) 69.18% compared to head (7f2db2b) 69.18%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #26324      +/-   ##
==========================================
- Coverage   69.18%   69.18%   -0.01%     
==========================================
  Files        1945     1945              
  Lines       75971    75962       -9     
  Branches     8467     8467              
==========================================
- Hits        52559    52551       -8     
+ Misses      21225    21224       -1     
  Partials     2187     2187              
Flag Coverage Δ
hive 53.68% <66.66%> (+<0.01%) ⬆️
javascript 56.52% <ø> (+<0.01%) ⬆️
mysql 78.08% <100.00%> (-0.01%) ⬇️
postgres 78.17% <100.00%> (-0.01%) ⬇️
presto 53.63% <66.66%> (+<0.01%) ⬆️
python 82.85% <100.00%> (-0.01%) ⬇️
sqlite 76.83% <100.00%> (-0.01%) ⬇️
unit 55.80% <100.00%> (+<0.01%) ⬆️

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.

@@ -19,6 +19,7 @@
import enum
from typing import TYPE_CHECKING

from flask import escape
Copy link
Member

Choose a reason for hiding this comment

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

Nice !

)

# test that a tag can be added if it has ',' in it
TagDAO.create_custom_tagged_objects(
Copy link
Member

@hughhhh hughhhh Dec 22, 2023

Choose a reason for hiding this comment

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

nit: can we add few more test with different symbols? like ., -, /, etc.

@sadpandajoe
Copy link
Member

🏷️ preset:2023.51

@lilykuang lilykuang merged commit 3391e29 into apache:master Dec 22, 2023
35 checks passed
@lilykuang lilykuang deleted the lily/fix-tags branch December 22, 2023 18:30
@lilykuang
Copy link
Member Author

will add more tests in a new pr

sadpandajoe pushed a commit to preset-io/superset that referenced this pull request Dec 22, 2023
will add more tests in a separated PR

(cherry picked from commit 3391e29)
@michael-s-molina michael-s-molina added the v3.1 Label added by the release manager to track PRs to be included in the 3.1 branch label Dec 27, 2023
michael-s-molina pushed a commit that referenced this pull request Dec 27, 2023
will add more tests in a separated PR

(cherry picked from commit 3391e29)
@sadpandajoe
Copy link
Member

Looks like this will show private/protected tags that aren't normally shown to users like owner:<userid> when creating new dashboards and assets

sadpandajoe added a commit to preset-io/superset that referenced this pull request Dec 28, 2023
sadpandajoe added a commit to preset-io/superset that referenced this pull request Jan 8, 2024
sadpandajoe added a commit to preset-io/superset that referenced this pull request Jan 13, 2024
josedev-union pushed a commit to Ortege-xyz/studio that referenced this pull request Jan 22, 2024
will add more tests in a separated PR

(cherry picked from commit 3391e29)
@mistercrunch mistercrunch added 🍒 3.1.0 🍒 3.1.1 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels labels Mar 8, 2024
sfirke pushed a commit to sfirke/superset that referenced this pull request Mar 22, 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/M v3.1 Label added by the release manager to track PRs to be included in the 3.1 branch 🍒 3.1.0 🍒 3.1.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants