Skip to content

Commit 9c1209f

Browse files
committed
Increase the limit for batch queries
1 parent 4adb2be commit 9c1209f

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/containers/SequenceSearch/components/Results/index.jsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Results extends React.Component {
1616
}
1717

1818
onSeeResults(e) {
19-
if (e.target.value === 'Select a job ID'){
19+
if (e.target.value === 'Select an Id to check the results'){
2020
store.dispatch(actionCreators.onClearJobId());
2121
} else {
2222
store.dispatch(actionCreators.onClearResult());
@@ -56,14 +56,15 @@ class Results extends React.Component {
5656
this.props.jobList && this.props.jobList.length > 0 && (
5757
<div>
5858
<div className="small-12 columns">
59+
<small>{this.props.jobList.length} sequences were submitted. </small>
5960
<CSVLink data={Object.entries(this.props.jobList)} filename={"job-ids.csv"}>
6061
<small>Download the Ids</small>
6162
</CSVLink>
62-
<small> for future reference</small>
63+
<small> for future reference.</small>
6364
</div>
6465
<div className="small-12 columns">
6566
<select onChange={this.onSeeResults}>
66-
<option key={'no-job-selected'}>Select a job ID</option>
67+
<option key={'no-job-selected'}>Select an Id to check the results</option>
6768
{this.props.jobList.map((job) => <option key={job}>{job}</option>)}
6869
</select>
6970
</div>

src/containers/SequenceSearch/components/SearchForm/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class SearchForm extends React.Component {
4040

4141
// split the sequence for batch queries and set a limit on the number of queries
4242
if (state.fileUpload && state.sequence) {
43-
let getSequence = state.sequence.split(/(?=>)/g).slice(0, 30);
43+
let getSequence = state.sequence.split(/(?=>)/g).slice(0, 50);
4444
store.dispatch(actions.onMultipleSubmit(getSequence, this.props.databases));
4545
} else if (state.sequence && state.sequence.match("^([0-9a-fA-F]{8})-(([0-9a-fA-F]{4}\\-){3})([0-9a-fA-F]{12})$")) {
4646
store.dispatch(actions.updateJobId(state.sequence));
@@ -81,7 +81,7 @@ class SearchForm extends React.Component {
8181
<label htmlFor="file-upload" className="custom-file-upload" style={{background: uploadButtonColor}}>Upload file</label>
8282
<input id="file-upload" type="file" accept=".fasta" onClick={ this.props.onClearSequence } onChange={this.props.onFileUpload} />
8383
</div>
84-
<div className="row"><small>Up to 30 queries</small></div>
84+
<div className="row"><small>Up to 50 queries</small></div>
8585
</div>
8686
<div className="small-12 columns" style={{marginTop: "-10px", marginBottom: "10px"}}>
8787
{this.props.examples ? <div id="examples"><ul>Examples: {this.showExamples()}</ul></div> : ""}

0 commit comments

Comments
 (0)