Browse Source

fix(workflow): Handle filtering release list by date (#33752)

* fix(workflow): Handle filtering release list by date

Currently, the date picker on the releases list only changes the graph. This adds the ability to filter by date using the global selection header.

FIXES WOR-1786

* fix statsPeriod
Kelly Carino 2 years ago
parent
commit
392c83c4fb
1 changed files with 5 additions and 1 deletions
  1. 5 1
      static/app/views/releases/list/index.tsx

+ 5 - 1
static/app/views/releases/list/index.tsx

@@ -80,13 +80,17 @@ class ReleasesList extends AsyncView<Props, State> {
 
   getEndpoints(): ReturnType<AsyncView['getEndpoints']> {
     const {organization, location} = this.props;
-    const {statsPeriod} = location.query;
+    const {statsPeriod, start, end, utc} = location.query;
     const activeSort = this.getSort();
     const activeStatus = this.getStatus();
 
     const query = {
       ...pick(location.query, ['project', 'environment', 'cursor', 'query', 'sort']),
       summaryStatsPeriod: statsPeriod,
+      statsPeriod,
+      start,
+      end,
+      utc,
       per_page: 20,
       flatten: activeSort === ReleasesSortOption.DATE ? 0 : 1,
       adoptionStages: 1,