Skip to content
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

Add extracted_from field #2042 #2215

Merged
merged 4 commits into from
Sep 8, 2020
Merged

Conversation

pombredanne
Copy link
Contributor

This PR adds two new methods to the Resource class: extracted_to and extracted_from. These methods return the Resource where a given Resource was extracted to or extracted from, respectively. These methods only work on Resources that were extracted using extractcode.

Fixes #2042 and replaces #2046 : this is just a cherry picking and clean merge of it

Signed-off-by: Jono Yang jyang@nexb.com
Signed-off-by: Philippe Ombredanne pombredanne@nexb.com

Tasks

  • Reviewed contribution guidelines
  • PR is descriptively titled 📑 and links the original issue above 🔗
  • Tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR
    Run tests locally to check for errors.
  • Commits are in uniquely-named feature branch and has no merge conflicts 📁

JonoYang and others added 4 commits May 21, 2020 19:24
Signed-off-by: Jono Yang <jyang@nexb.com>
Signed-off-by: Jono Yang <jyang@nexb.com>
Signed-off-by: Jono Yang <jyang@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add field in Resource to show where a Resource was extracted from
2 participants