Skip to content

Move MatchCode-related code - #1077

Merged
tdruez merged 7 commits into
mainfrom
matchcode-module
Mar 25, 2024
Merged

Move MatchCode-related code#1077
tdruez merged 7 commits into
mainfrom
matchcode-module

Conversation

@JonoYang

Copy link
Copy Markdown
Member

This PR moves matchcode related code from scanpipe/pipes/purldb.py to scanpipe/pipes/matchcode.py. The request_get() and request_post() functions from scanpipe/pipes/purldb.py have also been brought over to scanpipe/pipes/matchcode.py. The docstring of the MatchToMatchCode pipeline has been updated to mention the limits of the pipeline.

The following settings have been added:

  • MATCHCODEIO_URL
  • MATCHCODEIO_USER
  • MATCHCODEIO_PASSWORD
  • MATCHCODEIO_API_KEY

This was done to reflect that MatchCode and PurlDB are two different services, where MatchCode may not always be co-located with PurlDB.

@pombredanne pombredanne left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looking good!
Please resolved conflicts and merge.

@tdruez tdruez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@JonoYang

  • We are lacking a data migration for the pipeline renaming
  • Missing documentation for the "MatchCode.io integration" and the new settings
  • There are still merge conflicts to be solved

    * Move matchcode related code from pipes/purldb.py to pipes/matchcode.py
    * Update scancode.io settings to get matchcode API settings
    * This is done since matchcode and purldb are technically two seperate services with their own users, etc.

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: Jono Yang <jyang@nexb.com>
Signed-off-by: Jono Yang <jyang@nexb.com>

@tdruez tdruez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The match_to_purldb references need to be updated in the documentation as well.

    * Update references to match_to_purldb to match_to_matchcode in docs

Signed-off-by: Jono Yang <jyang@nexb.com>
@JonoYang
JonoYang requested a review from tdruez March 22, 2024 23:15
Signed-off-by: tdruez <tdruez@nexb.com>
@tdruez
tdruez merged commit 3097fc8 into main Mar 25, 2024
@tdruez
tdruez deleted the matchcode-module branch March 25, 2024 04:23
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.

3 participants