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 valid version improver #1138

Merged
merged 3 commits into from
Mar 21, 2023
Merged

Conversation

TG1999
Copy link
Member

@TG1999 TG1999 commented Feb 27, 2023

No description provided.

@TG1999 TG1999 added this to the v32.0.0 milestone Feb 27, 2023
@TG1999 TG1999 marked this pull request as draft February 27, 2023 17:12
@TG1999 TG1999 force-pushed the add_valid_versions_improver branch 2 times, most recently from a3c1bea to f940384 Compare March 1, 2023 10:21
@TG1999 TG1999 marked this pull request as ready for review March 1, 2023 10:52
@TG1999 TG1999 requested a review from pombredanne March 1, 2023 10:53
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.

A philosophical question: should we rather try to keep all the code about a given data source in one module? e.g., keep everything about Apache HTTPD in a single script? I feel that this may be more effective than scattered code in one place for the importer and another for an improver? This is not critical as this can be improved afterwards of course.

Copy link
Member Author

@TG1999 TG1999 left a comment

Choose a reason for hiding this comment

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

Some review nits....


class ApacheHTTPDImprover(ValidVersionImprover):
importer = ApacheHTTPDImporter
ignorable_versions = APACHE_HTTPD_IGNORABLE_TAGS
Copy link
Member Author

Choose a reason for hiding this comment

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

Inline this


class GitHubBasicImprover(ValidVersionImprover):
importer = GitHubAPIImporter
ignorable_versions = GITHUB_IGNORABLE_VERSIONS
Copy link
Member Author

Choose a reason for hiding this comment

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

Inline this

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.... please merge with your planned updates!

Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
@TG1999 TG1999 force-pushed the add_valid_versions_improver branch from 3d057d4 to 3134cc5 Compare March 21, 2023 11:06
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
@TG1999 TG1999 merged commit ff22c02 into nexB:main Mar 21, 2023
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.

None yet

2 participants