Commit Graph

4 Commits

Author SHA1 Message Date
Arkajyoti Mukherjee aa5fe68456
Enhancement: Moving pagination, sorting and filtering of workflow runs table to the backend (#2829)
* added pagination for QueryWorkflowRuns

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>

* filtering workflowRuns based on workflowRunIDs

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>

* changed the API for getWorkflowRuns in frontend

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>

* added pagination for frontend and refactored code to accomodate the changes

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>

* Added Sorting and Filtering

Signed-off-by: SarthakJain26 <sarthak@chaosnative.com>

* sorting added from backend api call

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>

* filtering removed from frontend and used backend APIs to filter data

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>

* typed execution data in backend and sent common metadata from execution data in workflowruns hence reducing the data size in frontend; sorting based on workflowrun phase done in backend

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>

* changing resiliency score to null in case of running workflows

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>

* WIP: filtering and sorting done, pagination remaining

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>

* pagination completed in database

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>

* reverted ID -> String changes

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>

* changed the sortStage

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>

* Added condition to check no workflows

Signed-off-by: SarthakJain26 <sarthak@chaosnative.com>

* Pagination bug fix (#1)

* bug fix trails #1

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>

* reverting local dev changes

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>

* fixed the workflow subscription bugs...EVERYTHING FINALLY WORKS

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>

* removed comments from config

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>

* resolved review comments: translations, formatting and removing binary file

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>

* fixed some bugs and added Execution data to types.go

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>

* go fmt project

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>

Co-authored-by: SarthakJain26 <sarthak@chaosnative.com>
2021-06-07 11:05:45 +05:30
Arkajyoti Mukherjee 91fd200783
Created mongo interface and refactored the database operations [This is preparation to create mock interfaces for unit testing] (#2746)
* added mongo interface; created addtional file for switching between the collections and one for all db CRUD operations

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>

* modified usermanagement and projects with the new mongo structure; made logging and errors and comments consistent

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>

* added the changes for workflow db operations

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>

* added the changes for myHub db operations

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>

* added the changes for gitops db operations

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>

* minor changes for gitops db operations

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>

* added the changes for cluster db operations

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>

* added the changes for analytics db operations and added comments to the operations.go file

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>

* calling the initialize function and instantiating the mongo client

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>

* import order fixed

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>
2021-05-07 22:57:49 +05:30
Soumya Ghosh Dastidar 4db969d3ae
Fixed workflow run update bug (#2600)
Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com>
2021-03-25 03:27:35 +00:00
Ishan Gupta de0418fb2c
(Litmus-Portal) GQL server refractor for database and handlers (#2454)
* Adding datasource and dashboard APIs for analytics / monitoring.

Signed-off-by: ishangupta-ds <ishan.gupta@mayadata.io>

* Fixed formatting.

Signed-off-by: ishangupta-ds <ishan.gupta@mayadata.io>

* GraphQL server refractor

Signed-off-by: ishangupta-ds <ishan.gupta@mayadata.io>

* Refractor after review.

Signed-off-by: ishangupta-ds <ishan.gupta@mayadata.io>

* Minor fixes after review.

Signed-off-by: ishangupta-ds <ishan.gupta@mayadata.io>

* Sorted imports.

Signed-off-by: ishangupta-ds <ishan.gupta@mayadata.io>

* Reverting frontend changes.

Signed-off-by: ishangupta-ds <ishan.gupta@mayadata.io>

* code analysis fix.

Signed-off-by: ishangupta-ds <ishan.gupta@mayadata.io>

* minor fix

Signed-off-by: ishangupta-ds <ishan.gupta@mayadata.io>

* Changes after review.

Signed-off-by: ishangupta-ds <ishan.gupta@mayadata.io>

* Codacy fixes.

Signed-off-by: ishangupta-ds <ishan.gupta@mayadata.io>
2021-02-25 19:53:21 +05:30