Skip to content

Commit 48d0540

Browse files
authored
merge release/6.2 (#2712)
1 parent 07d90cd commit 48d0540

287 files changed

Lines changed: 9438 additions & 4386 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Npm Build Script
2+
description: Installs dependencies and builds project with npm
3+
inputs:
4+
working_directory:
5+
description: Working directory to run build commands in
6+
required: true
7+
build_script:
8+
description: Build script in package.json to run
9+
required: false
10+
default: build
11+
version:
12+
description: Version to set in package.json
13+
required: false
14+
default: ""
15+
node_version:
16+
description: Version of nodejs to build with
17+
required: false
18+
default: 18
19+
runs:
20+
using: composite
21+
steps:
22+
- uses: tw3lveparsecs/github-actions-setvars@v0.1
23+
- uses: actions/setup-node@v3
24+
with:
25+
node-version: ${{ inputs.node_version }}
26+
check-latest: true
27+
- name: Set Version
28+
shell: bash
29+
working-directory: ${{ inputs.working_directory }}
30+
run: |
31+
if [ -n "$INPUT_VERSION" ]; then
32+
npm version ${{ inputs.version }} --allow-same-version
33+
fi
34+
- shell: bash
35+
working-directory: ${{ inputs.working_directory }}
36+
run: npm ci
37+
- shell: bash
38+
working-directory: ${{ inputs.working_directory }}
39+
run: npm run ${{ inputs.build_script }}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Get Dev Version
2+
description: Appends commit sha to the version number
3+
inputs:
4+
dir:
5+
description: Directory that package.json is in
6+
required: true
7+
outputs:
8+
version:
9+
description: Version string for dev
10+
value: ${{ steps.get-version.outputs.version }}
11+
runs:
12+
using: composite
13+
steps:
14+
- id: get-version
15+
shell: bash
16+
run: |
17+
VERSION=$(jq -r '.version' ${{ inputs.dir }}/package.json)
18+
echo "::set-output name=version::$VERSION-${GITHUB_SHA:0:7}"

.github/pr-labeler-config.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/auto-merge-dependabot.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

.husky/pre-commit

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33

44
npx lint-staged
55

6-
# Testing Frontend
6+
# Typecheck Frontend
77
cd frontend
8-
npm run test
9-
cd ..
8+
npm run typecheck
109

11-
# Testing Backend Upgrade
12-
cd backend/packages/Upgrade
13-
npm start typecheck && npm test
10+
# Typecheck Backend Upgrade
11+
cd ../backend/packages/Upgrade
12+
npm start typecheck

.jenkins/projectBuilder.Jenkinsfile

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ projectBuilderV5 (
6060
githubCheck: '${projectName} npm ci --no-audit',
6161
log: '${projectName}-npm-ci.log'
6262
],
63+
[
64+
script: 'npm run test',
65+
githubCheck: "upgrade-frontend-test",
66+
log: "upgrade-frontend-test.log"
67+
],
6368
[
6469
script: 'npm run prebuild:project',
6570
log: 'env-pre-build.log',
@@ -80,6 +85,28 @@ projectBuilderV5 (
8085
"dev",
8186
"release/.*"
8287
]
88+
],
89+
"upgrade-backend-tests": [
90+
artifactType: "codeartifact",
91+
versioning: "none",
92+
projectDir: "backend",
93+
runInProjectDir: true,
94+
skipArtifactUpload: true,
95+
dependencies: ["types"],
96+
fileFilter: [
97+
include: ["backend/packages/Upgrade/.*"]
98+
],
99+
buildScripts: [
100+
[
101+
script: 'npm run install:upgrade',
102+
log: '${projectName}-npm-ci.log'
103+
],
104+
[
105+
script: 'npm run test:upgrade-unit',
106+
githubCheck: '${projectName} test',
107+
log: '${projectName}-test.log'
108+
]
109+
]
83110
],
84111
"scheduler-lambda": [
85112
artifactType: "s3",
@@ -163,5 +190,22 @@ projectBuilderV5 (
163190
]
164191
]
165192
],
193+
],
194+
prChecks: [
195+
"checks": [
196+
"lint": [
197+
buildScripts: [
198+
[
199+
script: 'npm ci --no-audit',
200+
log: 'npm-ci.log'
201+
],
202+
[
203+
script: 'npm run lint',
204+
githubCheck: 'lint',
205+
log: 'lint.log'
206+
]
207+
]
208+
]
209+
]
166210
]
167211
)

CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,34 @@
1+
UpGrade 6.2 Release Notes
2+
3+
Primarily bug fixes, enhancements, and vulnerable dependency updates
4+
5+
UI:
6+
- Universally trims text inputs to avoid subtle bugs with unseen spaces or characters
7+
- Improved UX in paginated / search / filtering on experiment page
8+
- Improved consistency in UI elements / messages
9+
- Revised Mooclet TS_Configurable "reward metric" displays
10+
11+
Backend:
12+
- Adds "batch assign" feature for querying multipe users' conditions
13+
- Fixes erroneous "competing decision point" assignments in some complex scenarios
14+
- Improved Metrics query performance
15+
- Fixed CSV export functionality so UI does not wait and accidentally cancel a long-running query
16+
- The algorithm for searching through sub-segments had been capped, it can now handle any depth of nested sub-segments
17+
- Tightening up of several API error-handling and validation cases
18+
19+
Within-Subjects feature:
20+
- New `repeated-enrollment` db table necessary for performant future support
21+
- Fixed data exports
22+
23+
DB changes (backwards compatible, no impact should be noticed):
24+
- Migration needed to add `repeated-enrollment` table
25+
- Migration for 'Draft' status enum added to support future experiment UI refresh
26+
27+
Client Libraries:
28+
- Newest TS and Java clients will "cache" assign and feature flag responses by default, with option to ignore cache and force refetch
29+
- Java client will now require context in the constructor instead of in the getAllExperimentCondtions method
30+
- Backwards compatible, not required to update (but encouraged!)
31+
132
UpGrade 6.1 Release Notes
233

334
Segments Refresh:

backend/Dockerrun.aws.json

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
{
2-
"AWSEBDockerrunVersion": "1",
3-
"Ports": [
4-
{
5-
"ContainerPort": "3030"
6-
}
7-
],
8-
"Volumes": [],
9-
"Logging": "/var/log/eb-activity.log"
10-
}
11-
2+
"AWSEBDockerrunVersion": "1",
3+
"Ports": [
4+
{
5+
"ContainerPort": "3030"
6+
}
7+
],
8+
"Volumes": [],
9+
"Logging": "/var/log/eb-activity.log"
10+
}

backend/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
{
22
"name": "ab_testing_backend",
3-
"version": "6.1.0",
3+
"version": "6.2.0",
44
"description": "Backend for A/B Testing Project",
55
"scripts": {
66
"install:all": "npm ci && cd packages/Scheduler && npm ci && cd ../Upgrade && npm ci",
7+
"install:upgrade": "npm ci --no-audit && cd packages/Upgrade && npm ci --no-audit",
78
"production:upgrade": "cd packages/Upgrade && npm run production",
89
"build:upgrade": "cd packages/Upgrade && npm run build",
910
"test:upgrade": "cd packages/Upgrade && npm run test",
11+
"test:upgrade-unit": "cd packages/Upgrade && npm run test:unit",
1012
"dockerConfig": "ts-node --transpile-only ./commands/dockerrun.ts",
1113
"deploy:schedule": "cd packages/Scheduler && npm run deploy"
1214
},
@@ -20,4 +22,4 @@
2022
"tslib": "^1.11.1",
2123
"typescript": "^3.8.3"
2224
}
23-
}
25+
}

0 commit comments

Comments
 (0)