Skip to content

Commit

Permalink
Remove redundant application properties xml files
Browse files Browse the repository at this point in the history
  • Loading branch information
pvannierop committed Dec 15, 2021
1 parent 30b4587 commit 4667275
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 77 deletions.
2 changes: 2 additions & 0 deletions portal/src/main/java/org/cbioportal/WebAppConfig.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package org.cbioportal;

import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
@EnableAspectJAutoProxy // TODO no idea what this does; is this logging aspect still usefull?
public class WebAppConfig implements WebMvcConfigurer {

@Override
Expand Down
2 changes: 2 additions & 0 deletions web/src/main/java/org/cbioportal/logging/LoggingAspect.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;


// TODO is this logging aspect still usefull?
@Aspect
@Component
public class LoggingAspect {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
package org.cbioportal.logging;

import io.sentry.*;
import io.sentry.DefaultSentryClientFactory;
import io.sentry.SentryClient;
import io.sentry.dsn.Dsn;
import io.sentry.event.helper.ContextBuilderHelper;
import io.sentry.event.helper.ForwardedAddressResolver;
import io.sentry.event.helper.HttpEventBuilderHelper;
import org.springframework.stereotype.Component;

@Component
public class SentryClientFactory extends DefaultSentryClientFactory {
@Override
public SentryClient createSentryClient(Dsn dsn) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

//@RestController
@RestController
public class URLShortenerController {

@Value("${bitly.access.token}")
Expand Down
16 changes: 0 additions & 16 deletions web/src/main/resources/applicationContext-logging.xml

This file was deleted.

30 changes: 0 additions & 30 deletions web/src/main/resources/applicationContext-proxy.xml

This file was deleted.

29 changes: 0 additions & 29 deletions web/src/main/resources/applicationContext-url-shortener.xml

This file was deleted.

0 comments on commit 4667275

Please sign in to comment.