-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1408 from phac-nml/metadata-uploader-batch-endpoints
Metadata uploader batch endpoints
- Loading branch information
Showing
63 changed files
with
1,565 additions
and
2,095 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file modified
BIN
+38.5 KB
(160%)
doc/user/user/sample-metadata/images/upload-preview-errors.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3.66 KB
(110%)
doc/user/user/sample-metadata/images/upload-preview-success.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 9 additions & 6 deletions
15
src/main/java/ca/corefacility/bioinformatics/irida/model/sample/MetadataTemplateField.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 0 additions & 80 deletions
80
src/main/java/ca/corefacility/bioinformatics/irida/ria/utilities/SampleMetadataStorage.java
This file was deleted.
Oops, something went wrong.
71 changes: 0 additions & 71 deletions
71
...ain/java/ca/corefacility/bioinformatics/irida/ria/utilities/SampleMetadataStorageRow.java
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
...main/java/ca/corefacility/bioinformatics/irida/ria/web/ajax/dto/CreateSampleResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package ca.corefacility.bioinformatics.irida.ria.web.ajax.dto; | ||
|
||
/** | ||
* UI response to create a new sample | ||
*/ | ||
public class CreateSampleResponse extends UpdateSampleResponse { | ||
private Long sampleId; | ||
|
||
public CreateSampleResponse(String errorMessage) { | ||
super(true, errorMessage); | ||
} | ||
|
||
public CreateSampleResponse(Long sampleId) { | ||
super(false); | ||
this.sampleId = sampleId; | ||
} | ||
|
||
public Long getSampleId() { | ||
return sampleId; | ||
} | ||
|
||
public void setSampleId(Long sampleId) { | ||
this.sampleId = sampleId; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
...main/java/ca/corefacility/bioinformatics/irida/ria/web/ajax/dto/UpdateSampleResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package ca.corefacility.bioinformatics.irida.ria.web.ajax.dto; | ||
|
||
/** | ||
* UI response to update an existing sample | ||
*/ | ||
public class UpdateSampleResponse { | ||
private boolean error; | ||
private String errorMessage; | ||
|
||
public UpdateSampleResponse() { | ||
} | ||
|
||
public UpdateSampleResponse(boolean error) { | ||
this.error = error; | ||
} | ||
|
||
public UpdateSampleResponse(boolean error, String errorMessage) { | ||
this.error = error; | ||
this.errorMessage = errorMessage; | ||
} | ||
|
||
public boolean isError() { | ||
return error; | ||
} | ||
|
||
public void setError(boolean error) { | ||
this.error = error; | ||
} | ||
|
||
public String getErrorMessage() { | ||
return errorMessage; | ||
} | ||
|
||
public void setErrorMessage(String errorMessage) { | ||
this.errorMessage = errorMessage; | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...java/ca/corefacility/bioinformatics/irida/ria/web/ajax/dto/ajax/AjaxMultipleResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package ca.corefacility.bioinformatics.irida.ria.web.ajax.dto.ajax; | ||
|
||
import java.util.Map; | ||
|
||
/** | ||
* AJAX response to return multiple responses to the client | ||
*/ | ||
public class AjaxMultipleResponse extends AjaxResponse { | ||
private Map<String, Object> responses; | ||
|
||
public AjaxMultipleResponse(Map<String, Object> responses) { | ||
this.responses = responses; | ||
} | ||
|
||
public Map<String, Object> getResponses() { | ||
return responses; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.