Rémy DUBOIS
80b31130b4
fix(async-queries): make global async. queries cookie SameSite option configurable ( #21185 )
...
Co-authored-by: Ville Brofeldt <ville.brofeldt@apple.com >
2023-01-16 09:52:15 +02:00
Eugene Bikkinin
a2a578ad9b
fix(init): Initialize _jwt_cookie_name in AsyncQueryManager __init__ ( #22314 )
2022-12-22 13:53:56 -07:00
John Bodley
3483446c28
refactor: Cleanup user get_id/get_user_id ( #20492 )
...
Co-authored-by: John Bodley <john.bodley@airbnb.com >
2022-06-24 17:57:04 -07:00
Elizabeth Thompson
f270e49c4b
chore: use exc_info to pass errors to log warnings ( #20252 )
...
* use exc_info to pass errors to log warnings
* Update superset/views/base.py
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
* Update superset/views/base.py
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
2022-06-03 11:41:24 -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
Jesse Yang
92cd0a18e6
chore: upgrade mypy ( #19227 )
2022-03-17 10:35:53 -07:00
Hugh A. Miles II
181ecf4509
fix: Logic for showing extension in Global Nav ( #19158 )
...
* fix logic for checking extensions
* add specific types
* fix lint
2022-03-16 14:39:08 -07:00
ofekisr
ef57bd1902
fix: failed mypy ( #17886 )
2021-12-29 16:05:53 +02:00
Ville Brofeldt
7429282972
fix(lint): fix unnecessary type ignore ( #17555 )
2021-11-25 16:57:36 +02: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
be7065faf8
chore(pylint): Reenable raise-missing-from check ( #16266 )
...
Co-authored-by: John Bodley <john.bodley@airbnb.com >
2021-08-17 10:26:10 +12:00
Ville Brofeldt
d46dc9aa45
chore: upgrade mypy and add type guards ( #16227 )
2021-08-14 06:31:45 +03:00
Ben Reinhart
b38596fd96
fix: Use g.user for getting the user_id for async queries ( #14702 )
...
* fix: Use g.user for getting the user_id
* Use id form for one user.id call
* Fix references to g.user
* Correct types
* Use if over try/catch
* Switch back to try/except
2021-05-21 14:30:13 -07:00
Ben Reinhart
1c6173c7ee
feat: Make async query JWT cookie domain configurable ( #14007 )
2021-04-11 20:33:33 -07:00
Rob DiCiuccio
806fb73d25
feat(SIP-39): Websocket sidecar app ( #11498 )
...
* WIP node.js websocket app
* Load testing
* Multi-stream publish with blocking reads
* Use JWT for auth and channel ID
* Update ws jwt cookie name
* Typescript
* Frontend WebSocket transport support
* ws server ping/pong and GC logic
* ws server unit tests
* GC interval config, debug logging
* Cleanup JWT cookie logic
* Refactor asyncEvents.ts to support non-Redux use cases
* Update tests for refactored asyncEvents
* Add eslint, write READMEs, reorg files
* CI workflow
* Moar Apache license headers
* pylint found something
* adjust GH actions workflow
* Improve documentation & comments
* Prettier
* Add configurable logging via Winston
* Add SSL support for Redis connections
* Fix incompatible logger statements
* Apply suggestions from code review
Co-authored-by: David Aaron Suddjian <1858430+suddjian@users.noreply.github.com >
* rename streamPrefix config
Co-authored-by: David Aaron Suddjian <1858430+suddjian@users.noreply.github.com >
2021-04-08 11:12:03 -07: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