Skip to content

Commit a236d68

Browse files
authored
Issue 47509: Resolve sample names that are integers during assay data import (#152)
## 1.19.1 - 2023-04-19 - Add the `allowLookupByAlternateKey` param to the `Assay.importRun()` API
1 parent 02b5f29 commit a236d68

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 1.19.1 - 2023-04-19
2+
- Add the `allowLookupByAlternateKey` param to the `Assay.importRun()` API
3+
14
## 1.19.0 - 2023-03-22
25
- Package updates
36
- Extract jest configuration out of `package.json` and into `jest.config.js`.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@labkey/api",
3-
"version": "1.19.0",
3+
"version": "1.19.1",
44
"description": "JavaScript client API for LabKey Server",
55
"scripts": {
66
"build": "npm run build:dist && npm run build:docs",

src/labkey/dom/Assay.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ declare let window: FormWindow;
2323

2424
export interface IImportRunOptions {
2525
allowCrossRunFileInputs?: boolean;
26+
allowLookupByAlternateKey?: boolean;
2627
assayId?: number | string;
2728
batchId?: number | string;
2829
batchProperties?: any;
@@ -108,6 +109,9 @@ export function importRun(options: IImportRunOptions): void {
108109
if (options.workflowTask !== undefined) {
109110
formData.append('workflowTask', options.workflowTask.toString(10));
110111
}
112+
if (options.allowLookupByAlternateKey !== undefined) {
113+
formData.append('allowLookupByAlternateKey', options.allowLookupByAlternateKey ? 'true' : 'false');
114+
}
111115

112116
if (options.properties) {
113117
for (const key in options.properties) {

0 commit comments

Comments
 (0)