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

refactor: Remove dead code from the Word Cloud plugin #29594

Merged

Conversation

michael-s-molina
Copy link
Member

@michael-s-molina michael-s-molina commented Jul 15, 2024

SUMMARY

The Word Cloud plugin had a legacy version which was not being used anymore. This PR removes that dead code including the associated tests.

TESTING INSTRUCTIONS

CI should be sufficient.

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

@dosubot dosubot bot added frontend:refactor Related to refactoring the frontend viz:charts:wordcloud Related to the Wordcloud chart labels Jul 15, 2024
@michael-s-molina michael-s-molina force-pushed the remove-word-cloud-dead-code branch from e4671ac to 97a6217 Compare July 15, 2024 20:11
@michael-s-molina michael-s-molina force-pushed the remove-word-cloud-dead-code branch from 97a6217 to 84b2188 Compare July 15, 2024 20:20
@michael-s-molina
Copy link
Member Author

/testenv up

export default function transformProps(chartProps: ChartProps): WordCloudProps {
const { width, height, formData, queriesData } = chartProps;
const { encoding, rotation, sliceId, colorScheme } =
formData as WordCloudFormData;
const {
Copy link
Member Author

Choose a reason for hiding this comment

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

The index file of the plugin was referencing the legacy transformProps function. I just copied the code from there here and deleted that file.

Copy link
Contributor

@michael-s-molina Ephemeral environment spinning up at http://34.211.94.59:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

@michael-s-molina michael-s-molina merged commit 85b6694 into apache:master Jul 19, 2024
35 checks passed
Copy link
Contributor

Ephemeral environment shutdown and build artifacts deleted.

@sadpandajoe
Copy link
Member

@supersetbot label 4.1

@github-actions github-actions bot added the v4.1 Label added by the release manager to track PRs to be included in the 4.1 branch label Jul 30, 2024
sadpandajoe pushed a commit that referenced this pull request Aug 13, 2024
@github-actions github-actions bot added 🍒 4.1.0 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels labels Nov 14, 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 frontend:refactor Related to refactoring the frontend packages plugins size/L v4.1 Label added by the release manager to track PRs to be included in the 4.1 branch viz:charts:wordcloud Related to the Wordcloud chart 🍒 4.1.0 🍒 4.1.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants