Skip to content

Commit

Permalink
moving commits from litmus-portal to master (#1872)
Browse files Browse the repository at this point in the history
* Moving commits from litmus-portal-dev branch to litmus-portal (#1689)

* added litmus-portal base code for frontend and backend, also modified the gitignore files of both projects to be a common file (#1588)

Signed-off-by: arkajyotiMukherjee <arkajyoti31@gmail.com>

* Litmus portal dev (#1592)

* added the loginpage, hompage, reliablity scores page and the custom components

Signed-off-by: amityt <amitkumar.das@mayadata.io>

* Added dummy routes to check loginpage and homepage

Signed-off-by: amityt <amitkumar.das@mayadata.io>

* Added icons for loginpage and homepage

Signed-off-by: amityt <amitkumar.das@mayadata.io>

* Added Sidebar (#1595)

* Added sidebar

Signed-off-by: Saranya-jena <saranyajena29@yahoo.com>

* Minor corrections

Signed-off-by: Saranya-jena <saranyajena29@yahoo.com>

* minor css changes

Signed-off-by: Saranya-jena <saranyajena29@yahoo.com>

* Adding graphql server to litmus portal

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

* minor fix

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

* CI/CD Setup

Signed-off-by: gdsoumya <gdsoumya@gmail.com>

* CI/CD Setup

Signed-off-by: gdsoumya <gdsoumya@gmail.com>

* Updated the Makefile

Signed-off-by: gdsoumya <gdsoumya@gmail.com>

* Adding push script to Makefile (#1602)

Signed-off-by: Raj Das <raj.das@mayadata.io>
Adding push script to Makefile

* Changes made according to the base layout and added new components (#1603)

* added the loginpage, hompage, reliablity scores page and the custom components

Signed-off-by: amityt <amitkumar.das@mayadata.io>

* Added dummy routes to check loginpage and homepage

Signed-off-by: amityt <amitkumar.das@mayadata.io>

* Added icons for loginpage and homepage

Signed-off-by: amityt <amitkumar.das@mayadata.io>

* Added the custom back and next button

Signed-off-by: amityt <amitkumar.das@mayadata.io>

* Made changes according to base layout and created few separate components

Signed-off-by: amityt <amitkumar.das@mayadata.io>

* Added ToggleButton for pass/fail and Customized linear progressbar

Signed-off-by: amityt <amitkumar.das@mayadata.io>

* minor css changes

Signed-off-by: amityt <amitkumar.das@mayadata.io>

* Added the new icons and updated the sidebar and homepage

Signed-off-by: amityt <amitkumar.das@mayadata.io>

* Changes made in custom modal

Signed-off-by: amityt <amitkumar.das@mayadata.io>

* Adding graphql subscriber client to the litmus-agent (#1606)

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

* chore(litmus-portal): Adding workflow Cluster and Modal (#1593)

* Workflow cluster and Finish Modal

Signed-off-by: Oum kale <oum.kale@mayadata.io>

* chore(litmus-portal): Adding Dockerfile for subscriber client and adding dockerops to Makfile (#1617)

* Adding dockerfile for the subscriber client

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

* Added linting with eslint, prettier, airbnb SG and typescript; added scripts for linting and formatting; added husky and precommit hooks; formated all components to the new SG (#1633)

Signed-off-by: arkajyotiMukherjee <arkajyoti.mukherjee@mayadata.io>

* chore(litmusportal): Modifying bettercodehub for the litmusportal (#1646)

* Modifying bettercodehub for the litmusportal

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

* Adding k8s-manifest for the litmusportal (#1644)

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

* Added Better CI (#1657)

* Added Better CI

Signed-off-by: gdsoumya <gdsoumya@gmail.com>

* initial commit building auth server (#1653)

Signed-off-by: Sanjay Nathani <sanjay.nathani@mayadata.io>

* Spacing, custom slider fixes and addition of tooltips in workflow screens. (#1651)

* Fixed spacing issues and removed extra inline styling
Signed-off-by: amityt <amitkumar.das@mayadata.io>

* Added verify and commit screen (#1639)

* Added verify and commit screen

Signed-off-by: Saranya-jena <saranyajena29@yahoo.com>

* updated(Community Page): Created Basic Community Layout and updated InfoFilled Component + Modified formatCount Utility (#1649)

Signed-off-by: Sayan Mondal <sayan.mondal@mayadata.io>

* Adding mongodb manifest (#1663)

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

* docker ops related to authentication submodule (#1662)

Signed-off-by: Sanjay Nathani <sanjay.nathani@mayadata.io>

* chore(litmus-portal): Modifying circleci manifest and formatting litmus portal auth (#1669)

* Modifying circleci and Makefile

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

* [CodeFactor] Apply fixes (#1675)

Co-authored-by: codefactor-io <support@codefactor.io>

* Authdeploy (#1674)

* Modifying k8s manifest

Signed-off-by: Sanjay Nathani <sanjay.nathani@mayadata.io>

Co-authored-by: Arkajyoti Mukherjee <32966391+arkajyotiMukherjee@users.noreply.github.com>
Co-authored-by: Amit Kumar Das <40661238+amityt@users.noreply.github.com>
Co-authored-by: Saranya-jena <Saranya.jena@mayadata.io>
Co-authored-by: Soumya Ghosh Dastidar <44349253+gdsoumya@users.noreply.github.com>
Co-authored-by: gdsoumya <gdsoumya@gmail.com>
Co-authored-by: OUM NIVRATHI KALE <oum.kale@mayadata.io>
Co-authored-by: Sanjay Nathani <50315249+Sanjay1611@users.noreply.github.com>
Co-authored-by: Sayan Mondal <sayan.mondal@mayadata.io>
Co-authored-by: codefactor-io[bot] <47775046+codefactor-io[bot]@users.noreply.github.com>
Co-authored-by: codefactor-io <support@codefactor.io>

* chore(litmus-portal): Adding redux setup for the frontend (#1699)

Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com>

* (feat auth): Redirection and Namespace (#1698)

* minor bug fix related to redirect issue

Signed-off-by: Sanjay Nathani <sanjay.nathani@mayadata.io>

* Welcome Modal and workflow issues fixed (#1697)

Signed-off-by: Oum Kale <oum.kale@mayadata.io>

* Updating details filled in jwt token (#1704)

Signed-off-by: Sanjay Nathani <sanjay.nathani@mayadata.io>

* chore(litmus-portal): Updating the loginpage and homepage (#1705)

* Updated the loginpage and homepage

Signed-off-by: amityt <amitkumar.das@mayadata.io>

* Updated redux for GeoCountry Data (#1712)

Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com>

* Updated Nginx Config (#1703)

Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com>

* chore(litmus-portal): Added description in loginpage (#1714)

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

* chore(litmus-portal): City wise Users Geo Map and Country Wise Users Geo Map - Community Page (#1719)

* City wise Users Geo Map and Country Wise Users Geo Map

Signed-off-by: Oum Nivrathi kale <oum.kale@mayadata.io>

* chore(litmus-portal): added(Cypress Unit Test + Recent Workflow Components), Passed VS Failed, Custom Stepper(Updated), Semi Circular Progress Indicator (#1710)

* added(Cypress Unit Test + Recent Workflow Components): Passed VS Failed, Custom Stepper(Updated), Semi-Circular Progress Indicator

Signed-off-by: Sayan Mondal <sayan.mondal@mayadata.io>

* (litmus-portal): Added header and related components. (#1723)

* Added header and related components.

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

* handling cors error (#1726)

Signed-off-by: Sanjay Nathani <sanjay.nathani@mayadata.io>

* handling cors issue for errors (#1727)

Signed-off-by: Sanjay Nathani <sanjay.nathani@mayadata.io>

* Modifying README.md (#1738)

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

* chore(litmus-portal): Auth integration (#1731)

* User Redux Setup and Lock file Update

Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com>

* User Redux Setup and Lock file Update

Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com>

* Auth Integration Complete

Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com>

* Updated Community Endpoint

Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com>

* Update cookies.ts

* Update PasswordModal.tsx

* chore(litmus-portal): Refactoring components + added routes to homepage and blog (#1737)

* Refactoring components + added routes to homepage and blog

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

* Adding litmus namespace to k8s-manifest and fixing the readme (#1739)

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

* Modal refactoring (#1740)

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

* adding default username and password in readme (#1742)

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

* Added time-series plots with minor redux update for integration. (#1746)

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

* chore(litmus-portal): Code refactoring (#1744)

* fixed rendering issue in city maps and other minor fixes

Signed-off-by: arkajyotiMukherjee <arkajyoti.mukherjee@mayadata.io>

* removed unnecessary files

Signed-off-by: arkajyotiMukherjee <arkajyoti.mukherjee@mayadata.io>

* now login page shows error with wrong credentials; some lint config change for ternary operators and changes themes file (code reorganization)

Signed-off-by: arkajyotiMukherjee <arkajyoti.mukherjee@mayadata.io>

* refactored maps, login page and other small chnages in components

Signed-off-by: arkajyotiMukherjee <arkajyoti.mukherjee@mayadata.io>

* plots are centered and binary switch has rem values

Signed-off-by: arkajyotiMukherjee <arkajyoti.mukherjee@mayadata.io>

* chore(litmus-portal): Fixed the switcher in Reliability Page, added changes in LoginPage Components and made some important refactors (#1750)

* Fixed the switcher bug in Result Modal

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

* chore(litmus-portal): Adding agent to litmus portal's subscriber and few more changes to IGC (#1758)

* Adding agent to litmus portal's subscriber and few more changes to IGC

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

* chore(litmus-portal): Community Page and Time Series Plot Refractor. (#1759)

* Community Page and Time Series Plot Refractor.

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

* chore(litmus-portal): Modified Welcome Modal and Refactored InputField (#1776)

* Updated Welcome Modal

Signed-off-by: Sayan Mondal <sayan.mondal@mayadata.io>

* Workflow cluster Refactoring (#1754)

Signed-off-by: Oum Nivrathi kale <oum.kale@mayadata.io>

* chore(litmus-portal): Added Self-Deployer (#1779)

* Addeing self-Deployer microservice

Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com>

* using gin-gonic and input json (#1766)

* using gin-gonic and input json

Signed-off-by: Sanjay Nathani <sanjay.nathani@mayadata.io>

* changed login post req from formdata to json

Signed-off-by: arkajyotiMukherjee <arkajyoti.mukherjee@mayadata.io>

* updating dependencies

Signed-off-by: Sanjay Nathani <sanjay.nathani@mayadata.io>

Co-authored-by: arkajyotiMukherjee <arkajyoti.mukherjee@mayadata.io>

* Added the GraphQL Schema for Code Generation. (#1794)

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

* chore(litmus-portal): Header and BreadCrumbs Refractor. (#1760)

* Header and BreadCrumbs Refractor

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

* chore(litmus-portal): Updated GQL Sever (#1771)

* Updated GQL Sever to handle Cluster-Registration

Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com>

* Adding members approval to 2 (#1796)

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

* Refactoring agent to use graphql server directly (#1782)

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

* fixing auth mongo connection

Signed-off-by: Sanjay Nathani <sanjay.nathani@mayadata.io>

* CSS changes (#1798)

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

* Button issue Fixed (#1805)

Signed-off-by: Oum Nivrathi kale <oum.kale@mayadata.io>

* chore(litmus-portal): ChooseWorkflow Screen with required models and actions. (#1810)

* ChooseWorkflow Screen with required models and actions.

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

* chore(litmus-portal): added setup for gql query, subscription and in-memory cache (#1820)

* added setup for gql query, subscription and in-memory cache

Signed-off-by: arkajyotiMukherjee <arkajyoti.mukherjee@mayadata.io>

* chore(litmus-portal): Tune workflow screen and workflow page integration. (#1812)

* Tune workflow screen and workflow page integration.

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

* Refactoring graphql-server (#1815)

Changes-
1. Changing GetCluster function to use findOne operation instead of find
2. Generalize some function
3. Refactor the directory structure.
4. Changing the name of some env variable to some meaningful names
5. Generating resolvers for the Workflow schema
6. Adding a function to instantiate stateData struct 
    ref- https://github.com/litmuschaos/litmus/blob/litmus-portal/litmus-portal/backend/graphql-server/pkg/data-store/store.go#L10
7. Separating mongodb struct from gql struct.
8. Making UpdateCluster and UpdateClusterData more generic.

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

* Minox Fix for Cypress and Refactored the unit tests. (#1831)

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

* Updated Welcome Modal(Auth + JSON body) (#1835)

Signed-off-by: Sayan Mondal <sayan.mondal@mayadata.io>

* Account settings (#1832)

* updated repo

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

* chore(litmus-portal): Design Refactoring + Cypress Code Coverage Fix (#1808)

* Design Refactoring + Workflow Chart Added + Cypress Code Coverage Fix

Signed-off-by: Sayan Mondal <sayan.mondal@mayadata.io>

* Removed the unused dependencies. (#1836)

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

* chore(litmus-portal): Added Workflow Agent Operations to GQL Server (#1841)

* Added GQL Operations for Workflow Agent

Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com>

* ESLint Refactor + Removed babel-eslint + Updated prettier settings (#1855)

Modified ESLint and changed the envs, removed babel-eslint since we are using @typescript-eslint/parser already, updated prettier config to accommodate code and comment upto 100 lines now.

Signed-off-by: Sayan Mondal <sayan.mondal@mayadata.io>

* (litmus-portal): Adding chaosworkflowAPI to GQL server and few more refactors (#1856)

Adding ChaosWorkflowAPI
Adding ArgoCRDs and controller to subscriber manifest

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

* State management of Workflow Scheduling Screens and Some Refactoring done.  (#1859)

* State management of Workflow scheduling screens and some refactoring added.

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

* Refactored the unit tests for refactored components.

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

* Some minor changes done.

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

Co-authored-by: Ishan Gupta <ishan.gupta@mayadata.io>
Co-authored-by: Saranya Jena <Saranya.jena@mayadata.io>

* Typo fix in FinishModal (#1860)

Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>

* Adding get cluster details api (#1863)

- Adding get cluster details GQL API
- Schema addition of getCluster query

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

* chore(litmus-portal): usermanagement functionality  (#1866)

This PR consists of the following changes
- update password
- logout functionality
- resets password
Signed-off-by: Sanjay Nathani <sanjay.nathani@mayadata.io>

* (feat usermanagement): Usermanage (#1865)

* project ans user API

Signed-off-by: Sanjay Nathani <sanjay.nathani@mayadata.io>

* removing unneeded schemas

Signed-off-by: Sanjay Nathani <sanjay.nathani@mayadata.io>

* chore(litmus-portal): Workflow dashboard layout and a separate route for create workflow (#1844)

Added the workflow dashboard layout, workflow table and a separate route for creating a workflow.
Signed-off-by: Amit Kumar Das <amitkumar.das@mayadata.io>

* chore(litmus-portal): Added Workflow Agent  (#1818)

- Adding Workflow Agent
- Workflow Agent updates the GQL server about the workflow runs

Signed-off-by: Soumya Ghosh Dastidar <gdsoumya@gmail.com>

* Rebasing litmus portal from master (#1868)

* (chore): update schematic representation of litmus arch (#1589)

* (chore): update schematic representation of litmus arch

Signed-off-by: ksatchit <karthik.s@mayadata.io>

* (refactor)demo: add an updated demo video

Signed-off-by: ksatchit <karthik.s@mayadata.io>

* (chore)governance: update maintainer email IDs (#1599)

Signed-off-by: ksatchit <karthik.s@mayadata.io>

* (chore)content: add folder to discuss chaos engg (#1619)

Signed-off-by: ksatchit <karthik.s@mayadata.io>

* Update the backlog in Roadmap with IO-Chaos

* Stopped CircleCi Build for master branch (#1625)

* Stopped CircleCi Build for master

Signed-off-by: gdsoumya <gdsoumya@gmail.com>

* Update config.yml

* Update config.yml

* Update config.yml

* Update config.yml

* Update config.yml

* (chore)roadmap: add backlog item on chaos workflows for application benchmarks (#1626)

Signed-off-by: ksatchit <karthik.s@mayadata.io>

* Adding cncf sandbox logo in README.md (#1600)

* Adding cncf sandbox logo in README.md

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

* Adding CNCF  main logo

* Minor fix

* Update README.md

* (chore)ci: inhibit push of ansible-runner image from litmus (#1660)

Signed-off-by: ksatchit <karthik.s@mayadata.io>

* (chore)releases: update releases doc (#1683)

Signed-off-by: ksatchit <karthik.s@mayadata.io>

* fix:- Community Slack url redirection to kubernetes slack litmus (#1696)

Signed-off-by: ashishjain <ashish.jain@mayadata.io>

* Added slack and youtube badges and fixed a typo in community resources section in README (#1711)

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

* Change multiple line Heading into Single one (#1716)

* Readme minor change

Signed-off-by: ajeshbaby <ajesh.baby@mayadata.io>

* Readme minor change

Signed-off-by: ajeshbaby <ajesh.baby@mayadata.io>

* Readme minor change

Signed-off-by: ajeshbaby <ajesh.baby@mayadata.io>

* (chore)releases: update release doc (#1747)

Signed-off-by: ksatchit <karthik.s@mayadata.io>

* Copy docs folder from pages repository to litmus as part of pages repository deprecation (#1681)

* Copy docs folder from pages repository to litmus

Signed-off-by: Jasstkn <jasssstkn@yahoo.com>

* Change company for Maria Kotlyarevskaya (#1777)

Signed-off-by: Jasstkn <jasssstkn@yahoo.com>

* Sync litmus docs folder  with pages docs folder (#1778)

* Sync litmus docs folder  with pages docs folder

Signed-off-by: Jasstkn <jasssstkn@yahoo.com>

* Update index.html

Co-authored-by: Karthik Satchitanand <karthik.s@mayadata.io>

* Set theme jekyll-theme-cayman

* Remove pages repo from litmus (#1781)

Signed-off-by: Jasstkn <jasssstkn@yahoo.com>

* (chore)demo: add a demo application for litmus (#1784)

Signed-off-by: ksatchit <karthik.s@mayadata.io>

* Added code changes for cluster and service use cases on chaostoolkit (#1795)

* Changes for chaostoolkit

* (refactor): unset  app instance specific env

Signed-off-by: ksatchit <karthik.s@mayadata.io>

* added k8 library

* rename to right folder as chaostoolkit

* restructure the files to align for chaostoolkit

* Added support for Reporting

* organised the cluster and service level chaos

Signed-off-by: Sumit Nagal <sumit_nagal@intuit.com>

Co-authored-by: ksatchit <karthik.s@mayadata.io>

* feat(admin-rbac): Adding node update permission in admin-rbac (#1804)

Signed-off-by: shubhamchaudhary <shubham.chaudhary@mayadata.io>

* update(crd): updating crds and add namespaced scope superset rbac (#1819)

Signed-off-by: shubhamchaudhary <shubham.chaudhary@mayadata.io>

* update(crd): updating crds and add namespaced scope superset rbac (#1827)

Signed-off-by: shubhamchaudhary <shubham.chaudhary@mayadata.io>

* (chore)manifests: update litmus deploy manifests for 1.6.2 (#1829)

Signed-off-by: ksatchit <karthik.s@mayadata.io>

* Refactoring PR template (#1833)

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

* Update README.md (#1840)

Minor updates to the README

* Update Readme  (#1854)

* Update README.md

* (chore)cleanup: remove experiment traces from litmus repo (#1867)

Signed-off-by: ksatchit <karthik.s@mayadata.io>

* Adding push script (#1869)

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

Co-authored-by: Karthik Satchitanand <karthik.s@mayadata.io>
Co-authored-by: Uma Mukkara <uma@mayadata.io>
Co-authored-by: Soumya Ghosh Dastidar <44349253+gdsoumya@users.noreply.github.com>
Co-authored-by: Ashish Jain <ashishjainjnp18@gmail.com>
Co-authored-by: Amit Kumar Das <40661238+amityt@users.noreply.github.com>
Co-authored-by: Ajesh Baby <ajesh.baby@mayadata.io>
Co-authored-by: Maria Kotlyarevskaya <jasssstkn@yahoo.com>
Co-authored-by: sumit Nagal <sumit_nagal@intuit.com>
Co-authored-by: Shubham Chaudhary <shubham.chaudhary@mayadata.io>
Co-authored-by: prithvi1307 <52114109+prithvi1307@users.noreply.github.com>

* multi stage docker build (#1870)

Signed-off-by: Sanjay Nathani <sanjay.nathani@mayadata.io>

* [CodeFactor] Apply fixes

* Minor fix to the k8s-manifest(#1873)

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

* User management (#1839)

* comment improvements

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

* Added user management tab

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

* Code improvements

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

* minor changes

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

* mutation string for create user

Signed-off-by: Sanjay Nathani <sanjay.nathani@mayadata.io>

* Added GET_USER Modal check

Signed-off-by: Sayan Mondal <sayan.mondal@mayadata.io>

* backend integration

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

* backend integration

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

* Updated use Effect hook call in Homepage

Signed-off-by: Sayan Mondal <sayan.mondal@mayadata.io>

* Backend integration of create,edit,login and fetch user details

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

* minor modifications

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

* minor change

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

* minor change

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

* minor additions

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

Co-authored-by: Sanjay Nathani <sanjay.nathani@mayadata.io>
Co-authored-by: Sayan Mondal <sayan.mondal@mayadata.io>
Co-authored-by: Soumya Ghosh Dastidar <44349253+gdsoumya@users.noreply.github.com>

Co-authored-by: Arkajyoti Mukherjee <32966391+arkajyotiMukherjee@users.noreply.github.com>
Co-authored-by: Amit Kumar Das <40661238+amityt@users.noreply.github.com>
Co-authored-by: Saranya-jena <Saranya.jena@mayadata.io>
Co-authored-by: Soumya Ghosh Dastidar <44349253+gdsoumya@users.noreply.github.com>
Co-authored-by: gdsoumya <gdsoumya@gmail.com>
Co-authored-by: OUM NIVRATHI KALE <oum.kale@mayadata.io>
Co-authored-by: Sanjay Nathani <50315249+Sanjay1611@users.noreply.github.com>
Co-authored-by: Sayan Mondal <sayan.mondal@mayadata.io>
Co-authored-by: Ishan Gupta <ishan.gupta@mayadata.io>
Co-authored-by: arkajyotiMukherjee <arkajyoti.mukherjee@mayadata.io>
Co-authored-by: VEDANT SHROTRIA <40681425+Jonsy13@users.noreply.github.com>
Co-authored-by: Sanjay Nathani <sanjay.nathani@mayadata.io>
Co-authored-by: Karthik Satchitanand <karthik.s@mayadata.io>
Co-authored-by: Uma Mukkara <uma@mayadata.io>
Co-authored-by: Ashish Jain <ashishjainjnp18@gmail.com>
Co-authored-by: Ajesh Baby <ajesh.baby@mayadata.io>
Co-authored-by: Maria Kotlyarevskaya <jasssstkn@yahoo.com>
Co-authored-by: sumit Nagal <sumit_nagal@intuit.com>
Co-authored-by: prithvi1307 <52114109+prithvi1307@users.noreply.github.com>
  • Loading branch information
20 people committed Aug 15, 2020
1 parent c96024c commit 352f8c6
Show file tree
Hide file tree
Showing 339 changed files with 65,089 additions and 7 deletions.
146 changes: 146 additions & 0 deletions .betterci/ci-k8s-manifest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: litmusportal-frontend
labels:
component: litmusportal-frontend
spec:
replicas: 1
selector:
matchLabels:
component: litmusportal-frontend
template:
metadata:
labels:
component: litmusportal-frontend
spec:
containers:
- name: litmusportal-frontend
image: #{portal-frontend}
imagePullPolicy: Always
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: litmusportal-frontend-service
spec:
type: NodePort
ports:
- name: http
port: 9091
targetPort: 80
selector:
component: litmusportal-frontend
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: litmusportal-server
labels:
component: litmusportal-server
spec:
replicas: 1
selector:
matchLabels:
component: litmusportal-server
template:
metadata:
labels:
component: litmusportal-server
spec:
containers:
- name: graphql-server
image: #{portal-server}
env:
- name: DB_SERVER
value: mongo-service:27017
- name: JWT_SECRET
value: "12345678"
- name: EXTERNAL_ADDRESS
value: ""
- name: SERVICE_ADDRESS
value: litmusportal-server-service:8080
ports:
- containerPort: 8080
imagePullPolicy: Always
- name: auth-server
image: #{auth-server}
ports:
- containerPort: 3000
imagePullPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
name: litmusportal-server-service
spec:
type: NodePort
ports:
- name: graphql-server
port: 9002
targetPort: 8080
- name: auth-server
port: 9003
targetPort: 3000
selector:
component: litmusportal-server
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: mongo
labels:
app: mongo
spec:
replicas: 1
selector:
matchLabels:
component: database
template:
metadata:
labels:
component: database
spec:
containers:
- name: mongo
image: mongo:4.2.8
ports:
- containerPort: 27017
imagePullPolicy: Always
volumeMounts:
- name: mongo-persistent-storage
mountPath: /data/db
volumes:
- name: mongo-persistent-storage
persistentVolumeClaim:
claimName: mongo-pv-claim
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: mongo-pv-claim
labels:
app: mongo
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 20Gi
---
apiVersion: v1
kind: Service
metadata:
labels:
app: mongo
name: mongo-service
spec:
ports:
- port: 27017
targetPort: 27017
selector:
component: database
---
20 changes: 20 additions & 0 deletions .betterci/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"cmd":["echo betterci"],
"build":[{
"name":"portal-frontend",
"file":"litmus-portal/frontend/Dockerfile",
"context":"litmus-portal/frontend",
"push": true
},{
"name":"portal-server",
"file":"litmus-portal/backend/graphql-server/build/Dockerfile",
"context":"litmus-portal/backend/graphql-server",
"push":true
},{
"name":"auth-server",
"file":"litmus-portal/backend/auth/Dockerfile",
"context":"litmus-portal/backend/auth",
"push":true
}],
"k8s-manifest":".betterci/ci-k8s-manifest.yml"
}
2 changes: 2 additions & 0 deletions .bettercodehub.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
component_depth: 2
languages:
- go
- typescript
exclude:
- /build/plugins/.*
- /build/utils/.*
- /litmus-portal/backend/graphql-server/graph/generated/.*
test:
include:
- /contribute/developer_guide/test_*\.py
17 changes: 11 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
version: 2
version: 2.1
jobs:
build:
branches:
ignore:
- master
machine: true
machine:
image: circleci/classic:latest
working_directory: ~/go/src/github.com/litmuschaos/litmus
environment:
HOME: /home/circleci
GO111MODULE: "on"
steps:
- run: echo "hello"
- checkout
# build and push the application image
- run: |
cd litmus-portal && make all
1 change: 1 addition & 0 deletions .github/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ blockingLabels:
rules:
- minApprovals:
OWNER: 1
MEMBER: 2
- requiredLabels:
- merge
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,19 @@
.DS_Store
.idea
.vscode
.nyc_output
__pycache__/
**/node_modules/
**/cypress/videos/
**/cypress/screenshots/
**/.nyc_output/
**/coverage/

main
out/
vendor/
_vendor-*
tmp/
.env
litmus-portal-service
litmus-portal-app
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@ Community Resources:
<br>
<a href="https://landscape.cncf.io/selected=litmus">
CNCF Landscape <img src="https://landscape.cncf.io/images/left-logo.svg" alt="Litmus on CNCF Landscape" height="15">
</a>
</a>
108 changes: 108 additions & 0 deletions litmus-portal/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
# Makefile for building Litmus Portal
# Reference Guide - https://www.gnu.org/software/make/manual/make.html

#
# Internal variables or constants.
# NOTE - These will be executed when any make target is invoked.
#
IS_DOCKER_INSTALLED = $(shell which docker >> /dev/null 2>&1; echo $$?)

#docker info
REPONAME ?= litmuschaos
GRAPHQL_SERVER_IMAGE ?= litmusportal-server
AUTHENTICATION_SERVER_IMAGE ?= litmusportal-auth-server
FRONTEND_IMAGE ?= litmusportal-frontend
SUBSCRIBER_IMAGE ?= litmusportal-subscriber
SELF_DEPLOYER_IMAGE ?= litmusportal-self-deployer
IMGTAG ?= ci

.PHONY: all
all: deps litmus-portal-check litmus-portal-test build push

.PHONY: help
help:
@echo ""
@echo "Usage:-"
@echo "\tmake all -- [default] builds the litmus containers"
@echo ""

.PHONY: deps
deps: _build_check_docker

_build_check_docker:
@echo "------------------"
@echo "--> Check the Docker deps"
@echo "------------------"
@if [ $(IS_DOCKER_INSTALLED) -eq 1 ]; \
then echo "" \
&& echo "ERROR:\tdocker is not installed. Please install it before build." \
&& echo "" \
&& exit 1; \
fi;

.PHONY: build
build: litmus-portal-build

litmus-portal-build:
@echo "------------------"
@echo "--> Build frontend and backend images"
@echo "------------------"
docker build ./frontend -f frontend/Dockerfile -t $(REPONAME)/$(FRONTEND_IMAGE):$(IMGTAG)
docker build ./backend/graphql-server -f backend/graphql-server/build/Dockerfile -t $(REPONAME)/$(GRAPHQL_SERVER_IMAGE):$(IMGTAG)
docker build ./backend/auth -f backend/auth/Dockerfile -t $(REPONAME)/$(AUTHENTICATION_SERVER_IMAGE):$(IMGTAG)
docker build ./backend/subscriber -f backend/subscriber/build/Dockerfile -t $(REPONAME)/$(SUBSCRIBER_IMAGE):$(IMGTAG)
docker build ./backend/self-deployer -f backend/self-deployer/build/Dockerfile -t $(REPONAME)/$(SELF_DEPLOYER_IMAGE):$(IMGTAG)

.PHONY: push
push: litmus-portal-push

litmus-portal-push:
@echo "------------------"
@echo "--> Push frontend and backend images"
@echo "------------------"
REPONAME=$(REPONAME) IMGNAME=$(FRONTEND_IMAGE) IMGTAG=$(IMGTAG) bash ../hack/push
REPONAME=$(REPONAME) IMGNAME=$(GRAPHQL_SERVER_IMAGE) IMGTAG=$(IMGTAG) bash ../hack/push
REPONAME=$(REPONAME) IMGNAME=$(SUBSCRIBER_IMAGE) IMGTAG=$(IMGTAG) bash ../hack/push
REPONAME=$(REPONAME) IMGNAME=$(AUTHENTICATION_SERVER_IMAGE) IMGTAG=$(IMGTAG) bash ../hack/push
REPONAME=$(REPONAME) IMGNAME=$(SELF_DEPLOYER_IMAGE) IMGTAG=$(IMGTAG) bash ../hack/push


.PHONY: litmus-portal-check
litmus-portal-check : lint-checks unused-package-check

lint-checks:
@echo "------------------"
@echo "--> checking code style"
@echo "------------------"
@fmtRes=$$(gofmt -d $$(find . -path ./vendor -prune -o -name '*.go' -print)); \
if [ -n "$${fmtRes}" ]; then \
echo "gofmt checking failed!"; echo "$${fmtRes}"; echo; \
echo "Please ensure you are using $$($(GO) version) for formatting code."; \
fi

unused-package-check:
@echo "------------------"
@echo "--> Check litmus-portal backend [go mod tidy]"
@echo "------------------"
@tidyRes=$$(cd backend/graphql-server && go mod tidy); \
if [ -n "$${tidyRes}" ]; then \
echo "go mod tidy checking failed!"; echo "$${tidyRes}"; echo; \
echo "Please ensure you are using $$($(GO) version) for formatting code."; \
fi
@echo "------------------"
@echo "--> Check litmus-portal auth [go mod tidy]"
@echo "------------------"
@tidyRes=$$(cd backend/auth && go mod tidy); \
if [ -n "$${tidyRes}" ]; then \
echo "go mod tidy checking failed!"; echo "$${tidyRes}"; echo; \
echo "Please ensure you are using $$($(GO) version) for formatting code."; \
fi

.PHONY: litmus-portal-test
litmus-portal-test : frontend-unit-test

frontend-unit-test:
@echo "------------------"
@echo "--> Frontend Unit Test"
@echo "------------------"
cd ./frontend && npm i && npx cypress run
Loading

0 comments on commit 352f8c6

Please sign in to comment.