Skip to content

Commit

Permalink
[HWORKS-803] Remove airflow from old UI (#1613)
Browse files Browse the repository at this point in the history
  • Loading branch information
SirOibaf committed Nov 12, 2023
1 parent 23accc5 commit d04cfb3
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 794 deletions.
3 changes: 0 additions & 3 deletions hopsworks-web/yo/app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,6 @@
<script src="scripts/controllers/passwordRecoveryCtrl.js"></script>
<script src="scripts/controllers/qrRecoveryCtrl.js"></script>
<script src="scripts/controllers/apiKeyModalCtrl.js"></script>
<script src="scripts/controllers/dagComposerCtrl.js"></script>
<script src="scripts/controllers/dagComposerModalsCtrl.js"></script>
<script src="scripts/controllers/provenanceCtrl.js"></script>
<script src="scripts/controllers/hwSearchCtrl.js"></script>
<script src="scripts/controllers/requestAccessCtrl.js"></script>
Expand All @@ -292,7 +290,6 @@
<!-- Services -->
<script src="scripts/services/AuthInterceptorService.js"></script>
<script src="scripts/services/AuthService.js"></script>
<script src="scripts/services/AirflowService.js"></script>
<script src="scripts/services/BannerService.js"></script>
<script src="scripts/services/UtilsService.js"></script>
<script src="scripts/services/ElasticService.js"></script>
Expand Down
20 changes: 0 additions & 20 deletions hopsworks-web/yo/app/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,26 +312,6 @@ angular.module('hopsWorksApp', [
}]
}
})
.when('/project/:projectID/airflow', {
templateUrl: 'views/airflow.html',
controller: 'ProjectCtrl as projectCtrl',
resolve: {
auth: ['$q', '$route', 'AuthGuardService',
function ($q, $route, AuthGuardService) {
return AuthGuardService.guardProject($q, $route.current.params.projectID);
}]
}
})
.when('/project/:projectID/airflow/dagcomposer', {
templateUrl: 'views/dagComposer.html',
controller: 'ProjectCtrl as projectCtrl',
resolve: {
auth: ['$q', '$route', 'AuthGuardService',
function ($q, $route, AuthGuardService) {
return AuthGuardService.guardProject($q, $route.current.params.projectID);
}]
}
})
.when('/project/:projectID/newjob', {
templateUrl: 'views/newJob.html',
controller: 'ProjectCtrl as projectCtrl',
Expand Down
182 changes: 0 additions & 182 deletions hopsworks-web/yo/app/scripts/controllers/dagComposerCtrl.js

This file was deleted.

92 changes: 0 additions & 92 deletions hopsworks-web/yo/app/scripts/controllers/dagComposerModalsCtrl.js

This file was deleted.

7 changes: 2 additions & 5 deletions hopsworks-web/yo/app/scripts/controllers/mainCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,15 @@ angular.module('hopsWorksApp')
'$http', 'AuthService', 'UtilsService', 'ElasticService', 'DelaProjectService',
'DelaService', 'md5', 'ModalService', 'ProjectService', 'growl',
'MessageService', '$routeParams', '$window', 'HopssiteService', 'BannerService',
'AirflowService', 'PaginationService', 'VariablesService', 'StorageService',
'PaginationService', 'VariablesService', 'StorageService',
function ($q, $interval, $location, $scope, $rootScope, $http, AuthService, UtilsService,
ElasticService, DelaProjectService, DelaService, md5, ModalService,
ProjectService, growl,
MessageService, $routeParams, $window, HopssiteService, BannerService,
AirflowService, PaginationService, VariablesService, StorageService) {
PaginationService, VariablesService, StorageService) {
var self = this;

const MAX_IN_MEMORY_ITEMS = 1000;
self.ui = "/hopsworks-api/airflow/login?q=username=";

self.email = StorageService.get('email');
self.emailHash = md5.createHash(self.email || '');
Expand Down Expand Up @@ -86,8 +85,6 @@ angular.module('hopsWorksApp')
};

self.logout = function () {
AirflowService.logout();

AuthService.logout(self.user).then(
function (success) {
AuthService.cleanSession();
Expand Down
Loading

0 comments on commit d04cfb3

Please sign in to comment.