mirror of
https://github.com/ansible/awx.git
synced 2026-01-18 05:01:19 -03:30
make default params only accept page, page_size and order_by
This commit is contained in:
parent
86029934ad
commit
34e1b8be1d
@ -166,6 +166,8 @@ export function getQSConfig(
|
||||
) {
|
||||
if (!namespace) {
|
||||
throw new Error('a QS namespace is required');
|
||||
} else if (Object.keys(defaultParams).filter(key => key !== 'page' || key !== 'page_size' || key !== 'order_by').length > 0) {
|
||||
throw new Error('Only page, page_size, and order_by allowed as default params for QS.')
|
||||
}
|
||||
return {
|
||||
namespace,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user