Commit Graph

73 Commits (master)

Author SHA1 Message Date
Konstantinos Triantafyllou 014ca643d5 Fix save stakeholder bug, where topics will be deleted on save. 3 days ago
Konstantinos Triantafyllou 6b5ae3512f Add copy true in dao when find profiles with specific defaultId. 2 weeks ago
Konstantinos Triantafyllou 86f4990d70 Introduce copy field for stakeholder and align all methods to appy the right structure. 2 weeks ago
Konstantinos Triantafyllou 54f9ebb9ce Add copy constructor in stakeholder class. 3 weeks ago
Konstantinos Triantafyllou dc383dda0d [new-model]: Add move indicator controller in order to move an indicator from a section to another. 3 weeks ago
Konstantinos Triantafyllou eee0814016 [new-model]: Reorder for move action for all entities. Doesn't work for added and removed, need a different implementation. 4 weeks ago
Konstantinos Triantafyllou c83dc441d4 Refactor reorder methods and save sections in bulk 4 weeks ago
Konstantinos Triantafyllou 8a56c3ad8b Save category, subcategory, section refactor. 1 month ago
Konstantinos Triantafyllou c3cc942332 Refactor save topic endpoint and fix change visibility. 1 month ago
Konstantinos Triantafyllou cf505bd214 Fix delete and change visibility methods for all entities. 1 month ago
Konstantinos Triantafyllou 959d553ca4 [new-model]: Refactor all delete and change visibility methods. 2 months ago
Konstantinos Triantafyllou e345f5b689 [new-model | WIP]: Refactoring the code in order to improve performance and code. 2 months ago
Konstantinos Triantafyllou 1158b676e4 Revert properties. Remove some comments. Remove mongodb DAOs. Move primitives classes and enums to new package primitives. 2 months ago
Konstantinos Triantafyllou 76c39d6eb3 Add monitor deploy service 2 months ago
Konstantinos Triantafyllou 8918826766 Remove comments. Add getAliases method in stakeholderService. Remove parametersMapping 2 months ago
Konstantinos Triantafyllou a7a3970c79 Merge branch 'irish-monitor-service' 2 months ago
Konstantinos Triantafyllou 5bad820e3d Add authorization in check deploy of library 2 months ago
Konstantinos Triantafyllou e92739091f Move some stakeholder functions to the service. 2 months ago
Konstantina Galouni 1461f1851e [master | DONE | CHANGED]: IndicatorController.java: Completing previous commit - In method "createSectionsAndSaveBulk()", on createSection() call, always set title parameter to section.getTitle() (even if it is null). 3 months ago
Konstantina Galouni 52c760af1c [master | DONE | CHANGED]: IndicatorController.java: Removed "imported from service" from section name in method "createSectionsAndSaveBulk()". 3 months ago
Konstantinos Triantafyllou 4be89eab36 Merge branch 'irish-monitor-service' of code-repo.d4science.org:MaDgIK/uoa-monitor-service into irish-monitor-service 5 months ago
Konstantinos Triantafyllou f85a2202ab Import Notification and Authorization Configuration only in application. 5 months ago
Konstantina Galouni 8d19c242e7 Merge remote-tracking branch 'origin/master' into irish-monitor-service 5 months ago
Konstantina Galouni 420e6f46fb [master | DONE | FIXED]: IndicatorController.java: In method "parameterMapping()" set in parameter index_shortName the shortname of the stakeholder, not the name. 5 months ago
Konstantina Galouni c55d2836d7 [irish-monitor-service | WIP | CHANGED]: Monitor Service to work as standalone and as library (classifier library) at the same time.
1. pom.xml: Added plugin "maven-jar-plugin" and an <execution> with <classifier> library which creates a jar and excluded files from library setup.
2. UoaMonitorServiceApplication.java: Moved to package application and removed @EnableConfigurationProperties and @Import of other configurations (moved to UoaMonitorServiceConfiguration.java).
3. UoaMonitorServiceConfiguration.java: Added @EnableConfigurationProperties and @Import of configurations and @ComponentScan.
4. ServletInitializer.java: Moved to package application.
5. MonitorLibraryCheckDeployController.java: Added this copy of MonitorServiceCheckDeployController.java to be used only in library setup with @RequestMapping("/monitor-library").
5 months ago
Konstantinos Triantafyllou 615da7f3c2 Add funderType field in stakeholder. 6 months ago
Konstantinos Triantafyllou c8adee576e Add support for country reasearcher and datasource 6 months ago
Konstantinos Triantafyllou 8446c19ea9 Fix section default Id null exception in save default indicator 9 months ago
Konstantina Galouni 648803a30c [Monitor Service | master]: Stakeholder.java: Added field "private Date projectUpdateDate = null;" to expose the last update date in the UI. 10 months ago
Konstantina Galouni fc2010e530 [Monitor Service | master]: IndicatorController.java: In method "createSectionsAndSaveBulk()" -on import indicators- check if a section or an indicator is null, and ignore them. 10 months ago
Konstantinos Triantafyllou 7b4f0a9eec Fix role utils methods 10 months ago
Konstantina Galouni 09b8d2188f [Monitor Service | master]: Indicator.java: In method "copyFromDefault()", get visibility as parameter and set the visibility of the new-copied indicator accordingly | IndicatorController.java: When creating indicators copied from a new default indicator, set the visibility of each new indicator same as of its parent subcategory. 10 months ago
Konstantina Galouni 0184da8a8e [Monitor Service | master]: Stakeholder.java: Added field private Locale locale = Locale.EU; (Local is enum with values: EN("en"), EU("eu")) and getter/setter methods. 10 months ago
Konstantina Galouni 1119c1fdcf [Monitor Service | master]: Stakeholder.java: Added field private String statsProfile = "monitor"; and getter/setter methods | IndicatorPath.java: Added field private Format format = Format.NUMBER; where Format is enum {NUMBER, PERCENTAGE} and getter/setter methods | IndicatorController.java: On method "onUpdateDefaultIndicator()" check if format was changed | update_db.js: Added method "statsProfileOfIndicatorsAsVariable()". 1 year ago
Konstantina Galouni 806e1e16d8 [Monitor Service | master]: MonitorController.java: In method "updatePortal()" call also pageService.updatePid if pid was changed | pom.xml: Updated version of uoa-admin-tools-library to 1.0.7 (previous was 1.0.6). 1 year ago
Konstantina Galouni 5d46d84a96 [Monitor Service | log4j]: SwaggerConfig.java: Updated swagger to add separate folders for libraries. 2 years ago
Konstantina Galouni 05aec3af4a StakeholderController.java: update return type of 'changeStakeholderVisibility()' and 'changeStakeholderVisibilityTree()' from Visibility to Stakeholder. 2 years ago
Konstantina Galouni adf8cb5e70 pom.xml: Updated parent and versions of libraries | Moved to log4j2 & set spring log file as default | Added swagger 2 years ago
Konstantina Galouni 82a8f8ad56 [Trunk | Monitor Service]: StakeholderController.java & TopicController.java & CategoryController.java & SubCategoryController.java & SectionController.java & IndicatorController.java: Updated /change-visibility methods and added @RequestParam(required = false) Boolean propagate, to allow changing visibility of all contents of the updated entity too & updated return type to return the entity instead its visibility & added everywhere method "changeVisibilityTree()". 2 years ago
Konstantina Galouni cddb8a2de1 [Trunk | Monitor Service]: Updated methods "saveBulkIndicators()" and "createSectionsAndSaveBulk()" to import List<Section<Indicator>> instead of List<Indicator>. 2 years ago
Konstantina Galouni a03001c90e [Trunk | Monitor Service]: 1.. pom.xml: Updated version of admin-tools-library to 1.0.5 (used to be 1.0.4) | 2. StakeholderController.java: In method "buildFullStakeholder()", when creating Stakeholder, create Portal if not exists (pid = alias) and in method "deleteStakeholder()", when deleting a Stakeholder, delete Portal as well. 2 years ago
Konstantinos Triantafyllou 827fd60a87 Add idea files to ignore svn list. Update notification and admin tools library 2 years ago
Konstantina Galouni a11cf9c642 [Trunk | Monitor Service]:
1. pom.xml: Updated version of "uoa-admin-tools-library" from 1.0.1 to 1.0.2, "uoa-authorization-library" from 1.0.0 to 2.0.1, "uoa-notification-service" from 1.0.0 to 1.0.2.
2. GlobalVars.java: Added field "version" (version of project in pom).
3. MonitorServiceCheckDeployController.java: Expose globalBars.version in /health_check/advanced.
4. monitorservice.properties: Added monitorservice.globalVars.version=@version@ (initialized by pom version).
2 years ago
Konstantina Galouni 3f0bbbd81c [Trunk | Monitor Service]:
1. StakeholderController.java: In method "getAllRealStakeholders()" (/stakeholder), return also stakeholders with "restricted" visibility, without checking user's roles.
2. pom.xml: 
	a. Update parent from "spring-boot-starter-parent" to "dnet45-parent" ==> add <dependencyManagement> and "maven-war-plugin" and comment "spring-boot-maven-plugin".
	b. For dependencies "uoa-authorization-library" and "uoa-notification-service", use version 1.0.0 (released version), not 1.0.0-SNAPSHOT.
