DB dump should indicate which version readme, etc. came from #5346
Closed
jmyersmsft
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
in the current implementation the crate README in the database is overwritten by each new |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been working on some code that compares the data available on crates.io with the contents of the actual .crate files. I've been using the db dump (along with the index), but for readme, etc. it only contains the data for a single version. This is fine for now as I'm currently only interested in identifying categories of discrepancies, but there's no indication of which version that information came from, complicating matching. For most crates, I can match the crate's updated_at with a version's created_at, but that doesn't work for all crates. It's not immediately clear how the version to provide that information is selected (highest version? most recently published?). I'd prefer to avoid parsing the version strings, if possible, but I can if necessary.
It would be nice if the crates table in the dump had an indication of which version the readme, etc. came from. This could be the version string or the foreign key to the versions table, doesn't matter to me.
Beta Was this translation helpful? Give feedback.
All reactions