Skip to content

Conversation

@AyanSinhaMahapatra
Copy link
Member

@AyanSinhaMahapatra AyanSinhaMahapatra commented Mar 24, 2023

  • Fixes a bug in LicenseDetection identifier where we were only returning UUID as identifier, and without the license-expression in the case where a detection is modified and we are calculating a new identifier.
  • Fixing a bug in scancode_version where we were not returning
    unannotated tags, but we should always return the latest tag here.
  • Regen test files that are imported with --from-json
  • Updates license policy plugin to add a list per resource instead of a dict

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 📁
Fixes a bug in LicenseDetection identifier where we were only returning UUID as identifier, and without the license-expression in the case where a detection is modified and we are calculating a new identifier. Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Fixing a bug in scancode_version where we were not returning unannotated tags, but we should always return the latest tag here. Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Copy link
Member

@pombredanne pombredanne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks

Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
@AyanSinhaMahapatra AyanSinhaMahapatra force-pushed the license-detection-follow-up branch from cf08f4b to 30be519 Compare March 28, 2023 14:58
@AyanSinhaMahapatra AyanSinhaMahapatra changed the title Fix bug in identifier for modified detection Fix misc license detection related bugs Mar 30, 2023
Copy link
Member

@JonoYang JonoYang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AyanSinhaMahapatra AyanSinhaMahapatra force-pushed the license-detection-follow-up branch from 8d388fe to bbec4af Compare April 3, 2023 09:16
Since there are multiple possible license keys in a license detection, and each license policy is for a license key, the license_policy attribute should be a list, and this modifies the attribute from dict to list. Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
@AyanSinhaMahapatra AyanSinhaMahapatra force-pushed the license-detection-follow-up branch from bbec4af to 5c9d5a8 Compare April 3, 2023 09:36
@AyanSinhaMahapatra
Copy link
Member Author

@JonoYang @pombredanne thanks! Fixed the tests, now merging.

@AyanSinhaMahapatra AyanSinhaMahapatra merged commit a3946df into develop Apr 3, 2023
@AyanSinhaMahapatra AyanSinhaMahapatra deleted the license-detection-follow-up branch April 3, 2023 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants