Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Genesys Backend
Genesys Backend
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 15
    • Issues 15
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • Genesys PGR
  • Genesys BackendGenesys Backend
  • Issues
  • #289

Closed
Open
Opened Jul 25, 2018 by Matija Obreza@mobrezaOwner

Keep average PDCI in FaoInstitute

Maintain average PDCI score in FaoInsitute entity.

Add Double fields pdciMin, pdciMax, pdciAvg to FaoInstitute (update liquibase).

These values should be updated in the org.genesys2.server.service.worker.AccessionCounter method process:

FaoInstitute institute = instituteService.findInstitute(forProcessing.getObj());
if (institute != null) {
	LOG.info("Updating count for {}", institute.getCode());
	genesysService.updateAccessionCount(institute);
        // Add
	genesysService.updatePDCI(institute);
}

Implement method genesysService.updatePDCI(FaoInstitute) based on genesysService.statisticsPDCI(FaoInstitute).

Remove method genesysService.statisticsPDCI(FaoInstitute) and refactor code to use the numbers stored in FaoInstitute entity. This means fix the code in genesysService.statisticsPDCI(Organization) -- just use numbers from the entity, don't query the database. You will need to use institute.accessionCount instead of (Long) overall[3] (which contains the count).

Update mvc.AccessionController and remove the call to statisticsService, use values from institute in the JSP.

Edited Jul 26, 2018 by Matija Obreza
Assignee
Assign to
2.5
Milestone
2.5
Assign milestone
Time tracking
None
Due date
None
Reference: genesys-pgr/genesys-server#289