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

chore: remove and deprecate old CSS templates endpoints #28387

Conversation

dpgaspar
Copy link
Member

@dpgaspar dpgaspar commented May 8, 2024

SUMMARY

Removing server side rendered pages endpoints from CSS templates view.
Also deprecating csstemplateasyncmodelview/api/read endpoint.

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

@codecov-commenter
Copy link

codecov-commenter commented May 8, 2024

Codecov Report

Attention: Patch coverage is 90.90909% with 1 line in your changes missing coverage. Please review.

Project coverage is 83.22%. Comparing base (76d897e) to head (9e56763).
Report is 1094 commits behind head on master.

Files with missing lines Patch % Lines
superset/views/css_templates.py 90.90% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master   #28387       +/-   ##
===========================================
+ Coverage   60.48%   83.22%   +22.73%     
===========================================
  Files        1931      521     -1410     
  Lines       76236    37211    -39025     
  Branches     8568        0     -8568     
===========================================
- Hits        46114    30970    -15144     
+ Misses      28017     6241    -21776     
+ Partials     2105        0     -2105     
Flag Coverage Δ
hive 49.08% <90.90%> (-0.08%) ⬇️
javascript ?
mysql 77.24% <90.90%> (?)
postgres 77.36% <90.90%> (?)
presto 53.67% <90.90%> (-0.13%) ⬇️
python 83.22% <90.90%> (+19.74%) ⬆️
sqlite 76.82% <90.90%> (?)
unit 58.30% <90.90%> (+0.68%) ⬆️

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.

@expose_api(name="read", url="/api/read", methods=["GET"])
@has_access_api
@permission_name("list")
@deprecated(eol_version="5.0.0")
Copy link
Member Author

Choose a reason for hiding this comment

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

Could we just remove this? not used on the frontend and a REST API exists for this for some time now

Copy link
Member

Choose a reason for hiding this comment

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

@dpgaspar We discussed this during the release meeting and we agreed to remove these legacy endpoints during a breaking window even if they are not under v1. That's what we did in the past and we just want to be mindful that someone out there might still be using the endpoint.

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label May 8, 2024
@rusackas
Copy link
Member

rusackas commented May 8, 2024

@mistercrunch might wanna scope out the CI issue.

@mistercrunch
Copy link
Member

mmmh, ran the same command as CI but locally and it worked:

$ supersetbot orglabel --issue 28387 --repo apache/superset
🟢 SUCCESS: added label(s) preset-io to issue 28387

re-triggered CI. Looked like what happens when trying to reference an issue that does not exist yet... Not sure what happened.

@mistercrunch
Copy link
Member

This is not a required check, feel free to merge with that check failing while I look into it

@dpgaspar dpgaspar merged commit e1a440f into apache:master May 9, 2024
33 of 35 checks passed
@dpgaspar dpgaspar deleted the danielgaspar/sc-5237/remove-old-css-templates-crud-system branch May 9, 2024 08:38
imancrsrk pushed a commit to imancrsrk/superset that referenced this pull request May 10, 2024
jzhao62 pushed a commit to jzhao62/superset that referenced this pull request May 16, 2024
EnxDev pushed a commit to EnxDev/superset that referenced this pull request May 31, 2024
vinothkumar66 pushed a commit to vinothkumar66/superset that referenced this pull request Nov 11, 2024
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 4.1.0 labels Nov 27, 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 lgtm This PR has been approved by a maintainer size/M 🚢 4.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants