-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ingest the legacy uuids from the old versionista outputter #61
Comments
Some notes for this: Since rows in those spreadsheets are really versions, this is should probably be matching Versionista version IDs. We can extract them from:
The naive way someone could do this now would be to page through all the results of https://web-monitoring-db.herokuapp.com/api/v0/versions?source_type=versionista If we wanted to better support this, we could:
Alternatively, a different, probably easier approach might be to create an API endpoint for uploading analyst annotation CSVs. It’s kinda messy, but might be the easiest and quickest way to achieve this. |
Using the versionista ID is good enough to support the ad hoc analysis I want to do right now. Once we transition away from versionista, perhaps we should do a one-time update to the database to ingest all these legacy UUIDs and associated Annotations. |
👍 |
As we move forward with having different differs as well, an annotation imported from sheets should have a field indicating that’s where it came from, (Versionista, Scanner, possibly others in the future.) |
I don't think we'll need to worry about that when importing sheets of annotations. Each annotation (row in the sheets) already refers to a Version in our database, either by its Versionista ID or by web-monitoring-db UUID or both, and each Version already knows where it came from. |
Use the import_annotations_from_sheet to import all the annotations an analyst has created in a given Google Sheet. This can be used to solve #61. Arguments are: 1. Google sheet ID, e.g. 1-Rq-AclS2GI_yxLmkYVY7FvTfN21KoJtxXtOXXXXXX 2. E-mail of user to attribute the annotation to 3. (optional) Name of spreadsheet tabs to import (comma-separated). If unset, all tabs will be imported. 4. (optional) Row to start at (defaults to 7) 5. (optional) Row to end at. If unset, reads all rows. When done, it'll output summary information of how many rows were added, skipped, or errored across how many tabs.
Note: the tooling for this was added in #233. Solving this is mainly a matter of executing that rake task regularly (or, more complex: setting up a job that does that work on a schedule). |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in seven days if no further activity occurs. If it should not be closed, please comment! Thank you for your contributions. |
This will be a requirement for migrating away from Google sheets for important changes. |
It would be nice to have a way to associated legacy Annotations, which I assume will be subjected to a lot of analysis, with Versions in our app. Somehow getting the uuids generated by the old outputter (and now stored only in Google Sheets, I think) sounds slightly painful but possible and useful.
The text was updated successfully, but these errors were encountered: