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: Move fetchTimeRange to core package #27852

Merged
merged 10 commits into from
Apr 3, 2024

Conversation

kgabryje
Copy link
Member

@kgabryje kgabryje commented Apr 2, 2024

SUMMARY

Move fetchTimeRange function and all its dependencies to superset-ui/core to make it reusable in components defined in core and chart-controls packages.

Also, sync superset/errors.py::SupersetErrorType with packages/superset-ui-core/src/query/types/Query.ts::ErrorTypeEnum.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

No visual changes

TESTING INSTRUCTIONS

CI should pass

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

@kgabryje kgabryje force-pushed the chore/move-fetchTimeRange-core branch from 362f808 to 2bcc15f Compare April 2, 2024 16:15
@john-bodley john-bodley changed the title chore: Move fetchTimeRange to core package refactor: Move fetchTimeRange to core package Apr 2, 2024
// "composite": false,
// "emitDeclarationOnly": false,
// "noEmit": true,
// "rootDir": "."
Copy link
Member

Choose a reason for hiding this comment

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

@kgabryje, intentional?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oops, nope 😬

Copy link
Member

@eschutho eschutho left a comment

Choose a reason for hiding this comment

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

LGTM. I left a small nit question.

@kgabryje kgabryje force-pushed the chore/move-fetchTimeRange-core branch from 2bcc15f to 39ddf6e Compare April 3, 2024 09:55
@kgabryje kgabryje merged commit a498d6d into apache:master Apr 3, 2024
42 checks passed
jzhao62 pushed a commit to jzhao62/superset that referenced this pull request Apr 4, 2024
EandrewJones pushed a commit to UMD-ARLIS/superset that referenced this pull request Apr 5, 2024
EnxDev pushed a commit to EnxDev/superset that referenced this pull request Apr 12, 2024
betodealmeida pushed a commit that referenced this pull request Apr 25, 2024
qleroy pushed a commit to qleroy/superset that referenced this pull request Apr 28, 2024
eschutho pushed a commit that referenced this pull request Jun 5, 2024
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants