To add a new package, run
yarn add packageName
yarn add packageName --dev
First, run the command:
yarn outdated
... to determine which packages may need upgrading.
We really should not upgrade all packages at once, but, one at a time and make darn sure to test.
To upgrade a single package named packageName
:
yarn upgrade packageName
Unit tests can be run via command line with yarn test
, from within the /ui
directory. For more detailed reporting, use yarn test -- --reporters=verbose
.
cloud platform
- From k8s-idpe, start the remocal service with loopback to your local ui changes.
- have your remocal instance build and deployed. See docs here.
make remocal-dev APPS=ui DETACHED=1
- From the ui directory. Build the local dev server:
- set env vars for
PUBLIC
(your remocal url) yarn install && yarn start:dev:remocal
yarn link
different javascript libraries (e.g. giraffe, clockface, flux-lsp) as needed.- note that the flux-lsp wasm build produces an output directory which contains a package.json for the release. Make sure to
yarn link
to this directory.
- note that the flux-lsp wasm build produces an output directory which contains a package.json for the release. Make sure to
- set env vars for
oss platform
- From oss/influxdb repo, start the backend service.
- setup service following the contributing guide.
- run the service, goto browser
localhost:8086
- create a login/password. (Remember these!)
- CAVEAT: influxdb/oss does not have live reload.
- instead, run
make
and restart influxdb
- instead, run
- From the ui directory. Build the local dev server:
yarn install && yarn start:dev:oss
- goto browser
localhost:8080
- the same login/password pair should work.
- CAVEAT: live reload does not work, so you need to refresh the browser page.
cloud platform
- have your local dev running (see above).
export NS=<your-remocal-namespace>
- run cypress test:
yarn test:e2e:remocal
to test on tsm storageyarn test:e2e:remocal:iox
to test on iox storage
oss platform
- have your local dev running (see above).
- Make sure to start your oss backend service with
--e2e-testing
flag.
- Make sure to start your oss backend service with
- run cypress test:
yarn test:e2e:oss
Generating Test Reports
- to run all tests [in series] locally, and generate a report:
yarn test:e2e:<whatever>:report
- e.g.
yarn test:e2e:remocal:report
,yarn test:e2e:remocal:iox:report
,yarn test:e2e:oss:report
- e.g.
- this will run in headless mode, so no browser will be shown. Just a stdout waiting as each test runs.
- WARNING: This takes a long time, unlike CI which runs in parallel.
- after all tests complete, it will automatically open a test result viewer.
- any screenshots or vids will be saved in
cypress/videos
andcypress/screenshots
Oats is how we automatically generate our typescript definitions based open the openapi contract. See here for more details. After one of the yarn generate
scripts are run, the typescript definitions are usually output to ./src/client/
.
Troubleshooting: If your Zuora form isn't rendering or calling your callback function which you passed in client.render
.
When running UI locally using Monitor CI, get Zuora PageID which you are using to render the form. Then, from Zuora admin console, get the Host
and Port
that PageID is corresponding to. Make sure to match those Host
and Port
with your INGRESS_HOST
and PORT_HTTPS
provided in the .env
file of monitor-ci
.