Closed gsrohde closed 3 years ago
@dlebauer - is this a priority for the V0 release?
From @gsrohde in https://github.com/terraref/computing-pipeline/issues/147:
I think that the API rolls everything back if there is a row it can't insert. I have to double-check this. In other words, if you tried to do the API call without all the metadata being there, no harm would be done.
I still have to deploy some last few changes to the insertion API having to do with the traits issue we discussed yesterday. I plan to do a release today (unlikely), tomorrow (possibly) or early next week, after which we should be good to go.
The PlantCV extractor is running - when these changes are released, I will update the PlantCV extractor to point to
terraref.ncsa.illinois.edu/bety
...with an API key I generate, and we are good to go.
@max-zilla I think I'm done with all the high-priority items in this issue (except for updating the documentation, which isn't quite done), but I won't do a new release until sometime next week. (Precisely when depends on how much else I want to try to include.) In the meantime, you are welcome to pull the updates to your own BETYdb copy and re-test (if that's useful and feasible).
The main changes in how things work are as follows. If your CSV files always will have an entity column which is not blank in any row, then probably only points 1 and 3 will be of interest.
citations_treatments
table associating the treatment you name with the citation you select. (The treatment selected from the treatements
table will be the one whose name not only matches the value in the CSV-file treatment column but is also associated with the citation matching the CSV-file citation column(s). A fortiori, the CSV file can't have a treatment column unless it has (a) citation column(s).name
column) would be created for each CSV-file row, and each trait-table row created from the data in the CSV-file row would be associated with that newly-created anonymous entity. Now this only happens if there are at least two traits created per CSV file row. (I didn't see any use in creating an anonymous entity connected to only a single trait. It doesn't add any information.)name
column of an entity in the entities
table. The exception is that entities with blank names are never re-used. (Eventually the entities
table will be constrained to require non-blank names to be unique (I hope).)I have updated the PlantCV extractor config with the terraref.ncsa.illinois.edu/bety instance and my API key there (account mburnet2). The Clowder upload process is into the first 2 weeks of September so we should start seeing some PlantCV extractions trigger over the weekend or very early next week.
@gsrohde - please update this issue
@gsrohde will you be able to finish this up by the end of May? If so, please change the milestone, if not, please convert to an epic and break into smaller pieces that you can complete. (same for #124)