Skip to content

Add valid version improver - #1138

Merged
TG1999 merged 3 commits into
aboutcode-org:mainfrom
TG1999:add_valid_versions_improver
Mar 21, 2023
Merged

TG1999 merged 3 commits into
aboutcode-org:mainfrom
TG1999:add_valid_versions_improver

Conversation

@TG1999

@TG1999 TG1999 commented Feb 27, 2023

Copy link
Copy Markdown
Contributor

No description provided.

@TG1999 TG1999 mentioned this pull request Feb 27, 2023
6 tasks done
@TG1999
TG1999 force-pushed the add_valid_versions_improver branch from 3603423 to 50bfc60 Compare February 27, 2023 17:11
@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

@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.

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.

@TG1999 TG1999 left a comment

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
Contributor 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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Inline this

@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.

LGTM.... please merge with your planned updates!

TG1999 added 2 commits March 21, 2023 16:36
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 aboutcode-org: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.

2 participants