Skip to content

Commit 184353d

Browse files
Add support for auditUserComment field for assay import (#71)
1 parent 7440450 commit 184353d

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# The LabKey Remote API Library for Java - Change Log
22

3-
## version 6.2.0-SNAPSHOT
3+
## version TBD
44
*Released*: TBD
5+
* Add support for `auditUserComment` field for assay import
56

6-
## version 6.1.0-SNAPSHOT
7+
## version 6.1.0
78
*Released*: 26 February 2024
89
* [Issue 49238](https://www.labkey.org/home/Developer/issues/issues-details.view?issueId=49238): Fix so all command responses correctly decode as UTF-8.
910
* Add MoveRowsCommand to query

src/org/labkey/remoteapi/assay/ImportRunCommand.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public class ImportRunCommand extends PostCommand<ImportRunResponse>
4040
private String _comment;
4141
private Map<String, Object> _properties;
4242
private Map<String, Object> _batchProperties;
43+
private String _auditUserComment;
4344

4445
// Only one of the follow is allowed
4546
private List<Map<String, Object>> _dataRows;
@@ -116,6 +117,11 @@ public void setPlateMetadata(JSONObject plateMetadata)
116117
_plateMetadata = plateMetadata;
117118
}
118119

120+
public void setAuditUserComment(String auditUserComment)
121+
{
122+
_auditUserComment = auditUserComment;
123+
}
124+
119125
@Override
120126
protected ImportRunResponse createResponse(String text, int status, String contentType, JSONObject json)
121127
{
@@ -157,6 +163,8 @@ protected HttpPost createRequest(URI uri)
157163
json.put("runFilePath", _runFilePath);
158164
if (_plateMetadata != null)
159165
json.put("plateMetadata", _plateMetadata);
166+
if (_auditUserComment != null)
167+
json.put("auditUserComment", _auditUserComment);
160168

161169
builder.addTextBody("json", json.toString(), ContentType.APPLICATION_JSON);
162170
}
@@ -169,6 +177,8 @@ protected HttpPost createRequest(URI uri)
169177
builder.addTextBody("name", _name);
170178
if (_comment != null)
171179
builder.addTextBody("comment", _comment);
180+
if (_auditUserComment != null)
181+
builder.addTextBody("auditUserComment", _auditUserComment);
172182
if (_properties != null)
173183
{
174184
for (Map.Entry<String, Object> entry : _properties.entrySet())

0 commit comments

Comments
 (0)