Skip to content

Capture more metadata about crates and stop using json for dependencies #1062

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

Closed
wants to merge 1 commit into from

Conversation

Kixiron
Copy link
Member

@Kixiron Kixiron commented Sep 20, 2020

The goals of this pr are simple: Get some more data about crates so that I can implement a features display, and stop using json to represent dependencies within the releases table.

The structs that parse out info from cargo metadata's output got a little refactor and now get everything we need, so that part is done. The part I'm not having a fun time with is the database side of things, migrating the old json columns into the new table. There's also some only vaguely finished stuff (e.g. dependency versioning, the idea is that we'll have an enum on our side that tells us if it's the old and limited-in-data picture of the dependency or the new rich one, this is only actually mentioned in the migration query atm). The type-unsafe nature of our current database interactions is also a source of annoyance since I now have to manually hunt down points of interaction with the dependencies column, which as of now has not been done.

…de/downgrade migrating dependencies from a json column to a table
@Kixiron Kixiron added C-technical-debt Category: This makes the code harder to read and modify, but has no impact on end users C-enhancement Category: This is a new feature A-backend Area: Webserver backend help-wanted labels Sep 20, 2020
@jyn514
Copy link
Member

jyn514 commented Sep 22, 2020

Personally I'd prefer to have #874 before making large changes like this.

@jyn514
Copy link
Member

jyn514 commented Sep 22, 2020

Also, please split out the formatting changes into a separate commit so it's easier to see the logic.

@Kixiron Kixiron closed this Sep 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-backend Area: Webserver backend C-enhancement Category: This is a new feature C-technical-debt Category: This makes the code harder to read and modify, but has no impact on end users help-wanted
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants