Skip to content

Update PodExtract tool version#566

Merged
qtomlinson merged 9 commits intoclearlydefined:masterfrom
qtomlinson:qt/pod_tool_version
Jun 5, 2024
Merged

Update PodExtract tool version#566
qtomlinson merged 9 commits intoclearlydefined:masterfrom
qtomlinson:qt/pod_tool_version

Conversation

@qtomlinson
Copy link
Copy Markdown
Collaborator

@qtomlinson qtomlinson commented Apr 10, 2024

  1. Add unit tests for verification purposes.
  2. Refactor toolVersion in PodExtract. Reasons in commit message
  3. The recent fix to exclude content in the .git directory (Exclude .git directory content when calculating package file count #525) from pod packages will cause the file count to be different from the previous version. Update the toolVersion for PodExtract to 2.0.0 to reflect this.

document._metadata.links.self.href is used in construct file path or blob name when storing the harvested data.  It should reflect the _schemaVersion of PodExtract.  Added test to verify this.
1. In AbstractProcessor, _schemaVersion is the combination of schemaVersion or toolVersion along the class hierarchy.
2. Most component related processors, e.g. mavenExtract or npmExtract, which are subClasses of abstractClealyDefinedProcessors, overrride toolVersion(),  see comments at AbstractProcessor.toolVersion().
This convention was introduced in commit "isolate toolVersion from schemaVersion".

The exception is PodExtract.  This commit aligns PodExtract with the rest of the component related processors.
This is for fix to exclude .git directory content in recent PR (clearlydefined#525).
Bump up the version to allow reharvest of pod components.
@qtomlinson qtomlinson marked this pull request as ready for review April 10, 2024 19:56
@qtomlinson qtomlinson requested review from elrayle and lumaxis April 10, 2024 19:57
@qtomlinson qtomlinson marked this pull request as draft April 17, 2024 20:20
The recent fix to exclude content in the .git directory (clearlydefined#525) from pod packages will cause the file count to be different from the previous version. Update the toolVersion for PodExtract to 2.0.0 to reflect this.
@qtomlinson qtomlinson marked this pull request as ready for review April 17, 2024 22:08
Copy link
Copy Markdown
Contributor

@lumaxis lumaxis left a comment

Choose a reason for hiding this comment

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

Thanks for the detailed commit messages to help understand context!

@qtomlinson qtomlinson merged commit 80652ad into clearlydefined:master Jun 5, 2024
@qtomlinson qtomlinson deleted the qt/pod_tool_version branch June 5, 2024 16:58
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