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

* Remove function, start changing tests

* Fix tests

* Remove deprecated parameter from function
This commit is contained in:
Kristina
2022-05-23 08:18:49 -05:00
committed by GitHub
parent be0d043673
commit a9cc3225ba
4 changed files with 67 additions and 135 deletions

View File

@@ -196,15 +196,11 @@ export const urlUtil = {
};
/**
* 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.
* 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.
*
* @param urlState
* @param compact this parameter is deprecated and will be removed in a future release.
*/
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');
}
export function serializeStateToUrlParam(urlState: ExploreUrlState): string {
return JSON.stringify(urlState);
}