Skip to content

Commit

Permalink
Merge branch 'dev' into bugfix/enrollmentDate-issue-2099
Browse files Browse the repository at this point in the history
  • Loading branch information
zackcl authored Dec 6, 2024
2 parents 009e05e + 753a085 commit 5bc1f6e
Show file tree
Hide file tree
Showing 32 changed files with 2,840 additions and 4,639 deletions.
3 changes: 3 additions & 0 deletions .jenkins/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Jenkins Documentation

- [Upgrade Frontend and Backend Documentation](https://carnegielearning.atlassian.net/wiki/spaces/RP/pages/3937402881/Jenkins)
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,6 @@ For an overview of the UpGrade platform, please visit [UpGrade Platform](https:/

![Built with Science](http://ForTheBadge.com/images/badges/built-with-science.svg)

## Jenkins Documentation

- [Upgrade Frontend and Backend Documentation](https://carnegielearning.atlassian.net/wiki/spaces/RP/pages/3937402881/Jenkins)
3,614 changes: 617 additions & 2,997 deletions backend/packages/Scheduler/package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions backend/packages/Scheduler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@types/aws-lambda": "^8.10.17",
"@types/jsonwebtoken": "^8.3.9",
"@types/node": "^10.17.20",
"@types/node-fetch": "^2.5.7",
"@types/node-fetch": "^2.6.12",
"eslint": "^8.27.0",
"fork-ts-checker-webpack-plugin": "^8.0.0",
"prettier": "^2.7.1",
Expand All @@ -34,4 +34,4 @@
},
"author": "The serverless webpack authors (https://github.com/elastic-coders/serverless-webpack)",
"license": "MIT"
}
}
2 changes: 1 addition & 1 deletion backend/packages/Scheduler/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"lib": ["es2017", "dom"],
"removeComments": true,
"moduleResolution": "node",
"noUnusedLocals": true,
// "noUnusedLocals": true,
"noUnusedParameters": true,
"sourceMap": true,
"target": "es2017",
Expand Down
1,484 changes: 742 additions & 742 deletions backend/packages/Upgrade/package-lock.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export class LogRepository extends Repository<Log> {
type: IMetricMetaData;
}>
> {
const experimentRepo = Container.getCustomRepository(ExperimentRepository);
const experimentRepo = Container.getCustomRepository(ExperimentRepository, 'export');
return experimentRepo
.createQueryBuilder('experiment')
.select([
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import utc from 'dayjs/plugin/utc';
import timezone from 'dayjs/plugin/timezone';
import { ExperimentService } from './ExperimentService';
import { QueryService } from './QueryService';
import { HttpError } from '../errors';
import { HttpError } from 'routing-controllers';

dayjs.extend(utc);
dayjs.extend(timezone);
Expand Down
17 changes: 10 additions & 7 deletions clientlibs/js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ Please see https://upgrade-platform.gitbook.io/docs/developer-guide/reference/cl

## Installation

`npm i upgrade_client_lib@4.1.7`
`npm i upgrade_client_lib@6.0.7`

## Usage

See [`quicktest.ts`](https://github.com/CarnegieLearningWeb/UpGrade/blob/release/6.0/clientlibs/js/quickTest.ts) to see basic in executable form to play around with: `npm run quicktest`

---
**`Example`**

```typescript
Expand All @@ -20,7 +23,7 @@ import UpgradeClient from 'upgrade_client_lib/dist/node';

General UpGrade types can also be accessed as named exports:
```typescript
import UpgradeClient, { IExperimentAssignment } from 'upgrade_client_lib/dist/browser';
import UpgradeClient, { Assignment } from 'upgrade_client_lib/dist/browser';
```

SDK-Specific types can be accessed also:
Expand Down Expand Up @@ -97,20 +100,20 @@ const upgradeClient: UpgradeClient[] = new UpgradeClient(hostURL, userId, contex

### getAllExperimentConditions

**getAllExperimentConditions**(): `Promise`<`IExperimentAssignmentv4`[]\>
**getAllExperimentConditions**(): `Promise`<`IExperimentAssignment5`[]\>

Will return all the experiment conditions for the user.
Internally this uses the `context` and `userId` to query conditions for all eligible decision points at enrolling experiments for this user.

**`Example`**

```typescript
const allExperimentConditionsResponse: IExperimentAssignmentv4[] = await upgradeClient.getAllExperimentConditions(workingGroup);
const allExperimentConditionsResponse: IExperimentAssignmentv5[] = await upgradeClient.getAllExperimentConditions(workingGroup);
```

#### Returns

`Promise`<`IExperimentAssignmentv4`[]\>
`Promise`<`IExperimentAssignmentv5`[]\>

#### Defined in

Expand All @@ -129,7 +132,7 @@ NOTE ALSO: If getAllExperimentConditions() has been called, this will return the
**`Example`**

```typescript
const allExperimentConditionsResponse: IExperimentAssignmentv4[] = await upgradeClient.getAllExperimentConditions(workingGroup);
const allExperimentConditionsResponse: IExperimentAssignmentv5[] = await upgradeClient.getAllExperimentConditions(workingGroup);
```

#### Parameters
Expand Down Expand Up @@ -349,7 +352,7 @@ const status: MARKED_DECISION_POINT_STATUS = MARKED_DECISION_POINT_STATUS.CONDIT
const target = 'experimental button'; // optional
const clientError = 'variant not recognized'; //optional

const allExperimentConditionsResponse: IExperimentAssignmentv4[] = await upgradeClient.markExperimentPoint(site, condition, MARKED_DECISION_POINT_STATUS.CONDITION_APPLIED, target, clientError);
const allExperimentConditionsResponse: IExperimentAssignment5[] = await upgradeClient.markExperimentPoint(site, condition, MARKED_DECISION_POINT_STATUS.CONDITION_APPLIED, target, clientError);
```

#### Parameters
Expand Down
Loading

0 comments on commit 5bc1f6e

Please sign in to comment.