Johannes Batzill 65c59d0b5b [MISC] Fix review bugs, regenerate swagger from latest service, fix webhook.has_secret in swagger (#198)
This change contains the following changes:
- allow submitting reviews without comment for approve
- fix openapi for /reviews api and fix UI calls for submitting reviews
- fix recently broken openapi for webhook (it removed has_secret field as part of openapi refactor)
- fix fatal submit review bug (we passed repo.UID not repo.GitUID to gitrpc - not sure how that ever worked?)
- add missing merge pr activity to list of all pr activity enum values
- return all PR states by default
- show Open PRs by default (instead of all) and fix state filtering query
- regenerate code services based on latest swagger
- fix UI code to work with regenerated code service
2023-01-12 22:39:38 -08:00
..
2022-08-09 12:37:37 -07:00
2023-01-11 08:44:50 -08:00
2022-08-09 12:37:37 -07:00
2022-08-09 12:37:37 -07:00
2022-08-09 12:37:37 -07:00
2022-11-14 13:08:28 +01:00
2022-08-09 12:37:37 -07:00
2022-08-09 12:37:37 -07:00
2022-08-09 12:37:37 -07:00
2022-08-09 12:37:37 -07:00
2022-12-22 15:06:56 -08:00

Sample Module UI

Prerequisites

yarn setup-github-registry

Local development

Change current directory to policy-mgmt project folder and run API server:

APP_ENABLE_UI=false APP_ENABLE_STANDALONE=true APP_TOKEN_JWT_SECRET=1234 APP_INTERNAL_TOKEN_JWT_SECRET=5678 APP_HTTP_BIND=localhost:3001 go run main.go server

Run the UI as a standalone app

yarn
yarn dev

Wait until Webpack build is done, then access http://localhost:3002/#/signin.

Note that you can point standalone UI app to a non-local backend service by creating a .env (under web or project folder) with content looks like:

TARGET_LOCALHOST=false
BASE_URL=https://qa.harness.io/gateway

Run the UI as a micro-frontend service

Due to an issue with Webpack (reason still unknown), you can't mount micro-frontend app inside NextGen UI when it's being run under Webpack development mode (aka yarn dev). To overcome the issue, run:

yarn
yarn micro:watch

The micro front-end UI will be served under http://localhost:3000. Run Core UI locally and navigate to the app within NextGen UI.

Build

UI build is integrated a a part of the backend build. See .drone.yml and Taskfile.yml for more information.