Skip to content

GitLab

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

Closed
Open
Created May 28, 2020 by Matija Obreza@mobrezaOwner

Number of subsets and datasets

For each Accession it would be useful to have quick access to the number of associated published subsets and datasets.

Extend AccessionId with two new properties long subsets = 0, datasets = 0.

When a subset/dataset is published, the count for accessions in the list is increased by 1. When it is unpublished, it is decreased by 1.

This must be a very fast SQL update.

Updating these counters should not touch the lastModifiedDate or version fields, but it should schedule a reindex of accessions affected.

Implement an admin function that will:

  1. Reset the counters to 0.
  2. Scan for subsets and increase the counts
  3. Scan for datasets and increase the counts.
Assignee
Assign to
Time tracking