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
@@ -14,7 +14,6 @@
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
from secrets import token_urlsafe
|
||||
from typing import Any
|
||||
|
||||
SEPARATOR = ";"
|
||||
@@ -22,7 +21,3 @@ SEPARATOR = ";"
|
||||
|
||||
def cache_key(*args: Any) -> str:
|
||||
return SEPARATOR.join(str(arg) for arg in args)
|
||||
|
||||
|
||||
def random_key() -> str:
|
||||
return token_urlsafe(48)
|
||||
|
||||
Reference in New Issue
Block a user