John Bodley
847ed3f5b0
refactor: Ensure Flask framework leverages the Flask-SQLAlchemy session (Phase II) ( #26909 )
2024-02-14 06:20:15 +13:00
John Bodley
07bcfa9b5f
chore(command): Organize Commands according to SIP-92 ( #25850 )
2023-11-22 16:55:54 -03:00
Daniel Vaz Gaspar
3761694d72
fix: dashboard get by id or slug access filter ( #22358 )
2023-01-05 17:10:40 +00:00
Jesse Yang
2cb4fd31f1
refactor(test): add login_as_admin in global conftest ( #20703 )
2022-07-14 18:10:31 -07:00
Ville Brofeldt
b7a0559aaf
feat: add permalink to dashboard and explore ( #19078 )
...
* rename key_value to temporary_cache
* add migration
* create new key_value package
* add commands
* lots of new stuff
* fix schema reference
* remove redundant filter state from bootstrap data
* add missing license headers
* fix pylint
* fix dashboard permalink access
* use valid json mocks for filter state tests
* fix temporary cache tests
* add anchors to dashboard state
* lint
* fix util test
* fix url shortlink button tests
* remove legacy shortner
* remove unused imports
* fix js tests
* fix test
* add native filter state to anchor link
* add UPDATING.md section
* address comments
* address comments
* lint
* fix test
* add utils tests + other test stubs
* add key_value integration tests
* add filter box state to permalink state
* fully support persisting url parameters
* lint, add redirects and a few integration tests
* fix test + clean up trailing comma
* fix anchor bug
* change value to LargeBinary to support persisting binary values
* fix urlParams type and simplify urlencode
* lint
* add optional entry expiration
* fix incorrect chart id + add test
2022-03-17 01:15:52 +02: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
Michael S. Molina
48a80950de
feat: Improve state key generation for dashboards and charts ( #18576 )
...
* feat: Improve state key generation for dashboards and charts
2022-02-14 17:09:06 -03:00
Michael S. Molina
959b15eeca
feat: Adds a key-value endpoint to store charts form data ( #17882 )
...
* feat: Adds a key-value endpoint to store charts form data
* Fixes linting problems
* Removes the query_params from the endpoints
* Refactors the commands
* Removes unused imports
* Changes the parameters to use dataclass
* Adds more access tests
* Gets the first dataset while testing
* Adds unit tests for the check_access function
* Changes the can_access check
* Always check for dataset access
2022-01-20 16:27:57 -03:00
Michael S. Molina
3a9bd12e3d
fix: Returns 404 instead of 500 for unknown dashboard filter state keys ( #17878 )
...
* fix: Returns 404 instead of 500 for unknown dashboard filter state keys
* Reduces hierarchies of if-expression
* Removes unnecessary check
Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>
* Removes unused variable
* Fixes type error
* Removes unused import
Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>
2022-01-10 14:24:22 -03:00
Michael S. Molina
8ebec6016e
fix: Removes duplicated import in dashboard filter state tests ( #17887 )
2021-12-29 13:10:56 -03:00
Bogdan
afd2e9f2ca
chore: update fixtures scope that are loading data into the analytical db ( #17780 )
...
* Update db setup fixture scope
* Load data into db only once
* Update fixture scopes for data loading
* cleanup imports
* try import
* Update scope
* fix cleanup
* Import all fixtures
* Separate data log and metadata creation
* Retain table description
* fix dtype
Co-authored-by: Bogdan Kyryliuk <bogdankyryliuk@dropbox.com>
2021-12-16 16:11:47 -08:00
Michael S. Molina
2ae83fac86
fix: Allows PUT and DELETE only for owners of dashboard filter state ( #17644 )
...
* fix: Allows PUT and DELETE only for owners of dashboard filter state
* Converts the values to TypedDict
* Fixes variable name
2021-12-05 22:13:09 -03:00
Michael S. Molina
2f2e8fe412
feat: Adds a key-value endpoint to store the state of dashboard filters ( #17536 )
...
* feat: Adds a key-value endpoint to store the state of dashboard filters
* Fixes pylint issues
* Adds openapi schemas
* Adds more tests, move logic to commands and use singular form for the endpoint name
* Fixes model description
* Removes database model
* Adds open api specs
* Simplifies the commands
* Adds more tests
* Validates the value content and submits the correct http status code
* Fixes import order
* Skips flakky test
* Fixes tests
* Updates UPDATING.md
2021-12-01 09:06:49 -03:00