3 years ago
Konstantina Galouni 9b18159e2f [Trunk | Monitor Service]:
1. pom.xml: 
        a. Added timestamp in properties.
        b. In <build> added <resources> with filtering set to true.
2. GlobalVars.java: Added GlobalVars class for date of deploy & date of build.
3. UoaMonitorServiceApplication.java: 
        a. Added @PropertySource("classpath:admintoolslibrary.properties") and @PropertySource("classpath:notification.properties")
        b. In @EnableConfigurationProperties added GlobalVars.class.
4. MonitorServiceCheckDeployController.java: Added exposing date of deploy and date of build.
5. monitorservice.properties: Added property monitorservice.globalVars.buildDate=@timestamp@
3 years ago
Konstantina Galouni 7d4273bea4 [Trunk | Monitor Service]:
1. MonitorServiceCheckDeployController.java: In method "checkEverything()" (/health_check/advanced), added "Date of build" field with current date.
2. Indicator.java: In method "copyFromDefault()" set visibility of new indicator to "RESTRICTED" (instead of copying the default indicator's visibility).
3. IndicatorController.java: [NEW] Bulk add for indicators (imported from file) - get charts and numbers in a list and create chart and number sections to put them.
	a. Added API call  method "saveBulkIndicators()" (POST /{stakeholderId}/{topicId}/{categoryId}/{subcategoryId}/save-bulk).
	b. Added helper methods "createSectionsAndSaveBulk()", "createSection()", "saveIndicatorAndAddInSection()".
3 years ago
Konstantina Galouni 44e325ddc7 [Trunk | Monitor Service]:
1. MonitorController.java: [Bug fix] In class @RequestMapping, added "/organization" (this portal type was missing).
2. update_db.js: Commnented old functions and added "addHomePageInPortalType()", "addFooterDivIdForPortalType()", "addFooterHelpTextForPortalType()" for portalTypes: funder, ri, organization.
3 years ago
Konstantina Galouni 0c9bc6f006 [Trunk | Monitor Service]:
1. MonitorServiceCheckDeployController.java: [NEW] Controller added and
        a. "hello()" method (@RequestMapping(value = {"", "/health_check"}, method = RequestMethod.GET)) which just prints and returns a greeting message.
        b. "checkEverything()" method @RequestMapping(value = "/health_check/advanced", method = RequestMethod.GET) only accessible by PORTAL ADMINS which checks connection with db and prints properties.
2. TestController.java: Comment "index()" method with @RequestMapping("/").
3. IndicatorController.java: [Bug fix]
        a. Added a check when the value of an indicator path parameter is null
        b. When an indicator path parameter from a default profile is deleted, delete this parameter also from all profiles based on this default.
3 years ago
Konstantina Galouni ac869dd75b [Trunk | Monitor Service]:
1. pom.xml: Add dependency for notification service: uoa-notification-service.
2. UoaMonitorServiceApplication.java: In @SpringBootApplication, add in scanBasePackages "eu.dnetlib.uoanotificationservice".
3 years ago
Konstantina Galouni a284d8449a [Trunk | Monitor Service]:
1. RolesUtils.java: Comment all contents of this file (should be removed in next commit). This file is added in uoa-admin-tools-library.
2. StakeholderController.java & TopicController.java & CategoryController.java & SubCategoryController.java & SectionController.java & IndicatorController.java: Import RolesUtils from uoa-admin-tools-library.
3. StakeholderController.java: In "getAllRealStakeholders()" method, add optional parameter "defaultId", to get Stakeholders based on a default profile.
3 years ago