Skip to content

Commit 007f079

Browse files
committed
revert changes to API, make axios skip the brackets for this API's params
1 parent d86d6e3 commit 007f079

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

client/src/components/admin/JobsList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ export default {
246246
this.busy = true;
247247
const params = { view: "admin_job_list" };
248248
if (this.showAllRunning) {
249-
params.states = NON_TERMINAL_STATES;
249+
params.state = NON_TERMINAL_STATES;
250250
} else {
251251
const cutoff = Math.floor(this.cutoffMin);
252252
const dateRangeMin = new Date(Date.now() - cutoff * 60 * 1000).toISOString();

client/src/components/providers/JobProvider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export function jobsProvider(ctx, callback, extraParams = {}) {
5151
const { root, ...requestParams } = ctx;
5252
const apiUrl = `${root}api/jobs`;
5353
const cleanParams = cleanPaginationParameters(requestParams);
54-
const promise = axios.get(apiUrl, { params: { ...cleanParams, ...extraParams } });
54+
const promise = axios.get(apiUrl, { params: { ...cleanParams, ...extraParams }, paramsSerializer: { indexes: null } });
5555

5656
// Must return a promise that resolves to an array of items
5757
return promise.then((data) => {

lib/galaxy/webapps/galaxy/api/jobs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484

8585
StateQueryParam = Query(
8686
default=None,
87-
alias="states[]",
87+
alias="state",
8888
title="States",
8989
description="A list or comma-separated list of states to filter job query on. If unspecified, jobs of any state may be returned.",
9090
)

0 commit comments

Comments
 (0)