diff --git a/dmp-backend/web/src/main/resources/config/actuator-devel.yml b/dmp-backend/web/src/main/resources/config/actuator-devel.yml deleted file mode 100644 index 557561f50..000000000 --- a/dmp-backend/web/src/main/resources/config/actuator-devel.yml +++ /dev/null @@ -1,3 +0,0 @@ -endpoints: - prometheus: - sensitive: false \ No newline at end of file diff --git a/dmp-backend/web/src/main/resources/config/actuator.yml b/dmp-backend/web/src/main/resources/config/actuator.yml deleted file mode 100644 index 63dbe1eee..000000000 --- a/dmp-backend/web/src/main/resources/config/actuator.yml +++ /dev/null @@ -1,25 +0,0 @@ -management: - endpoint: - metrics: - enabled: true - prometheus: - enabled: true - health: - show-details: always - metrics: - enable: - http: true - jvm: true - jdbc: true - tomcat: true - logback: true - hikaricp: true - cache: true - export: - prometheus: - enabled: true - endpoints: - web: - base-path: / - exposure: - include: prometheus,health,metrics \ No newline at end of file diff --git a/dmp-backend/web/src/main/resources/config/email-devel.yml b/dmp-backend/web/src/main/resources/config/email-devel.yml deleted file mode 100644 index 9662401bc..000000000 --- a/dmp-backend/web/src/main/resources/config/email-devel.yml +++ /dev/null @@ -1,7 +0,0 @@ -email: - invite: classpath:templates/email/email.html - confirmation: classpath:templates/email/emailConfirmation.html - merge: classpath:templates/email/emailMergeConfirmation.html - unlink: classpath:templates/email/emailUnlinkConfirmation.html - dataset: - template: classpath:templates/email/emailAdmin.html \ No newline at end of file diff --git a/dmp-backend/web/src/main/resources/config/email.yml b/dmp-backend/web/src/main/resources/config/email.yml deleted file mode 100644 index a0c958c8f..000000000 --- a/dmp-backend/web/src/main/resources/config/email.yml +++ /dev/null @@ -1,53 +0,0 @@ -spring: - mail: - default-encoding: UTF-8 - host: hermes.local.cite.gr - port: 25 - protocol: smtp - test-connection: false - properties: - mail: - smtp: - auth: false - starttls: - enable: false - -mail: - subject: "Invitation to DMP Plan {dmpname}" - from: opendmp-dev@cite.gr - -admin: - mail: - subject: "You have been invited to the Dataset Template {templateName}" - -email: - invite: file:templates/email/email.html - confirmation: file:templates/email/emailConfirmation.html - merge: file:templates/email/emailMergeConfirmation.html - unlink: classpath:templates/email/emailUnlinkConfirmation.html - dataset: - template: file:templates/email/emailAdmin.html - -conf_email: - expiration_time_seconds: 14400 - subject: "OpenDMP email confirmation" - -contact_email: - mail: ${CONTACT_EMAIL:} - -notification: - finalised: - subject: "[OpenDMP] The {name} has been finalised" - template: classpath:templates/notifications/finalisedNotification.html - modified_finalised: - template: classpath:templates/notifications/modifiedFinalisedNotification.html - modified: - subject: "[OpenDMP] The {name} has been modified" - template: classpath:templates/notifications/modifiedNotification.html - publish: - subject: "[OpenDMP] The {name} has been published" - template: classpath:templates/notifications/publishNotification.html - rateInterval: 30000 - maxRetries: 10 - modifiedFinalised: - subject: "[OpenDMP] The {name} has been modified and finalised" \ No newline at end of file diff --git a/dmp-backend/web/src/main/resources/config/metrics-devel.yml b/dmp-backend/web/src/main/resources/config/metrics-devel.yml new file mode 100644 index 000000000..ba506bfab --- /dev/null +++ b/dmp-backend/web/src/main/resources/config/metrics-devel.yml @@ -0,0 +1,10 @@ +metrics: + task: + referenceTypes: + funderIds: ["538928bb-c7c6-452e-b66d-08e539f5f082"] + grantIds: ["5b9c284f-f041-4995-96cc-fad7ad13289c"] + projectIds: ["3d372db5-a456-45e6-a845-e41e1a8311f8"] + researcherIds: ["5a2112e7-ea99-4cfe-98a1-68665e26726e"] +endpoints: + prometheus: + sensitive: false diff --git a/dmp-backend/web/src/main/resources/config/metrics.yml b/dmp-backend/web/src/main/resources/config/metrics.yml index 0ad1ad292..fa41ec446 100644 --- a/dmp-backend/web/src/main/resources/config/metrics.yml +++ b/dmp-backend/web/src/main/resources/config/metrics.yml @@ -4,10 +4,10 @@ metrics: intervalSeconds: 600 nexusDate: "2021-01-01T00:00:00.00Z" referenceTypes: - funderIds: ["538928bb-c7c6-452e-b66d-08e539f5f082"] - grantIds: ["5b9c284f-f041-4995-96cc-fad7ad13289c"] - projectIds: ["3d372db5-a456-45e6-a845-e41e1a8311f8"] - researcherIds: ["5a2112e7-ea99-4cfe-98a1-68665e26726e"] + funderIds: [] + grantIds: [] + projectIds: [] + researcherIds: [] management: endpoint: metrics: @@ -16,10 +16,11 @@ management: enabled: true health: show-details: always + endpoints: web: base-path: / exposure: - include: ["prometheus","health","metrics"] + include: prometheus,health,metrics metrics: enabled: true diff --git a/dmp-frontend/src/app/core/services/storage-file/storage-file.service.ts b/dmp-frontend/src/app/core/services/storage-file/storage-file.service.ts index e8fb411ca..e95294497 100644 --- a/dmp-frontend/src/app/core/services/storage-file/storage-file.service.ts +++ b/dmp-frontend/src/app/core/services/storage-file/storage-file.service.ts @@ -33,7 +33,6 @@ export class StorageFileService { download(id: Guid ): Observable> { const url = `${this.apiBase}/download/${id}`; - return this.http.get(url, { responseType: 'blob', observe: 'response' }); } diff --git a/dmp-frontend/src/app/ui/sidebar/sidebar.component.ts b/dmp-frontend/src/app/ui/sidebar/sidebar.component.ts index c291bc9c0..caf1732eb 100644 --- a/dmp-frontend/src/app/ui/sidebar/sidebar.component.ts +++ b/dmp-frontend/src/app/ui/sidebar/sidebar.component.ts @@ -98,8 +98,10 @@ export class SidebarComponent implements OnInit { title: 'SIDE-BAR.PUBLIC', routes: [], } - this.publicItems.routes.push({ path: '/explore-plans', title: 'SIDE-BAR.PUBLIC-DMPS', icon: 'library_books' }); - this.publicItems.routes.push({ path: '/explore-descriptions', title: 'SIDE-BAR.PUBLIC-DESC', icon: 'dns' }); + if (!this.isAuthenticated()) { + this.publicItems.routes.push({ path: '/explore-plans', title: 'SIDE-BAR.PUBLIC-DMPS', icon: 'library_books' }); + this.publicItems.routes.push({ path: '/explore-descriptions', title: 'SIDE-BAR.PUBLIC-DESC', icon: 'dns' }); + } this.groupMenuItems.push(this.publicItems); this.adminItems = {