mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user