-
Notifications
You must be signed in to change notification settings - Fork 33
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 documentation #554
Open
qtomlinson
wants to merge
4
commits into
clearlydefined:master
Choose a base branch
from
qtomlinson:qt/add_docs
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add documentation #554
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,9 @@ coverage/ | |
.nyc_output | ||
*~ | ||
\#*# | ||
|
||
# dotenv environment variables file | ||
.env | ||
env.json | ||
|
||
*.env.list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Add a new harvest source | ||
|
||
This is a document in progress detailing the steps necessary to add a new harvest source. | ||
|
||
## Community Engagement | ||
When adding a new harvest source, the points to be considered are located at https://docs.clearlydefined.io/adding-sources#adding-a-new-harvest-source. Please include these considerations and document them in your GitHub issue, similar to https://github.com/clearlydefined/service/issues/882. | ||
|
||
## Crawler | ||
Need to implement: | ||
- xxFetch, which is responsible for downloading package and registry information. | ||
- xxExtract, which is responsible for creating a document based on the fetched information and queuing up scan tools and invoking source discovery. | ||
- To enable the queuing of scan tools, config/map.js needs to be updated. | ||
|
||
Example commit: | ||
``` | ||
Commit: ea1618de0de4663b4d9aeecc9cdbc392edb2feba [ea1618d] | ||
Parents: 968422b174 | ||
Author: Nell Shamrell [email protected] | ||
Date: October 27, 2021 4:16:41 PM | ||
Committer: Nell Shamrell | ||
adds support for fetching and extracting go packages to the crawler | ||
``` | ||
|
||
## Service | ||
|
||
1. ClearlyDescribedSummarizer | ||
|
||
Example commit: | ||
``` | ||
Commit: 5e8b305f108b8cc9bd18c35ad5c626f71c081ef2 [5e8b305] | ||
Parents: 6906969865 | ||
Author: Nell Shamrell [email protected] | ||
Date: August 3, 2021 2:55:44 PM | ||
Committer: Nell Shamrell | ||
Commit Date: October 27, 2021 3:56:37 PM | ||
adds in code and test for determining urls for a go package | ||
``` | ||
2. /origin endpoint (for ui query) | ||
|
||
Example commit: | ||
``` | ||
Commit: 8c057670781451cfd7ca22337cecacae2124ac85 [8c05767] | ||
Parents: 542c02763d | ||
Author: Nell Shamrell [email protected] | ||
Date: October 28, 2021 4:17:40 PM | ||
Committer: Nell Shamrell | ||
adds ability to get go package revisions through the service API | ||
``` | ||
3. update validation schemas | ||
|
||
Example commit: | ||
``` | ||
Commit: 21e11c45b97c06170f436db498c534ff079443d3 [21e11c4] | ||
Parents: 90c8414909 | ||
Author: Nell Shamrell [email protected] | ||
Date: July 29, 2021 3:17:35 PM | ||
Committer: Nell Shamrell | ||
Commit Date: October 27, 2021 3:55:33 PM | ||
adds go as a type in schemas | ||
``` | ||
## Documentation | ||
Adaptation to reflect the new harvest source in the following documents: | ||
- service/README.md | ||
- service/swagger.yaml | ||
- service/docs/determining-declared-license.md | ||
- clearlydefined/docs/adding-sources.md |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.