Daniel Vaz Gaspar
bb22eb1ca8
feat: add option for hash algorithms ( #35621 )
...
Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com >
2025-12-09 16:59:07 +00:00
Beto Dealmeida
aca18fff99
fix: double computation of contribution_totals ( #36226 )
2025-11-25 14:35:55 -05:00
Beto Dealmeida
0c87034b17
fix: cache key generation ( #36225 )
2025-11-25 12:50:00 -05:00
Daniel Vaz Gaspar
28788fd1fa
fix: centralize cache timeout -1 logic to prevent caching ( #34654 )
2025-08-18 08:45:20 +01:00
Maxime Beauchemin
cb27d5fe8d
chore: proper current_app.config proxy usage ( #34345 )
...
Co-authored-by: Claude <noreply@anthropic.com >
2025-07-31 19:27:42 -07:00
Đỗ Trọng Hải
4ed05f4ff1
fix(be/utils): sync cache timeout for memoized function ( #31917 )
...
Signed-off-by: hainenber <dotronghai96@gmail.com >
2025-05-07 15:45:15 -06:00
Maxime Beauchemin
e51b95ffa8
chore: enforce more ruff rules ( #31447 )
...
Co-authored-by: Elizabeth Thompson <eschutho@gmail.com >
2024-12-18 17:41:34 -08:00
Eyal Ezer
56f0fc4ec2
refactor: Migration of json utilities from core ( #28522 )
...
Co-authored-by: Eyal Ezer <eyal.ezer@ge.com >
2024-05-20 10:27:22 -07:00
Beto Dealmeida
e90246fd1f
feat(SIP-95): permissions for catalogs ( #28317 )
2024-05-06 11:41:58 -04:00
Sebastian Liebscher
90e210892b
chore: Simplify utils/cache by using default argument values ( #25900 )
2023-11-08 12:57:40 -08:00
John Bodley
a4d5d7c6b9
chore(pre-commit): Add pyupgrade and pycln hooks ( #24197 )
2023-06-01 12:01:10 -07:00
Beto Dealmeida
ad19cd9fbd
fix: timeout should be an integer ( #23924 )
2023-05-03 13:33:00 -07:00
Elizabeth Thompson
75e6a04269
fix: remove deprecated ETagResponseMixin ( #21773 )
2022-10-12 10:26:42 -07:00
Beto Dealmeida
1ebdaac487
fix: memoize primitives ( #19930 )
2022-05-02 14:50:56 -07:00
Beto Dealmeida
aff10a7fad
feat: simplify memoized_func ( #19905 )
2022-04-29 15:55:58 -07:00
Ville Brofeldt
a619cb4ea9
chore: upgrade black ( #19410 )
2022-03-29 20:03:09 +03:00
Ville Brofeldt
a04f1d4c87
chore(cache): default to SimpleCache in debug mode ( #18976 )
...
* chore(cache): default to SimpleCache in debug mode
* lint
* clean up type
* use util
* fix integration test cache configs
* remove util from cache manager
* remove trailing comma
* fix more tests
* fix truthiness check
* fix tests and improve deprecation notice
* fix default cache threshold
* move debug check to cache_manager
* remove separate getter
* update docs
* remove default cache config
2022-03-02 19:38:34 +02: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
ofekisr
15796ea4ac
refactor: type hints should not be load in runtime ( #15540 )
2021-07-05 16:48:53 +03:00
Yongjie Zhao
285c1b5d22
fix: skip set and log when NullCache ( #15493 )
2021-07-01 14:04:46 +03:00
Erik Ritter
bc47bc8f66
feat: Add etag caching to dashboard APIs ( #14357 )
2021-04-29 14:14:26 -07:00
Ben Reinhart
2a1235c0c2
fix: Cleanup serialization and hashing code ( #14317 )
2021-04-26 14:04:40 -07:00
Ville Brofeldt
0a00153375
feat(chart-data): add rowcount, timegrain and column result types ( #13271 )
...
* feat(chart-data): add rowcount, timegrain and column result types
* break out actions from query_context
* rename module
2021-02-24 07:43:47 +02:00
Rob DiCiuccio
d7cbd53fce
fix(async queries): Remove "force" param on cached data retrieval ( #12103 )
...
* Async queries: remove force cache param on data retrieval
* Assert equal query_object cache keys
* Decouple etag_cache from permission checks
* Fix query_context test
* Use marshmallow EnumField for validation
2021-01-27 10:16:57 -08: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
Jesse Yang
4cfcaebb61
feat: rename TABLE_NAMES_CACHE_CONFIG to DATA_CACHE_CONFIG ( #11509 )
...
* feat: rename TABLE_NAMES_CACHE_CONFIG to DATA_CACHE_CONFIG
The corresponding cache will now also cache the query results.
* Slice use DATA_CACHE_CONFIG CACHE_DEFAULT_TIMEOUT
* Add test for default cache timeout
* rename FAR_FUTURE to ONE_YEAR_IN_SECS
2020-11-13 22:35:10 -08:00
Kasia Kucharczyk
690e27e5fd
chore: updated utils with pylint rules ( #11062 )
...
* Updated pylint in cache.py in utils: unecessary bad-whitespace. Autoformatting
* Updated pylint in core.py in utils: E0202.
* Updated pylint in logging_configurator.py in utils: disable=no-member. Formatting
* Updated pylint in machine_auth.py in utils: unused-import
* Updated pylint in screenshots.py in utils: unused-import and import-error
* Updated pylint in webdriver.py in utils: unused-import
2020-09-28 14:32:06 -07:00
John Bodley
91517a56a3
style(mypy): Spit-and-polish pass ( #10001 )
...
Co-authored-by: John Bodley <john.bodley@airbnb.com >
2020-06-07 08:53:46 -07:00
John Bodley
b296a0f250
[mypy] Enforcing typing for superset.utils ( #9905 )
...
Co-authored-by: John Bodley <john.bodley@airbnb.com >
2020-05-27 22:57:30 -07:00
John Bodley
e789a35558
[mypy] Enforcing typing for superset.models ( #9883 )
...
Co-authored-by: John Bodley <john.bodley@airbnb.com >
2020-05-22 20:31:21 -07:00
Will Barrett
ed3944ebef
Re-enable pylint for superset/utils folder ( #8766 )
...
* re-enable pylint for superset/utils/import_datasource.py
* re-enable pylint for superset/utils/cache.py
* re-enable pylint for superset/utils/log.py
2019-12-06 14:34:58 -08:00
Craig Rueda
e490414484
Flask App factory PR #1 ( #8418 )
...
* First cut at app factory
* Setting things back to master
* Working with new FLASK_APP
* Still need to refactor Celery
* CLI mostly working
* Working on unit tests
* Moving cli stuff around a bit
* Removing get in config
* Defaulting test config
* Adding flask-testing
* flask-testing casing
* resultsbackend property bug
* Fixing up cli
* Quick fix for KV api
* Working on save slice
* Fixed core_tests
* Fixed utils_tests
* Most tests working - still need to dig into remaining app_context issue in tests
* All tests passing locally - need to update code comments
* Fixing dashboard tests again
* Blacking
* Sorting imports
* linting
* removing envvar mangling
* blacking
* Fixing unit tests
* isorting
* licensing
* fixing mysql tests
* fixing cypress?
* fixing .flaskenv
* fixing test app_ctx
* fixing cypress
* moving manifest processor around
* moving results backend manager around
* Cleaning up __init__ a bit more
* Addressing PR comments
* Addressing PR comments
* Blacking
* Fixes for running celery worker
* Tuning isort
* Blacking
2019-11-20 15:47:06 +00:00
John Bodley
5c58fd1802
[format] Using Black ( #7769 )
2019-06-25 13:34:48 -07:00
Craig Rueda
48b2af471c
Add type anno ( #7342 )
...
* Updated local dev instructions to include missing step
* First pass at type annotations
2019-04-23 16:37:52 -07:00
Maxime Beauchemin
1dd4d7a587
Apply ASF licenses throughout the code base ( #5800 )
...
* Add license headers
* reabased
* lint
* Removing licenses from vendors folder
2019-01-15 15:53:27 -08:00
Junda Yang
c552c125d7
Move metadata cache one layer up ( #6153 )
...
* Update wording
* nit update for api endpoint url
* move metadata cache one layer up
* refactor cache
* fix flake8 and DatabaseTablesAsync
* nit
* remove logging for cache
* only fetch for all tables that allows cross schema fetch
* default allow_multi_schema_metadata_fetch to False
* address comments
* remove unused defaultdict
* flake 8
2018-10-31 13:23:26 -07:00
Maxime Beauchemin
bbfd69a138
[utils.py] gathering/refactoring into a "utils/" folder ( #6095 )
...
* [utils] gathering/refactoring into a "utils/" folder
Moving current utils.py into utils/core.py and moving other *util*
modules under this new "utils/" as well.
Following steps include eroding at "utils/core.py" and breaking it down
into smaller modules.
* Improve tests
* Make loading examples in scope for tests
* Remove test class attrs examples_loaded and requires_examples
2018-10-16 17:59:34 -07:00