Skip to content

Commit

Permalink
refactor(web): Convert web module to Java (#841)
Browse files Browse the repository at this point in the history
* refactor(web): Front50WebConfig to Java

* refactor(web): ItemDAOHealthIndicator to Java, move to better package

* refactor(web): InvalidApplicationRequestException to Java

* refactor(web): AuthorizationSupport to Java

* refactor(web): PermissionsController to Java

* refactor(web): ServiceAccountsController to Java

* refactor(web): Remove Groovy Slf4j annotation from AdminController

* refactor(web): NotificationController to Java

* refactor(web): SnapshotsController and StrategyController to Java

* refactor(web): ApplicationsController to Java

* refactor(web): EntityTagsController to Java

* refactor(web): ProjectsController to Java

* refactor(web): Make ProjectsController a little less completely unreadable

* refactor(web): SimpleCORSFilter to Java

* refactor(web): Main to Java

* refactor(web): PipelineController to Java

* refactor(web): Remove Groovy Slf4j annotation from DeliveryController

* refactor(web): `main` source set to Java

* fix(web): Add global notifications instead of replace

* fix(web): Un-reverse ternary

* fix(web): Simplify entity tag ids conditional

* fix(web): Wrap all() in HashSet instead of perform maybe unsafe cast

* fix(web): Avoid NPE if both indexes are null

* fix(web): Avoid potentially unsafe List cast

* fix(web): Convert projects signature from Set to List, simplify logic

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
robzienert and mergify[bot] committed May 28, 2020
1 parent 6637101 commit 7186db3
Show file tree
Hide file tree
Showing 43 changed files with 1,763 additions and 1,635 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ public ServiceAccountsService(
this.fiatPermissionEvaluator = fiatPermissionEvaluator;
}

Collection<ServiceAccount> getAllServiceAccounts() {
public Collection<ServiceAccount> getAllServiceAccounts() {
return serviceAccountDAO.all();
}

ServiceAccount createServiceAccount(ServiceAccount serviceAccount) {
public ServiceAccount createServiceAccount(ServiceAccount serviceAccount) {
ServiceAccount acct = serviceAccountDAO.create(serviceAccount.getId(), serviceAccount);
syncUsers(Arrays.asList(acct));
return acct;
Expand Down
1 change: 1 addition & 0 deletions front50-web/front50-web.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ dependencies {
implementation "org.springframework.boot:spring-boot-starter-actuator"
implementation "com.netflix.spinnaker.fiat:fiat-api:$fiatVersion"
implementation "com.netflix.spinnaker.fiat:fiat-core:$fiatVersion"
implementation "com.netflix.spinnaker.kork:kork-artifacts"
implementation "com.netflix.spinnaker.kork:kork-web"
implementation "com.netflix.spinnaker.kork:kork-stackdriver"
implementation "com.netflix.spinnaker.kork:kork-exceptions"
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 7186db3

Please sign in to comment.