Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding configuration for displayed workflow limit #477

Merged
merged 2 commits into from
Jul 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"origin": {
"host": "localhost"
},
"workflows": {
"limit": 30
},
"feedback": {
"enable": false,
"serviceURL": ""
Expand Down
4 changes: 3 additions & 1 deletion portals/admin/src/main/webapp/source/src/app/data/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import Utils from './Utils';
import Resource from './Resource';
import cloneDeep from 'lodash.clonedeep';
import APIClientFactory from 'AppData/APIClientFactory';
import Configurations from 'Config';

/**
* An abstract representation of an API
Expand Down Expand Up @@ -872,9 +873,10 @@ class API extends Resource {
* Get list of workflow pending requests
*/
workflowsGet(workflowType) {
var limit = Configurations.app.workflows.limit;
return this.client.then((client) => {
return client.apis['Workflow (Collection)'].get_workflows(
{ workflowType: workflowType },
{ workflowType: workflowType, limit: limit },
this._requestMetaData(),
);
});
Expand Down