tweag / nixpkgs-graph-explorer

Explore the nixpkgs dependency graph
MIT License
15 stars 0 forks source link

Migrate data ingestion logic to api package #59

Closed dorranh closed 1 year ago

dorranh commented 1 year ago

This PR adds a new module called explorer.api.ingest which includes utilities for parsing the Nix graph object defined in #56 and performing actions on the packages in it. The primary purpose of this module is to allow for the ingesting of JSON NixGraph files created by the core package.

As a part of these changes I had to move all packages under api/explorer to api/explorer/api so that they place nicely with namespace packaging.

While there are a lot of small changes due to the refactor mentioned above and an update to the Docker build, most of the logic is centralized in explorer.api.ingest and its corresponding test suite.

TODO:

dorranh commented 1 year ago

Awesome, thank you for the reviews, @GuillaumeDesforges!