mirror of
https://github.com/ansible/awx.git
synced 2026-07-12 17:04:32 -02:30
Merge pull request #3871 from ryanpetrello/devel
merge in downstream changes Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
@@ -64,13 +64,13 @@ function ListJobsController (
|
||||
{ label: `${strings.get('sort.NAME_ASCENDING')}`, value: 'name' },
|
||||
{ label: `${strings.get('sort.NAME_DESCENDING')}`, value: '-name' },
|
||||
{ label: `${strings.get('sort.FINISH_TIME_ASCENDING')}`, value: 'finished' },
|
||||
toolbarSortDefault,
|
||||
{ label: `${strings.get('sort.START_TIME_ASCENDING')}`, value: 'started' },
|
||||
{ label: `${strings.get('sort.START_TIME_DESCENDING')}`, value: '-started' },
|
||||
{ label: `${strings.get('sort.LAUNCHED_BY_ASCENDING')}`, value: 'created_by__id' },
|
||||
{ label: `${strings.get('sort.LAUNCHED_BY_DESCENDING')}`, value: '-created_by__id' },
|
||||
{ label: `${strings.get('sort.PROJECT_ASCENDING')}`, value: 'unified_job_template__project__id' },
|
||||
{ label: `${strings.get('sort.PROJECT_DESCENDING')}`, value: '-unified_job_template__project__id' },
|
||||
toolbarSortDefault
|
||||
{ label: `${strings.get('sort.PROJECT_DESCENDING')}`, value: '-unified_job_template__project__id' }
|
||||
];
|
||||
|
||||
vm.toolbarSortValue = toolbarSortDefault;
|
||||
|
||||
@@ -15,7 +15,7 @@ export default ['i18n', function(i18n) {
|
||||
hover: true,
|
||||
trackBy: 'group.id',
|
||||
basePath: 'api/v2/hosts/{{$stateParams.host_id}}/groups/',
|
||||
layoutClass: 'List-staticColumnLayout--groups',
|
||||
layoutClass: 'List-staticColumnLayout--statusOrCheckbox',
|
||||
staticColumns: [
|
||||
{
|
||||
field: 'failed_hosts',
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
function searchWithoutKey (term, singleSearchParam = null) {
|
||||
if (singleSearchParam === 'host_filter') {
|
||||
return { [singleSearchParam]: `${encodeURIComponent(term)}` };
|
||||
} else if (singleSearchParam) {
|
||||
if (singleSearchParam) {
|
||||
return { [singleSearchParam]: `search=${encodeURIComponent(term)}` };
|
||||
}
|
||||
return { search: encodeURIComponent(term) };
|
||||
@@ -418,7 +416,11 @@ function QuerysetService ($q, Rest, ProcessErrors, $rootScope, Wait, DjangoSearc
|
||||
let termParams;
|
||||
|
||||
if (termParts.length === 1) {
|
||||
termParams = searchWithoutKey(term, singleSearchParam);
|
||||
if (singleSearchParam && termParts[0].toLowerCase() === "or") {
|
||||
termParams = { [singleSearchParam]: "or" };
|
||||
} else {
|
||||
termParams = searchWithoutKey(term, singleSearchParam);
|
||||
}
|
||||
} else if ((isAnsibleFactField && isAnsibleFactField(termParts)) || (isFilterableBaseField && isFilterableBaseField(termParts))) {
|
||||
termParams = this.encodeParam({ term, singleSearchParam, searchTerm: true });
|
||||
} else if (isRelatedField && isRelatedField(termParts)) {
|
||||
|
||||
Reference in New Issue
Block a user