@spinnaker/kayenta 1.0.5 → 2.1.0-rc1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/.github/workflows/ci-branch.yml +73 -0
  2. package/.github/workflows/publish_lib_test.yml +26 -0
  3. package/.husky/pre-commit +6 -0
  4. package/.lintstagedrc.json +4 -0
  5. package/build/dist/index-6aa5a1a4.js +2 -0
  6. package/build/dist/index-6aa5a1a4.js.map +1 -0
  7. package/build/dist/index.d.ts +1 -0
  8. package/build/dist/index.d.ts.map +1 -1
  9. package/build/dist/index.js +1 -38
  10. package/build/dist/index.js.map +1 -1
  11. package/build/dist/kayenta/canary.dataSource.bridge.d.ts +2 -0
  12. package/build/dist/kayenta/canary.dataSource.bridge.d.ts.map +1 -0
  13. package/build/dist/kayenta/canary.dataSource.stub.d.ts +9 -0
  14. package/build/dist/kayenta/canary.dataSource.stub.d.ts.map +1 -0
  15. package/build/dist/kayenta/edit/copyConfigButton.d.ts +1 -1
  16. package/build/dist/kayenta/edit/createConfigButton.d.ts +1 -1
  17. package/build/dist/kayenta/index.d.ts +0 -1
  18. package/build/dist/kayenta/index.d.ts.map +1 -1
  19. package/build/dist/kayenta/navigation/canary.states.d.ts +5 -1
  20. package/build/dist/kayenta/navigation/canary.states.d.ts.map +1 -1
  21. package/build/dist/kayenta/navigation/canary.states.stub.d.ts +4 -0
  22. package/build/dist/kayenta/navigation/canary.states.stub.d.ts.map +1 -0
  23. package/build/dist/kayenta/report/detail/graph/metricSetPairGraph.service.d.ts +1 -1
  24. package/build/dist/kayenta/report/detail/graph/metricSetPairGraph.service.d.ts.map +1 -1
  25. package/build/dist/kayenta/report/detail/graph/semiotic/index.d.ts.map +1 -1
  26. package/build/dist/kayenta/stages/kayentaStage/kayentaStage.d.ts +28 -1
  27. package/build/dist/kayenta/stages/kayentaStage/kayentaStage.d.ts.map +1 -1
  28. package/build/dist/kayenta/stages/kayentaStage/kayentaStage.transformer.d.ts +0 -1
  29. package/build/dist/kayenta/stages/kayentaStage/kayentaStage.transformer.d.ts.map +1 -1
  30. package/build/dist/lazy-94b6420d.js +2 -0
  31. package/build/dist/lazy-94b6420d.js.map +1 -0
  32. package/build/dist/lazy.d.ts +6 -0
  33. package/build/dist/lazy.d.ts.map +1 -0
  34. package/build/dist/semioticGraph-a9ade595.js +2 -0
  35. package/build/dist/semioticGraph-a9ade595.js.map +1 -0
  36. package/build/dist/stub.d.ts +15 -0
  37. package/build/dist/stub.d.ts.map +1 -0
  38. package/package.json +19 -16
  39. package/rollup.config.js +2 -0
  40. package/src/index.ts +1 -0
  41. package/src/kayenta/canary.dataSource.bridge.ts +53 -0
  42. package/src/kayenta/canary.dataSource.stub.ts +64 -0
  43. package/src/kayenta/index.ts +0 -1
  44. package/src/kayenta/navigation/canary.states.stub.ts +28 -0
  45. package/src/kayenta/navigation/canary.states.ts +158 -166
  46. package/src/kayenta/report/detail/graph/metricSetPairGraph.service.ts +1 -1
  47. package/src/kayenta/report/detail/graph/semiotic/index.tsx +19 -0
  48. package/src/kayenta/stages/kayentaStage/kayentaStage.transformer.ts +0 -4
  49. package/src/kayenta/stages/kayentaStage/kayentaStage.ts +150 -178
  50. package/src/lazy.ts +29 -0
  51. package/src/stub.ts +60 -0
  52. package/build/dist/kayenta/canary.dataSource.d.ts +0 -2
  53. package/build/dist/kayenta/canary.dataSource.d.ts.map +0 -1
  54. package/build/dist/kayenta/canary.module.d.ts +0 -5
  55. package/build/dist/kayenta/canary.module.d.ts.map +0 -1
  56. package/build/dist/kayenta/components/components.module.d.ts +0 -2
  57. package/build/dist/kayenta/components/components.module.d.ts.map +0 -1
  58. package/build/dist/kayenta/stages/stages.module.d.ts +0 -2
  59. package/build/dist/kayenta/stages/stages.module.d.ts.map +0 -1
  60. package/src/kayenta/canary.dataSource.ts +0 -131
  61. package/src/kayenta/canary.module.ts +0 -20
  62. package/src/kayenta/components/components.module.ts +0 -7
  63. package/src/kayenta/report/detail/graph/semiotic/index.ts +0 -10
  64. package/src/kayenta/stages/stages.module.ts +0 -6
