mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
feat: introduce hashids permalink keys (#19324)
* feat: introduce hashids permalink keys
* implement dashboard permalinks
* remove shorturl notice from UPDATING.md
* lint
* fix test
* introduce KeyValueResource
* make filterState optional
* fix test
* fix resource names
(cherry picked from commit f4b71abb22)
This commit is contained in:
committed by
Ville Brofeldt
parent
18f82411c9
commit
a6a2def6d3
@@ -17,7 +17,13 @@
|
||||
from abc import ABC
|
||||
|
||||
from superset.commands.base import BaseCommand
|
||||
from superset.key_value.shared_entries import get_permalink_salt
|
||||
from superset.key_value.types import KeyValueResource, SharedKey
|
||||
|
||||
|
||||
class BaseDashboardPermalinkCommand(BaseCommand, ABC):
|
||||
resource = "dashboard_permalink"
|
||||
resource = KeyValueResource.DASHBOARD_PERMALINK
|
||||
|
||||
@property
|
||||
def salt(self) -> str:
|
||||
return get_permalink_salt(SharedKey.DASHBOARD_PERMALINK_SALT)
|
||||
|
||||
Reference in New Issue
Block a user