1. 13 Oct, 2021 6 commits
  2. 12 Oct, 2021 7 commits
  3. 11 Oct, 2021 1 commit
    • Agniva De Sarker's avatar
      Creating empty Channels shell (#18611) · 561bc968
      Agniva De Sarker authored
      * Creating empty Channels shell
      
      This is the first step in moving to a product-based
      isolated architecture.
      
      For now, Channels is empty and does not contain anything.
      
      Next step is to change App to contain Channels instead
      of Server. Some of the initialization code in NewServer
      would need to be moved inside NewChannels.
      
      This would complete the full pass-through mode of accessing
      everything.
      
      The last step would be to gradually move Channels related
      fields from Server into Channels, keeping Server to be
      just the global level struct.
      
      ```release-note
      NONE
      ```
      
      * fix vet failure
      
      ```release-note
      NONE
      ```
      561bc968
  4. 08 Oct, 2021 2 commits
  5. 07 Oct, 2021 6 commits
    • Nathaniel Allred's avatar
      Allow webapp to request legacy cloud products. (#18528) · fbe4f759
      Nathaniel Allred authored
      * Change internal getProducts to filter on a set of families instead of a single family.
      * Extend /products endpoint to be able to return any of the current four sets of product families.
      * Use include_legacy query param to decide which cloud products to request.
      fbe4f759
    • Archit Mathur's avatar
      Cluster Discovery store sqlx migration (#18605) · d13b3604
      Archit Mathur authored
      Automatic Merge
      d13b3604
    • Agniva De Sarker's avatar
      Add new CI step for checking email templates (#18570) · 9bbac354
      Agniva De Sarker authored
      * Add new CI step for checking email templates
      
      https://community-daily.mattermost.com/boards/workspace/zyoahc9uapdn3xdptac6jb69ic/285b80a3-257d-41f6-8cf4-ed80ca9d92e5/495cdb4d-c13a-4992-8eb9-80cfee2819a4?c=2c1d9628-675f-4eb6-80bb-db9e4d09b8bf
      
      
      
      ```release-note
      NONE
      ```
      
      * Pre-install
      
      ```release-note
      NONE
      ```
      
      * pinning down to 4.9.0
      
      ```release-note
      NONE
      ```
      
      Co-authored-by: default avatarMattermod <mattermod@users.noreply.github.com>
      9bbac354
    • Agniva De Sarker's avatar
      MM-37186: Update dependencies (#18604) · 76d492f9
      Agniva De Sarker authored
      * MM-37186: Update dependencies
      
      The split client libraries were excluded from being upgraded.
      
      See: https://github.com/splitio/go-split-commons/issues/56
      
      https://mattermost.atlassian.net/browse/MM-37186
      
      ```release-note
      NONE
      ```
      
      * Ignore staticcheck deprecation warnings
      
      ```release-note
      NONE
      ```
      76d492f9
    • Agniva De Sarker's avatar
      Move admin advisor to separate file (#18606) · 2898f988
      Agniva De Sarker authored
      ```release-note
      NONE
      ```
      2898f988
    • Agniva De Sarker's avatar
      Add index on Jobs table (#18244) · d9dda9f7
      Agniva De Sarker authored
      From Grafana charts, GetCountbyStatusandType and
      GetNewestJobByStatusesAndType were the two top queries.
      
      Overall, a through look into all job methods leads to
      the conclusion of 2 indexes - one on CreateAt, another
      a compound index of Status+Type. I have just gone ahead
      with the compound index for now. Once the job cleaner
      is implemented, I want to take a second look to decide
      whether to add the second index or not.
      
      Here is the before-after of the queries:
      
      Query 1:
      ```
      explain analyze select count(*) from jobs where status='error' and type='migrations';
                                                               QUERY PLAN
      -----------------------------------------------------------------------------------------------------------------------------
       Aggregate  (cost=103.42..103.43 rows=1 width=8) (actual time=0.032..0.034 rows=1 loops=1)
         ->  Bitmap Heap Scan on jobs  (cost=4.54..103.42 rows=1 width=0) (actual time=0.027..0.028 rows=0 loops=1)
               Recheck Cond: ((type)::text = 'migrations'::text)
               Filter: ((status)::text = 'error'::text)
               ->  Bitmap Index Scan on idx_jobs_type  (cost=0.00..4.54 rows=34 width=0) (actual time=0.018..0.019 rows=0 loops=1)
                     Index Cond: ((type)::text = 'migrations'::text)
      
      explain analyze select count(*) from jobs where status='error' and type='migrations';
                                                               QUERY PLAN
      ----------------------------------------------------------------------------------------------------------------------------
      Aggregate  (cost=8.31..8.32 rows=1 width=8) (actual time=0.079..0.080 rows=1 loops=1)
         ->  Index Only Scan using jobs_multi on jobs  (cost=0.29..8.30 rows=1 width=0) (actual time=0.072..0.073 rows=0 loops=1)
               Index Cond: ((status = 'error'::text) AND (type = 'migrations'::text))
               Heap Fetches: 0
      
      explain analyze select * from jobs where status='error' and type='migrations' order by createat desc limit 1;
      ```
      
      Query 2:
      ```
                                                                  QUERY PLAN
      ----------------------------------------------------------------------------------------------------------------------------------
       Limit  (cost=8.31..8.32 rows=1 width=187) (actual time=0.037..0.039 rows=0 loops=1)
         ->  Sort  (cost=8.31..8.32 rows=1 width=187) (actual time=0.035..0.036 rows=0 loops=1)
               Sort Key: createat DESC
               Sort Method: quicksort  Memory: 25kB
               ->  Index Scan using idx_jobs_type on jobs  (cost=0.29..8.30 rows=1 width=187) (actual time=0.027..0.027 rows=0 loops=1)
                     Index Cond: ((type)::text = 'migrations'::text)
                     Filter: ((status)::text = 'error'::text)
      
      explain analyze select * from jobs where status='error' and type='migrations' order by createat desc limit 1;
                                                                QUERY PLAN
      -------------------------------------------------------------------------------------------------------------------------------
       Limit  (cost=8.31..8.32 rows=1 width=187) (actual time=0.065..0.067 rows=0 loops=1)
         ->  Sort  (cost=8.31..8.32 rows=1 width=187) (actual time=0.063..0.064 rows=0 loops=1)
               Sort Key: createat DESC
               Sort Method: quicksort  Memory: 25kB
               ->  Index Scan using jobs_multi on jobs  (cost=0.29..8.30 rows=1 width=187) (actual time=0.021..0.022 rows=0 loops=1)
                     Index Cond: (((status)::text = 'error'::text) AND ((type)::text = 'migrations'::text))
      
      ```
      
      ```release-note
      NONE
      ```
      d9dda9f7
  6. 06 Oct, 2021 6 commits
  7. 05 Oct, 2021 7 commits
  8. 04 Oct, 2021 2 commits
  9. 01 Oct, 2021 3 commits