@@ -28,7 +28,7 @@ describe('getWidgetExploreUrl', () => {
2828
2929 // Note: for table widgets the mode is set to samples and the fields are propagated
3030 expect ( url ) . toBe (
31- '/organizations/org-slug/traces/?dataset=spansRpc& groupBy=span.description&interval=30m&mode=aggregate&statsPeriod=14d&visualize=%7B%22chartType%22%3A1%2C%22yAxes%22%3A%5B%22avg%28span.duration%29%22%5D%7D'
31+ '/organizations/org-slug/traces/?groupBy=span.description&interval=30m&mode=aggregate&statsPeriod=14d&visualize=%7B%22chartType%22%3A1%2C%22yAxes%22%3A%5B%22avg%28span.duration%29%22%5D%7D'
3232 ) ;
3333 } ) ;
3434
@@ -51,7 +51,7 @@ describe('getWidgetExploreUrl', () => {
5151
5252 // Note: for table widgets the mode is set to samples and the fields are propagated
5353 expect ( url ) . toBe (
54- '/organizations/org-slug/traces/?dataset=spansRpc& field=span.description&field=span.duration&interval=30m&mode=samples&statsPeriod=14d&visualize=%7B%22chartType%22%3A1%2C%22yAxes%22%3A%5B%5D%7D'
54+ '/organizations/org-slug/traces/?field=span.description&field=span.duration&interval=30m&mode=samples&statsPeriod=14d&visualize=%7B%22chartType%22%3A1%2C%22yAxes%22%3A%5B%5D%7D'
5555 ) ;
5656 } ) ;
5757
@@ -75,7 +75,7 @@ describe('getWidgetExploreUrl', () => {
7575 // Note: for line widgets the mode is set to aggregate
7676 // The chart type is set to 1 for area charts
7777 expect ( url ) . toBe (
78- '/organizations/org-slug/traces/?dataset=spansRpc& groupBy=span.description&interval=30m&mode=aggregate&statsPeriod=14d&visualize=%7B%22chartType%22%3A2%2C%22yAxes%22%3A%5B%22avg%28span.duration%29%22%5D%7D'
78+ '/organizations/org-slug/traces/?groupBy=span.description&interval=30m&mode=aggregate&statsPeriod=14d&visualize=%7B%22chartType%22%3A2%2C%22yAxes%22%3A%5B%22avg%28span.duration%29%22%5D%7D'
7979 ) ;
8080 } ) ;
8181
@@ -99,7 +99,7 @@ describe('getWidgetExploreUrl', () => {
9999 // Note: for line widgets the mode is set to aggregate
100100 // The chart type is set to 1 for area charts
101101 expect ( url ) . toBe (
102- '/organizations/org-slug/traces/?dataset=spansRpc& groupBy=&interval=30m&mode=aggregate&statsPeriod=14d&visualize=%7B%22chartType%22%3A2%2C%22yAxes%22%3A%5B%22avg%28span.duration%29%22%5D%7D'
102+ '/organizations/org-slug/traces/?groupBy=&interval=30m&mode=aggregate&statsPeriod=14d&visualize=%7B%22chartType%22%3A2%2C%22yAxes%22%3A%5B%22avg%28span.duration%29%22%5D%7D'
103103 ) ;
104104 } ) ;
105105
@@ -123,7 +123,7 @@ describe('getWidgetExploreUrl', () => {
123123
124124 // The URL should have the sort and another visualize to plot the sort
125125 expect ( url ) . toBe (
126- '/organizations/org-slug/traces/?dataset=spansRpc& groupBy=span.description&interval=30m&mode=aggregate&sort=-count%28span.duration%29&statsPeriod=14d&visualize=%7B%22chartType%22%3A1%2C%22yAxes%22%3A%5B%22avg%28span.duration%29%22%5D%7D&visualize=%7B%22chartType%22%3A1%2C%22yAxes%22%3A%5B%22count%28span.duration%29%22%5D%7D'
126+ '/organizations/org-slug/traces/?groupBy=span.description&interval=30m&mode=aggregate&sort=-count%28span.duration%29&statsPeriod=14d&visualize=%7B%22chartType%22%3A1%2C%22yAxes%22%3A%5B%22avg%28span.duration%29%22%5D%7D&visualize=%7B%22chartType%22%3A1%2C%22yAxes%22%3A%5B%22count%28span.duration%29%22%5D%7D'
127127 ) ;
128128 } ) ;
129129} ) ;
0 commit comments