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

Closed
Open
Opened 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
2.5
Milestone
2.5
Assign milestone
Time tracking
None
Due date
None
Reference: genesys-pgr/genesys-server#532