@@ -0,0 +1,73 @@
1
+ name: Feature Branch Build
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - bump-version-plugin-system
7
+
8
+ env:
9
+ NODE_VERSION: 12.16.0
10
+
11
+ jobs:
12
+ ci:
13
+ # Meta-job that depends on the other job statuses. Branch protection then checks this job status.
14
+ name: Kayenta CI
15
+ if: startsWith(github.repository, 'spinnaker/')
16
+ needs: [test, build]
17
+ runs-on: ubuntu-latest
18
+ steps:
19
+ - run: echo test, build successful
20
+
21
+ test:
22
+ name: Unit tests
23
+ runs-on: ubuntu-latest
24
+ steps:
25
+ - uses: actions/checkout@v2
26
+
27
+ - uses: actions/setup-node@v1
28
+ with:
29
+ node-version: ${{ env.NODE_VERSION }}
30
+
31
+ - name: Get yarn cache
32
+ id: yarn-cache
33
+ run: echo "::set-output name=dir::$(yarn cache dir)"
34
+
35
+ - uses: actions/cache@v1
36
+ with:
37
+ path: ${{ steps.yarn-cache.outputs.dir }}
38
+ key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
39
+ restore-keys: |
40
+ ${{ runner.os }}-yarn-
41
+
42
+ - name: Install Dependencies
43
+ run: yarn --frozen-lockfile
44
+
45
+ - name: Unit Tests
46
+ run: yarn test
47
+
48
+ build:
49
+ name: Production Build
50
+ runs-on: ubuntu-latest
51
+ steps:
52
+ - uses: actions/checkout@v2
53
+
54
+ - uses: actions/setup-node@v1
55
+ with:
56
+ node-version: ${{ env.NODE_VERSION }}
57
+
58
+ - name: Get yarn cache
59
+ id: yarn-cache
60
+ run: echo "::set-output name=dir::$(yarn cache dir)"
61
+
62
+ - uses: actions/cache@v1
63
+ with:
64
+ path: ${{ steps.yarn-cache.outputs.dir }}
65
+ key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
66
+ restore-keys: |
67
+ ${{ runner.os }}-yarn-
68
+
69
+ - name: Install Dependencies
70
+ run: yarn --frozen-lockfile
71
+
72
+ - name: Yarn Build
73
+ run: yarn build
@@ -0,0 +1,26 @@
1
+ name: Publish to NPM
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - 'bump-version-plugin-system'
7
+ paths:
8
+ - 'package.json'
9
+
10
+ jobs:
11
+ build:
12
+ runs-on: ubuntu-latest
13
+
14
+ steps:
15
+ - uses: actions/checkout@v1
16
+ - name: Use Node.js 12.16.0
17
+ uses: actions/setup-node@v1
18
+ with:
19
+ node-version: 12.16.0
20
+ - name: publish
21
+ run: |
22
+ npm config set //registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN
23
+ build_scripts/publish_github_actions.sh
24
+ env:
25
+ CI: true
26
+ NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env bash
2
+ # CHECK THIS FILE INTO SOURCE CONTROL!
3
+
4
+ . "$(dirname "$0")/_/husky.sh"
5
+
6
+ [[ -e deck-kayenta/node_modules/.bin/lint-staged ]] && cd deck-kayenta; ./node_modules/.bin/lint-staged -p false
@@ -0,0 +1,4 @@
1
+ {
2
+ "src/**/*.{js,jsx,ts,tsx}": ["eslint --fix", "prettier --write"],
3
+ "src/**/*.{css,less,html}": "prettier --write"
4
+ }