Commit Graph

18 Commits

Author SHA1 Message Date
Sarthak Jain 38af7328a0
Bug fixes in browse workflow table (#2944)
* Bug fixes in browse workflow table

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

* Fixed import order

Signed-off-by: SarthakJain26 <sarthak@chaosnative.com>
2021-06-25 08:19:06 +00:00
Arkajyoti Mukherjee 29e516ec96
Filtered out removed workflows and changed weekly filter to daily (#2929)
* added removed workflows filter in getWorkflowRuns

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

* added removed workflows and workflowruns filters in getWorkflowStats and getWorkflowRunStats

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

* minor UI fixes

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>
2021-06-23 16:52:08 +05:30
Arkajyoti Mukherjee 61603036ed
Adding the various states of experiments in workflow runs (#2914)
* added other experiment states, truncated all percentages to 2 decimal and decoupled workflow metrics with execution data

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

* added stopped experiments to analytics

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

* added workflow_id filter support for getWorkflowRuns API

Signed-off-by: arkajyotiMukherjee <arko@chaosnative.com>
2021-06-21 11:03:20 +05:30
Arkajyoti Mukherjee 89994b15b7
WorkflowRun stats in workflow details page for analytics (#2898)
* Workflow stats completed as an analytics query

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

* Updated few comments

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

* modified logic for failed experiments

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

* fix for weekly data in workflow stats

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

* minor change

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

* formatting change

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

Co-authored-by: SarthakJain26 <sarthak@chaosnative.com>
2021-06-17 11:45:14 +05:30
Saranya Jena 673a368454
Analytics graphs (#2892)
* Added radial chart in analytics

Signed-off-by: Saranya-jena <saranya@chaosnative.com>

* Added backend API for schedule stats

Signed-off-by: Saranya-jena <saranya@chaosnative.com>

* Prepended result and rounded of values for monthly data

Signed-off-by: Saranya-jena <saranya@chaosnative.com>

* Added documentation, filtering for weekly and hourly workflow schedule data

Signed-off-by: Saranya-jena <saranya@chaosnative.com>

* Graph WIP, query added, data format typed and formatting fixed

Signed-off-by: Vansh Bhatia <vansh@chaosnative.com>

* Added frontend integration for schedule stats graph

Signed-off-by: Saranya-jena <saranya@chaosnative.com>

* Backend - Schedule stats bug fixed and Run stats included in the same query

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

* Added frontend integration for run stats graph

Signed-off-by: Saranya-jena <saranya@chaosnative.com>

* resolved merge conflicts

Signed-off-by: Saranya-jena <saranya@chaosnative.com>

* fixed the import error in backend

Signed-off-by: Saranya-jena <saranya@chaosnative.com>

* deleted unused file

Signed-off-by: Saranya-jena <saranya@chaosnative.com>

* Changed the variables' names

Signed-off-by: Saranya-jena <saranya@chaosnative.com>

* Added interfaces from litmus-ui

Signed-off-by: Saranya-jena <saranya@chaosnative.com>

Co-authored-by: Vansh Bhatia <vansh@chaosnative.com>
Co-authored-by: arkajyotiMukherjee <arko@chaosnative.com>
2021-06-14 23:02:00 +05:30
Sarthak Jain ac00e474f3
List workflow optimization (#2882)
* Optimized ListWorkflow query in backend and frontend along with minor style changes

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

* generated go.sum

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

* Added filter to filter out removed workflows

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

* Added condition to check empty workflows

Signed-off-by: SarthakJain26 <sarthak@chaosnative.com>
2021-06-11 13:42:12 +05:30
Amit Kumar Das 81ce01f0df
Added filter for workflow runs and minor fix (#2874)
Signed-off-by: Amit Kumar Das <amit@chaosnative.com>
2021-06-09 22:22:14 +05:30
Raj Babu Das ecc865f690
Adding API for sync and delete workflow (#2869)
* Adding workflow delete and sync option

Signed-off-by: Raj Das <raj@chaosnative.com>

* gofmt and gomod

Signed-off-by: Raj Das <raj@chaosnative.com>

* gofmt and gomod

Signed-off-by: Raj Das <raj@chaosnative.com>

* converting log to logrus

Signed-off-by: Raj Das <raj@chaosnative.com>

* converting log to logrus

Signed-off-by: Raj Das <raj@chaosnative.com>

* Adding isRemoved filter to getWorkflowRun Query

Signed-off-by: Raj Das <raj@chaosnative.com>

* minor change

Signed-off-by: Raj Das <raj@chaosnative.com>

* minor change

Signed-off-by: Raj Das <raj@chaosnative.com>

* minor change

Signed-off-by: Raj Das <raj@chaosnative.com>
2021-06-09 16:24:58 +05:30
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
Soumya Ghosh Dastidar f47ad82485
Backend Enhancements for Portal (#2861)
* added standalone chaosengine support and enhancements

Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com>
2021-06-03 17:21:44 +05:30
Amit Kumar Das 26d5bbb3c3
type(bug-fix): Added kubeobj fix for namespace mode, agent-config fix and isCustomworkflow field for template (#2832)
* Added kubeobj fix for namespace mode, agent-config fix and isCustomworkflow field
* Added authorization for api

Signed-off-by: Amit Kumar Das <amit@chaosnative.com>
2021-05-26 14:28:42 +05:30
Sarthak Jain 7d8a6abb74
Added RBAC for workflows and myhub (#2663)
* Added RBAC for workflows and myhub

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

* Fixed build issue

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

* Replaced string with query in SaveWorkflowTemplate function

Signed-off-by: SarthakJain26 <sarthak@chaosnative.com>
2021-04-08 10:20:07 +00:00
Amit Kumar Das 97c6fadbad
chore(litmus-portal): Added workflow template operations API (#2633)
* Added workflow template operations api

Signed-off-by: Amit Kumar Das <amitkumar.das@mayadata.io>

* Gofmt fix

Signed-off-by: Amit Kumar Das <amit@chaosnative.com>

* Added description field in templates

Signed-off-by: Amit Kumar Das <amit@chaosnative.com>

* Fixed goimports

Signed-off-by: Amit Kumar Das <amit@chaosnative.com>

* Removed uuid2

Signed-off-by: Amit Kumar Das <amit@chaosnative.com>

Co-authored-by: Amit Kumar Das <amitkumar.das@mayadata.io>
2021-04-08 13:01:33 +05:30
Amit Kumar Das 67f4cd3696
Added Kubernetes Objects API with dynamic client (#2625)
* Added Kubernetes Objects API with dynamic client

Signed-off-by: Amit Kumar Das <amitkumar.das@mayadata.io>

* Added request ID

Signed-off-by: Amit Kumar Das <amitkumar.das@mayadata.io>

* Added permissions for namespace

Signed-off-by: Amit Kumar Das <amitkumar.das@mayadata.io>

Co-authored-by: Amit Kumar Das <amitkumar.das@mayadata.io>
2021-04-05 13:25:17 +05:30
VEDANT SHROTRIA 2179f43081
Added backend implementation for Resiliency score calculation and Total experiments passed calculation. (#2627)
* Added function for calculating Resiliency score in backend.

Signed-off-by: Jonsy13 <vedant.shrotria@chaosnative.com>
2021-04-01 14:34:13 +05:30
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
Soumya Ghosh Dastidar 3ea8687872
Added Workflow Re-run feature (#2471)
Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com>
2021-02-25 17:03:23 +05:30
Soumya Ghosh Dastidar 192cbe9f7b
Added GitOps Feature (#2424)
Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com>
2021-02-01 16:58:22 +05:30