Filter out projects that have never been updated when user is creating/changing to scm inventory source

This commit is contained in:
Michael Abashian
2017-07-11 11:54:34 -04:00
parent ca72c3024f
commit 3623738b05
3 changed files with 3 additions and 2 deletions

View File

@@ -113,7 +113,7 @@ export default ['$state', '$stateParams', '$scope', 'SourcesFormDefinition',
} }
if (source === 'scm') { if (source === 'scm') {
$scope.projectBasePath = GetBasePath('projects'); $scope.projectBasePath = GetBasePath('projects') + '?not__status=never updated';
$scope.overwrite_vars = true; $scope.overwrite_vars = true;
$scope.inventory_source_form.inventory_file.$setPristine(); $scope.inventory_source_form.inventory_file.$setPristine();
} else { } else {

View File

@@ -16,7 +16,7 @@ export default ['$state', '$stateParams', '$scope', 'ParseVariableString',
Wait, Rest, Alert) { Wait, Rest, Alert) {
function init() { function init() {
$scope.projectBasePath = GetBasePath('projects'); $scope.projectBasePath = GetBasePath('projects') + '?not__status=never updated';
$scope.canAdd = inventorySourcesOptions.actions.POST; $scope.canAdd = inventorySourcesOptions.actions.POST;
// instantiate expected $scope values from inventorySourceData // instantiate expected $scope values from inventorySourceData
_.assign($scope, _.assign($scope,

View File

@@ -4,6 +4,7 @@ export default {
value: { value: {
page_size:"5", page_size:"5",
order_by:"name", order_by:"name",
not__status:"never updated",
role_level:"use_role", role_level:"use_role",
}, },
dynamic:true, dynamic:true,