Ville Brofeldt
aa0cae9b49
feat(thumbnails): add support for user specific thumbs ( #22328 )
2022-12-14 15:02:31 +02:00
Elizabeth Thompson
c3a6327ff0
fix: correct exception level in log and add error message ( #22381 )
2022-12-12 10:58:58 -08:00
Elizabeth Thompson
ce145c676c
refactor: use exception status for logging ( #21971 )
2022-11-14 14:14:24 -08:00
AAfghahi
76c865fc56
chore: additional logging in alerts and reports ( #21802 )
2022-10-24 17:07:21 -04:00
Phillip Kelley-Dotson
f4fa2e1115
chore: add more logging for alerts and reports ( #21714 )
2022-10-13 15:53:02 -04:00
Erik Cederstrand
640628952e
chore(dep): Unpin slackclient dependency ( #21586 )
...
Co-authored-by: Erik Cederstrand <erik@adamatics.com >
Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com >
2022-10-04 14:42:42 +03:00
cccs-Dustin
2e564897f8
feat: Add dataset tagging to the back-end ( #20892 )
...
Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com >
2022-09-23 11:01:17 +03:00
ʈᵃᵢ
04dd8d414d
fix(celery cache warmup): add auth and use warm_up_cache endpoint ( #21076 )
2022-08-30 09:24:24 -07:00
John Bodley
94b3d2f0f0
refactor: Deprecate ensure_user_is_set in favor of override_user ( #20502 )
...
Co-authored-by: John Bodley <john.bodley@airbnb.com >
2022-07-05 10:57:40 -07:00
Craig Rueda
e1f53f2a2c
Improving logging around failed scheduled reports ( #19924 )
2022-05-03 09:16:00 -07:00
Craig Rueda
f64d654de3
chore(database): Creating helper make_url_safe to wrap potential errors ( #19526 )
...
* Creating helper make_url_safe to wrap potential errors
* Fixing imports
* Fixing imports again
* Adding comment
* Linting
* Fixing test
* Fixing test again...
* Fixing import
2022-04-05 11:17:30 -07:00
Ville Brofeldt
a619cb4ea9
chore: upgrade black ( #19410 )
2022-03-29 20:03:09 +03:00
Phillip Kelley-Dotson
394c9a19fd
chore: remove old alerts and configs keys ( #19261 )
...
* remove templates
* remove models and more templates
* remove view
* remove tasks
* remove views
* remove schedule models
* remove views, init files config code
* remove supersetapp init code
* remove tests and clean up pylint errors
* remove unused import
* pylint
* run black
* remove deprecate notice
2022-03-25 13:25:44 -07:00
Daniel Vaz Gaspar
f37fc1a7f0
chore: bump majors on celery and Flask ( #19168 )
...
* chore: bump celery, Flask, flask-jwt-extended, pyJWT
* fix pyJWT breaking change
* fix pyJWT breaking change 2
* test
* fixed test
* fixed test
* fixed test
* revert since mypy won't pick the correct signature
* lint 1
* fix test
* fix test
* docs and celery config migration
* bump FAB to 4.0.0rc3, remove AUTH_STRICT_RESPONSE_CODES
* update docs for new celery config keys
* downgrade celery to 5.2.2
* ref FAB to final 4.0.0 release
* remove conflict left over
2022-03-24 09:16:53 +00:00
ofekisr
16e012fe5d
refactor(chart.commands): separate commands into two different modules ( #17509 )
...
refactor: move imports under TYPE_CHECKING
2021-11-22 19:57:52 +02:00
ofekisr
3f2129b895
refactor: chartDataCommand - remove the responsibly of creating query context from command ( #17461 )
2021-11-17 17:13:40 +02:00
ofekisr
5d3e1b5c2c
refactor: ChartDataCommand into two separate commands ( #17425 )
2021-11-15 01:00:08 +02:00
Elizabeth Thompson
f10bc6d8fe
fix: add fallback and validation for report and cron timezones ( #17338 )
...
* add fallback and validation for report and cron timezones
* add logging to exception catch
* Run black
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
2021-11-12 12:28:17 -08:00
John Bodley
fb4650a6eb
chore(pylint): Remove top-level disable ( #16589 )
...
* chore(pylint): Remove top-level disable
* Update examples.py
* Update command.py
Co-authored-by: John Bodley <john.bodley@airbnb.com >
2021-09-15 09:30:23 -07:00
Jack Fragassi
4dc859f89e
fix: Ensure alerts & reports aren't schduled when flag is off ( #16639 )
...
* Don't schedule alerts & reports when flag is off
* Fix test function name
* Fix test
* Oops
* Another tweak
* Try to lint by hand
* Fix mock
2021-09-10 13:37:21 +01:00
Amit Miran
420dd5b94a
chore: Pylint downgrade ( #16617 )
...
* Update testing.in
* chore: downgrade pylint to 2.9.6
* downgrade dependence for pylint
* trim space
* pylint rules
Co-authored-by: Yongjie Zhao <yongjie.zhao@gmail.com >
2021-09-08 08:19:15 +03:00
Rob DiCiuccio
4e380db3fd
fix: Support Jinja template functions in global async queries ( #16412 )
...
* Support Jinja template functions in async queries
* Pylint
* Add tests for async tasks
* Remove redundant has_request_context check
2021-09-03 14:33:29 +03:00
Ville Brofeldt
ac1d779a30
chore(ci): bump pylint to 2.10.2 ( #16463 )
2021-08-26 20:30:41 +03:00
John Bodley
7e4c940314
chore(pylint): Enable useless-suppression check ( #16388 )
...
Co-authored-by: John Bodley <john.bodley@airbnb.com >
2021-08-24 03:58:41 +12:00
John Bodley
0df15bf207
chore(pylint): Reenable import-outside-toplevel check ( #16263 )
...
Co-authored-by: John Bodley <john.bodley@airbnb.com >
2021-08-17 05:20:13 +12:00
John Bodley
8e07dd28bc
chore(pylint): Re-enable super-with-arguments check ( #16138 )
...
Co-authored-by: John Bodley <john.bodley@airbnb.com >
2021-08-17 04:00:24 +12:00
Ville Brofeldt
d46dc9aa45
chore: upgrade mypy and add type guards ( #16227 )
2021-08-14 06:31:45 +03:00
John Bodley
24b43beff9
chore(pylint): Bump Pylint to 2.9.6 ( #16146 )
...
Co-authored-by: John Bodley <john.bodley@airbnb.com >
2021-08-14 10:32:28 +12:00
Elizabeth Thompson
ea49aa3d2d
feat: add timezones to report cron ( #15849 )
...
* add timezones to report cron
* fix test
2021-07-27 18:28:24 -07:00
John Bodley
ab4e3b9bf9
chore: Enforce Mypy for non-tests ( #15757 )
...
Co-authored-by: John Bodley <john.bodley@airbnb.com >
2021-07-22 06:46:43 +12:00
Beto Dealmeida
c9dad05f2b
chore: remove retry dependency in favor of backoff ( #15788 )
...
* chore: remove retry dep in favor of backoff
* Fix lint
2021-07-20 10:33:37 -07:00
Daniel Vaz Gaspar
727847d2e5
fix: remove unnecessary app context on celery ( #15422 )
...
* fix: remove unnecessary app context on celery
* fix lint
* fix lint
2021-06-29 12:16:16 +01:00
Ben Reinhart
a06a2f30af
fix: Set g.user to anon user in Celery ( #14742 )
...
* Set g.user to anon user in Celery
* Add test
* Fix bug in logic
2021-05-21 14:33:08 -07:00
Sam Faber-Manning
11260b3117
chore: add stack trace to all calls of logger.error ( #14382 )
2021-04-30 09:22:05 -07:00
Ben Reinhart
e7f5100833
fix: Fix unintended cache misses with async queries ( #14291 )
...
* bug: Fix unintended cache misses with async queries
* Ensure sort order
* Ensure columns are sorted
* Update failing tests
2021-04-28 12:14:55 -07:00
Lily Kuang
7980b767c0
feat: Implement Celery SoftTimeLimit handling ( #13740 )
...
* log soft time limit error
* lint
* update test
2021-04-12 13:18:17 -07:00
Daniel Vaz Gaspar
89817d4cee
fix(alerts/reports): working timeout with celery kill and logic fix ( #13911 )
...
* fix: working timeout with celery kill and logic fix
* add config flags
* fix typo
* fix python lint
* log query time for alerts
* add tests
* fix lint
2021-04-08 11:23:31 +01:00
Ben Reinhart
ca506e9396
fix( #13378 ): Ensure g.user is set for impersonation ( #13878 )
2021-03-31 11:22:56 -07:00
Jack Fragassi
304e3b36eb
feat(alerts & reports): Easier to read execution logs ( #13752 )
...
* Prep for migration
* Migration for execution id column
* Generate execution ids for alerts and reports
* Change execution id range
* Add execution id to API endpoint
* Add execution id to execution log view
* Change execution id range
* Change execution id to a uuid
* Fix execution id type
* Switch state and exec. id columns
* Change db column to UUIDType
* Python lint
* Fix failing frontend tests
* execution_id -> uuid
* Fix migration head
* lint
* Use celery task id as the execution id
* lint
* lint for real
* Fix tests
2021-03-30 08:46:16 -07:00
ʈᵃᵢ
3078c84d40
feat(reports): SLACK_API_TOKEN as callable or str ( #13634 )
2021-03-16 10:06:29 -06:00
Daniel Vaz Gaspar
94fc5d586e
docs: deprecate old alerts and dash/charts reports ( #13440 )
...
* docs: deprecated old alerts and dash/charts reports
* revert celery default config
* fix lint
2021-03-05 09:40:08 +00:00
Rob DiCiuccio
b4ca39ceeb
fix(celery): Reset DB connection pools for forked worker processes ( #13350 )
...
* Reset sqlalchemy connection pool on celery process fork
* Fix race condition with async chart loading state
* pylint: ignore
* prettier
2021-02-26 08:05:40 -08:00
Daniel Vaz Gaspar
a0e05a5eff
fix(reports): handle exceptions properly in scope ( #12811 )
...
* fix(reports): handle exceptions properly in scope
* list and test commit removal
* revert removing commits from tests
* lint
2021-01-28 19:06:19 +00:00
İbrahim Ercan
49e6e420da
fix: session error fixed related to thumbnails. ( #12760 )
...
* fix: session error fixed related to thumbnails.
* compute_and_cache moved to session scope
* lint fix done
2021-01-27 11:04:14 +00:00
Rob DiCiuccio
e4ae17def5
fix: Stabilize and deprecate legacy alerts module ( #12627 )
...
* Add deprecation notice to superset.tasks.schedules
* Reduce retries and schedule window for alerts
2021-01-21 09:51:53 -08:00
Yongjie Zhao
9b0e6d0cc0
refactor: from superset.utils.core break down date_parser ( #12408 )
2021-01-11 14:16:42 -08:00
Amit Miran
b221417e19
chore: remove harmless incubator refs ( #12289 )
...
* chore: migrate all harmless incubator refs like comments and documentation files
* chore: migrate all superset.incubator.apache.org to superset.apache.org to
* chore: migrate dist.apache.org refs
* chore: removing incubating and Disclaimer
* fix: linting issues
2021-01-06 13:45:19 +02:00
Daniel Vaz Gaspar
0171a6bee4
fix(reports): don't log user errors and state change has errors ( #12277 )
2021-01-06 08:57:10 +00:00
Daniel Vaz Gaspar
1a20552c2b
fix(reports): increase crontab size and alert fixes ( #12056 )
...
* fix(reports): increase crontab size
* update to current alembic revision
* Merge branch 'master' into feat/security-converge-datasets
# Conflicts:
# tests/security_tests.py
* Merge branch 'master' into feat/security-converge-datasets
# Conflicts:
# tests/security_tests.py
* Merge branch 'master' into feat/security-converge-datasets
# Conflicts:
# tests/security_tests.py
* lint
* update alembic revision
* fix related fields
* fix test
2020-12-17 18:03:05 +00:00
Rob DiCiuccio
4d329071a1
feat(SIP-39): Async query support for charts ( #11499 )
...
* Generate JWT in Flask app
* Refactor chart data API query logic, add JWT validation and async worker
* Add redis stream implementation, refactoring
* Add chart data cache endpoint, refactor QueryContext caching
* Typing, linting, refactoring
* pytest fixes and openapi schema update
* Enforce caching be configured for async query init
* Async query processing for explore_json endpoint
* Add /api/v1/async_event endpoint
* Async frontend for dashboards [WIP]
* Chart async error message support, refactoring
* Abstract asyncEvent middleware
* Async chart loading for Explore
* Pylint fixes
* asyncEvent middleware -> TypeScript, JS linting
* Chart data API: enforce forced_cache, add tests
* Add tests for explore_json endpoints
* Add test for chart data cache enpoint (no login)
* Consolidate set_and_log_cache and add STORE_CACHE_KEYS_IN_METADATA_DB flag
* Add tests for tasks/async_queries and address PR comments
* Bypass non-JSON result formats for async queries
* Add tests for redux middleware
* Remove debug statement
Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com >
* Skip force_cached if no queryObj
* SunburstViz: don't modify self.form_data
* Fix failing annotation test
* Resolve merge/lint issues
* Reduce polling delay
* Fix new getClientErrorObject reference
* Fix flakey unit tests
* /api/v1/async_event: increment redis stream ID, add tests
* PR feedback: refactoring, configuration
* Fixup: remove debugging
* Fix typescript errors due to redux upgrade
* Update UPDATING.md
* Fix failing py tests
* asyncEvent_spec.js -> asyncEvent_spec.ts
* Refactor flakey Python 3.7 mock assertions
* Fix another shared state issue in Py tests
* Use 'sub' claim in JWT for user_id
* Refactor async middleware config
* Fixup: restore FeatureFlag boolean type
Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com >
2020-12-10 20:21:56 -08:00