Revert "Explore: Remove support for legacy, compact format URLs (#49350)" (#50873)

This reverts commit a9cc3225ba.

Co-authored-by: Elfo404 <me@giordanoricci.com>
This commit is contained in:
Kristina
2022-06-15 08:44:36 -05:00
committed by GitHub
parent f1834163ec
commit dfa538ff92
4 changed files with 135 additions and 67 deletions

View File

@@ -196,11 +196,15 @@ export const urlUtil = {
};
/**
* Create an string that is used in URL to represent the Explore state. This is stringified json
* that is used as a state of a single Explore pane - it does not represent full Explore URL.
* Create an string that is used in URL to represent the Explore state. This is basically just a stringified json
* that is that used as a state of a single Explore pane so it does not represent full Explore URL.
*
* @param urlState
* @param compact this parameter is deprecated and will be removed in a future release.
*/
export function serializeStateToUrlParam(urlState: ExploreUrlState): string {
export function serializeStateToUrlParam(urlState: ExploreUrlState, compact?: boolean): string {
if (compact !== undefined) {
console.warn('`compact` parameter is deprecated and will be removed in a future release');
}
return JSON.stringify(urlState);
}