porta-v3 v1.2.2
porta-v3
Date 2021/12/27
Stores and Retrieves Log and Result Data for PortaMetrics
Getting started for developers
Copy
porta-v3.envfrom \motionmetrics.net\i2l\Bamboo_Files\MMPro_Env\I2L-Staging and rename it as .envCopy
.npmrcfrom \motionmetrics.net\i2l\Bamboo_Files\MMPro_Env\I2L-StagingInstall all the dependencies with the command:
npm ciVerify Segmentation-Service-Python is running locally or as a Docker container at
localhost:7199/fmsegmentation/v2/help- If it is not set up on your device, follow the installation steps outlined within the segmentation-service-python repository
Run Unit test
npm test- Compile the typescript to javascript and run lint
npm run-script build- Start the program
npm startRunning Integration Tests
- Copy the
npm-qc-user-credentials.envfrom NAS, and save it to the IntegrationTest folder and rename it as .env Change ROOT_DOMAIN to point to http://localhost:8080, if you are testing it locally.
Repeat Steps in "Getting started for developer" if you haven't done
Run the Integration Test:
npm run-script integration-testRun Docker
- Run the docker command
docker run -it --name "porta-v3" --network host porta-v3Commit Message Format - Angular Convention
(): │ │ │ │ │ └─⫸ Summary in present tense. Not capitalized. No period at the end. │ │ │ └─⫸ Commit Scope: animations|bazel|benchpress|common|compiler|compiler-cli|core| │ elements|forms|http|language-service|localize|platform-browser| │ platform-browser-dynamic|platform-server|router|service-worker| │ upgrade|zone.js|packaging|changelog|docs-infra|migrations| │ devtools │ └─⫸ Commit Type: build|ci|docs|feat|fix|perf|refactor|test see https://github.com/angular/angular/blob/main/CONTRIBUTING.md#-commit-message-format for more details
Alternatively, you can use the module commitizen to help you format the commit message.
1. install commitizen
npm install -g commitizen- making your repo commitizen-friendly
commitizen init cz-conventional-changelog --save-dev --save-exact- commit your changes
Simply use
git czor justczinstead ofgit commitwhen committing. You can also usegit-cz, which is an alias forcz.
git add .
git czsee https://github.com/commitizen/cz-cli for more details
Updating API Doc
Grab the porta-v3.json from
mm-staging-openapi-definitionsS3 bucket in motionmetrics-dev accountUpdate JSON accordingly
Ensure metadata is configured correctly under property
{
Type: User defined,
Key: x-amz-meta-apidoc-access,
Value: edit
}- Upload the updated JSON to
mm-staging-openapi-definitionsin motionmetrics-dev account - Upload the same JSON to
mm-prod-openapi-definitionsin motionmetrics-prod account
Note:
We are currently using Node LTS v16.13.0