Sample data generation
Genesys uses FirstRunListener
to generate content on startup:
- Updates Country data
- Update FAO WIEWS data
Update Geo Regions
The CreateContentListener
and CreateAdminListener
generate initial content and the first Administrator user.
To make testing more friendly, update FirstRunListener
to also generate:
- Add one OAuth client
- Two Crops: sweetpotato and sorhgum
- Accession data
Generating accession data
Skip this part
Most appropriate approach would be to include 2-3 text files containing accession JSON in the project. These files would be parsed and passed to BatchRESTServiceImpl#upsertAccessionData
method. Perhaps we encode the instCode
in the file name:
- PER001.json
- IND002.json