Commit Graph

41 Commits

Author SHA1 Message Date
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
Ishan Gupta ac79879512
(analytics): Backend updates for Application dashboard CRUD v2 (#2889)
* Updating backend for analytics/monitoring app. dashboard CRUD-v2

Signed-off-by: ishangupta-ds <ishan@chaosnative.com>

* Updating agent RBAC for pods, services and nodes.

Signed-off-by: ishangupta-ds <ishan@chaosnative.com>

* Fixing codacy issues.

Signed-off-by: ishangupta-ds <ishan@chaosnative.com>

* minor typo fix along with condition

Signed-off-by: ishangupta-ds <ishan@chaosnative.com>

* Fixed codacy issue

Signed-off-by: ishangupta-ds <ishan@chaosnative.com>
2021-06-14 13:40:14 +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
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
Amit Kumar Das fcdfecf8a1
chore(litmus-portal): Added pre-defined workflows in myhub and minor bug fix (#2837)
* Added pre-defined experiments in myhub and bug fix
* Minor change in query name

Signed-off-by: Amit Kumar Das <amit@chaosnative.com>
2021-05-27 11:21:20 +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
Ishan Gupta 81a9747458
(Portal - Analytics/Monitoring): Adding APIs for fetching series list and (label, values), in-memory caching, concurrent requests & moving data pre-processing pipeline. (#2780)
* Adding in memory cache, error handling, data filtering and validation, api for fetching labels and values for a prometheus series.

Signed-off-by: ishangupta-ds <ishan@chaosnative.com>

* minor fix

Signed-off-by: ishangupta-ds <ishan@chaosnative.com>

* minor fix

Signed-off-by: ishangupta-ds <ishan@chaosnative.com>

* minor fix

Signed-off-by: ishangupta-ds <ishan@chaosnative.com>

* minor fix

Signed-off-by: ishangupta-ds <ishan@chaosnative.com>

* minor fixes

Signed-off-by: ishangupta-ds <ishan@chaosnative.com>

* adding seriesList API

Signed-off-by: ishangupta-ds <ishan@chaosnative.com>

* Timestamps converted to float64

Signed-off-by: ishangupta-ds <ishan@chaosnative.com>

* minor update for response schema

Signed-off-by: ishangupta-ds <ishan@chaosnative.com>

* normalised schema and changed cache file directory

Signed-off-by: ishangupta-ds <ishan@chaosnative.com>
2021-05-12 14:09:08 +00:00
Raj Babu Das b961fc0330
Adding image registry graphql APIs (Create, Get, Delete, Update, List) (#2774)
* Adding image registry apis

Signed-off-by: Raj Das <mail.rajdas@gmail.com>

* Adding image registry apis

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

* Adding image registry apis

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

* goimport fix

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

* minor fix

Signed-off-by: Raj Das <raj@chaosnative.com>
2021-05-12 02:47:42 +05:30
Sarthak Jain fdce7b296c
Gitops rbac (#2776)
* Added RBAC for Gitops

Signed-off-by: SarthakJain26 <sarthak@chaosnative.com>
2021-05-11 16:21:08 +05:30
Amit Kumar Das e10716d4ba
chore(litmus-portal): Updated workflow generation logic and added predefined myhub api (#2773)
* Updated workflow generation logic and added predefined myhub apis
* Minor lint change
* Minor change
* Added eslint disable
* Changed the logic for revert chaos

Signed-off-by: Amit Kumar Das <amit@chaosnative.com>
2021-05-11 16:15:19 +05:30
Sarthak Jain c0929ba277
Added mutation to update project name (#2719)
* Added mutation to update project name

Signed-off-by: SarthakJain26 <sarthak@chaosnative.com>
2021-04-20 09:39:50 +05:30
Raj Babu Das aa328a1093
Adding {Ingress, ClusterIP, LoadBalancer} support for connecting external agent to the server (#2598)
* Adding ingress support for generating server endpoint

Signed-off-by: Raj Das <mail.rajdas@gmail.com>

* Updating getEndpoint function logic

Signed-off-by: Raj Das <mail.rajdas@gmail.com>

* Changes

Signed-off-by: Raj Das <mail.rajdas@gmail.com>

* Adding env

Signed-off-by: Raj Das <mail.rajdas@gmail.com>

* Adding env

Signed-off-by: Raj Das <mail.rajdas@gmail.com>

* refactored ingress-url

Signed-off-by: Raj Das <mail.rajdas@gmail.com>

* changing path split logic

Signed-off-by: Raj Das <mail.rajdas@gmail.com>

* changing to switch condition

Signed-off-by: Raj Das <mail.rajdas@gmail.com>

* adding ingress edge condition

Signed-off-by: Raj Das <mail.rajdas@gmail.com>

* Adding /query path

Signed-off-by: Raj Das <mail.rajdas@gmail.com>

* Adding path to subscriber connection query

Signed-off-by: Raj Das <mail.rajdas@gmail.com>
2021-04-12 20:17:49 +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
Sarthak Jain 43d0e02810
RBAC for teaming (backend) (#2656)
* Initial rbac setup

Signed-off-by: SarthakJain26 <sarthak@chaosnative.com>
2021-04-08 10:52:35 +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
Saranya Jena 5d96de0e19
Added CreateProject GQL mutation in Backend and UI (#2563)
* Added create-project query in backend and frontend

Signed-off-by: Saranya-jena <saranya.jena@mayadata.io>

* Fixed the formatting issues in go code

Signed-off-by: Saranya-jena <saranya.jena@mayadata.io>

* WIP:Login pages

Signed-off-by: Saranya-jena <saranya.jena@mayadata.io>

* Added MUI textFields in Login pages, added loader

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

* Login page and onBoarding buttons fixed

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

* Improved formatting

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

* Welcome modal removed

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

* Added review changes

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

Co-authored-by: Vansh Bhatia <vansh@chaosnative.com>
2021-03-26 21:11:22 +05:30
Soumya Ghosh Dastidar ebd3e11c1e Added edit git config feature and fixed authserver no role bug
Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com>
2021-03-04 14:26:32 +05:30
Sarthak Jain 59d30dce07
Added LeaveProject mutation and ListProjects query (#7)
Signed-off-by: SarthakJain26 <sarthak.jain@mayadata.io>
2021-03-02 12:40:12 +05:30
Raj Das 2ebd7e91fc Adding UID and Role to /login response and refactoring in createUser GQL API
Signed-off-by: Raj Das <mail.rajdas@gmail.com>
2021-03-01 12:40:33 +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 f3ce7052c4
Added Query to get GitOps details (#2463)
Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com>
2021-02-24 14:01:46 +05:30
Ishan Gupta e14e2a0dac
(Litmus-Portal): Adding datasource and dashboard APIs for analytics / monitoring. (#2439)
* 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>

* Directory restructure after review

Signed-off-by: ishangupta-ds <ishan.gupta@mayadata.io>
2021-02-19 00:49:25 +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
Amit Kumar Das 8c7b862441 Updated the directory structure of MyHub
Signed-off-by: Amit Kumar Das <amitkumar.das@mayadata.io>
2021-01-27 09:28:04 +05:30
Amit Kumar Das a01b3a5696 Minor change and added rest api for private hub images
Signed-off-by: Amit Kumar Das <amitkumar.das@mayadata.io>
2021-01-18 17:42:57 +05:30
Amit Kumar Das b9cf1bad41 Added curd operation and private hub support in myhub
Signed-off-by: Amit Kumar Das <amitkumar.das@mayadata.io>
2021-01-11 18:31:37 +05:30
Amit Kumar Das a94ad9f58f
Migrated MyHub from users collection to MyHub collection (#2337)
* Migrated myhub from users collection to myhub collection

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

* Updated go-routine and default hub and some changes.

Signed-off-by: Vedant Shrotria <vedant.shrotria@mayadata.io>

* Minor fix

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

* Removed unnecessary prints

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

* Added updated at and created at in myhub

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

Co-authored-by: Vedant Shrotria <vedant.shrotria@mayadata.io>
2020-11-12 17:48:47 +05:30
Raj Babu Das 31aa5d9e3e
Adding delete cluster mutation (#2319)
* Adding delete cluster mutation

Signed-off-by: Raj Babu Das <raj.das@mayadata.io>

* Resolve merge conflict

Signed-off-by: Raj Babu Das <raj.das@mayadata.io>

* Resolve merge conflict

Signed-off-by: Raj Babu Das <raj.das@mayadata.io>
2020-11-06 20:45:03 +05:30
Raj Babu Das b8cade0b6a
chore(litmus-portal): Adding update workflow operation to graphql server (#2327)
* Adding workflow update

Signed-off-by: Raj Babu Das <raj.das@mayadata.io>

* changes in operations.go

Signed-off-by: Raj Babu Das <raj.das@mayadata.io>

* Adding update permission

Signed-off-by: Raj Babu Das <raj.das@mayadata.io>

* changes in operations.go

Signed-off-by: Raj Babu Das <raj.das@mayadata.io>

* Reeusing chaosworkflowInput for update workflow schema

Signed-off-by: Raj Babu Das <raj.das@mayadata.io>
2020-11-06 20:06:59 +05:30
VEDANT SHROTRIA a3b52b017e
Added API Endpoint for fetching yamls for Engine/Experiment/RBAC. (#2324)
* Added Endpoints for experiment yamls.

Signed-off-by: Vedant Shrotria <vedant.shrotria@mayadata.io>

* Added support for default public hub.

Signed-off-by: Vedant Shrotria <vedant.shrotria@mayadata.io>

* Added error handling

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

Co-authored-by: Amit Kumar Das <amitkumar.das@mayadata.io>
2020-11-06 19:54:32 +05:30
Raj Babu Das d2ecb9112b
Enhancing workflow delete operation (#2326)
* Enhancing workflow delete operation

Signed-off-by: Raj Babu Das <raj.das@mayadata.io>

* Adding delete permission

Signed-off-by: Raj Babu Das <raj.das@mayadata.io>
2020-11-06 00:27:12 +05:30
VEDANT SHROTRIA 69fdb6424a
Added Endpoints for Hub Status and Repository resync support. (#2299)
* Codebase refactored.

Signed-off-by: Vedant Shrotria <vedant.shrotria@mayadata.io>

* Added endpoint for hub status

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

* Updated the schema with consistent names and added resyncing support for hubs.

Signed-off-by: Vedant Shrotria <vedant.shrotria@mayadata.io>

* Removed check for default branch.

Signed-off-by: Vedant Shrotria <vedant.shrotria@mayadata.io>

* Removed logs.

Signed-off-by: Vedant Shrotria <vedant.shrotria@mayadata.io>

* Required changes done.

Signed-off-by: Vedant Shrotria <vedant.shrotria@mayadata.io>

Co-authored-by: Amit Kumar Das <amitkumar.das@mayadata.io>
2020-10-29 18:53:34 +05:30
VEDANT SHROTRIA cc1ca7b14b
Added Backend Implementation for My Hub and required graphql endpoints. (#2291)
- Backend Implementation for My Hub.
- GitHub Clone feature for My Hub.
- Graphql endpoints for charts and experiment details.

Signed-off-by: Vedant Shrotria <vedant.shrotria@mayadata.io>
Co-authored-by: Amit Kumar Das <amitkumar.das@mayadata.io>
2020-10-27 11:07:58 +05:30
Saranya Jena ff4ffc308c
(feat Teaming): Cancel invite, Remove member, Resend Invitation (#2126)
* Implemented remove member, cancel invite and resend invitation feature

Signed-off-by: Saranya-jena <saranya.jena@mayadata.io>

* minor change

Signed-off-by: Saranya-jena <saranya.jena@mayadata.io>
2020-10-08 11:06:20 +05:30
Raj Babu Das 1590212fc8
Adding no of workflow and schedules in getCluster query (#2197)
* Adding no of workflow and schedules in getCluster graphql query

Signed-off-by: Raj Babu Das <raj.das@mayadata.io>
2020-10-06 23:53:02 +05:30
Raj Babu Das 131cb3e19e
Adding clusterid and clustername response in UserClusterReg Mutation (#2184)
* Adding clusterid and clustername response in UserClusterReg Mutation

Signed-off-by: Raj Babu Das <raj.das@mayadata.io>
2020-10-06 23:22:03 +05:30
Raj Babu Das a05689b6a4
GQL Mutation for getWorkflows (Workflows + Workflowruns) (#2105)
* GQL Mutation for ListWorkflowsByIDs

Signed-off-by: Raj Babu Das <raj.das@mayadata.io>
2020-09-29 10:15:06 +05:30
Raj Babu Das 15beb32e1b
Graphql-server directory restructuring. (#2043)
* Restructuring graphql server

Signed-off-by: Raj Babu Das <raj.das@mayadata.io>
2020-09-14 13:28:27 +05:30