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
  • #532

Closed
Open
Created Aug 11, 2020 by Matija Obreza@mobrezaOwner

DivTree: JSON file

The original approach in #529 (closed) assumed we would reuse the existing RepositoryFile approach to associate tree data with crops. This means that the .json file would be uploaded to the repository to the /crops/{crop.shortName} folder directly.

In this ticket, add support to upload the .json file with the DiversityTreeService and controller. The .json files for different DiversityTree are stored in repository at /divtree/{divTree.uuid}.json.

Replace private String treeFile with RepositoryFile treeFile.

If a new .json file is uploaded, the original RepositoryFile must be deleted.

CropDetails

The UI uses CropDetails.files[] list to find *.json and treats them as Diversity Trees for display.

Extend CropDetails with List<DiversityTree> diversityTrees property and load all PUBLISHED records associated with this Crop.

Part of #528 (closed).

Edited Aug 11, 2020 by Matija Obreza
Assignee
Assign to
Time tracking