Skip to content

Commit

Permalink
feat(rosco): Allow optional roscoDetailUrl for roscoMode bakes (#7575)
Browse files Browse the repository at this point in the history
  • Loading branch information
alanmquach committed Oct 28, 2019
1 parent 97ed519 commit dae00c8
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ module.exports = angular
SETTINGS.feature.roscoMode ||
(typeof SETTINGS.feature.roscoSelector === 'function' &&
SETTINGS.feature.roscoSelector($scope.stage.context));
$scope.bakeryDetailUrl = $interpolate(SETTINGS.bakeryDetailUrl);
$scope.bakeryDetailUrl = $interpolate(
$scope.roscoMode && SETTINGS.roscoDetailUrl ? SETTINGS.roscoDetailUrl : SETTINGS.bakeryDetailUrl,
);
$scope.bakeFailedNoError =
get($scope.stage, 'context.status.result') === 'FAILURE' && !$scope.stage.failureMessage;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ module.exports = angular
SETTINGS.feature.roscoMode ||
(typeof SETTINGS.feature.roscoSelector === 'function' &&
SETTINGS.feature.roscoSelector($scope.stage.context));
$scope.bakeryDetailUrl = $interpolate(SETTINGS.bakeryDetailUrl);
$scope.bakeryDetailUrl = $interpolate(
$scope.roscoMode && SETTINGS.roscoDetailUrl ? SETTINGS.roscoDetailUrl : SETTINGS.bakeryDetailUrl,
);
};

let initialize = () => executionDetailsSectionService.synchronizeSection($scope.configSections, initialized);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ module.exports = angular
let initialized = () => {
$scope.detailsSection = $stateParams.details;
$scope.provider = $scope.stage.context.cloudProviderType || 'docker';
$scope.bakeryDetailUrl = $interpolate(SETTINGS.bakeryDetailUrl);
$scope.bakeryDetailUrl = $interpolate(
$scope.roscoMode && SETTINGS.roscoDetailUrl ? SETTINGS.roscoDetailUrl : SETTINGS.bakeryDetailUrl,
);
};

let initialize = () => executionDetailsSectionService.synchronizeSection($scope.configSections, initialized);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ module.exports = angular
SETTINGS.feature.roscoMode ||
(typeof SETTINGS.feature.roscoSelector === 'function' &&
SETTINGS.feature.roscoSelector($scope.stage.context));
$scope.bakeryDetailUrl = $interpolate(SETTINGS.bakeryDetailUrl);
$scope.bakeryDetailUrl = $interpolate(
$scope.roscoMode && SETTINGS.roscoDetailUrl ? SETTINGS.roscoDetailUrl : SETTINGS.bakeryDetailUrl,
);
};

const initialize = () => executionDetailsSectionService.synchronizeSection($scope.configSections, initialized);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ module.exports = angular
$scope.detailsSection = $stateParams.details;
$scope.provider = $scope.stage.context.cloudProviderType || 'oracle';
$scope.roscoMode = SETTINGS.feature.roscoMode;
$scope.bakeryDetailUrl = $interpolate(SETTINGS.bakeryDetailUrl);
$scope.bakeryDetailUrl = $interpolate(
$scope.roscoMode && SETTINGS.roscoDetailUrl ? SETTINGS.roscoDetailUrl : SETTINGS.bakeryDetailUrl,
);
};

let initialize = () => executionDetailsSectionService.synchronizeSection($scope.configSections, initialized);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ module.exports = angular
let initialized = () => {
$scope.detailsSection = $stateParams.details;
$scope.provider = $scope.stage.context.cloudProviderType || 'titus';
$scope.bakeryDetailUrl = $interpolate(SETTINGS.bakeryDetailUrl);
$scope.bakeryDetailUrl = $interpolate(
$scope.roscoMode && SETTINGS.roscoDetailUrl ? SETTINGS.roscoDetailUrl : SETTINGS.bakeryDetailUrl,
);
};

let initialize = () => executionDetailsSectionService.synchronizeSection($scope.configSections, initialized);
Expand Down

0 comments on commit dae00c8

Please sign in to comment.