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

Split out InternalLink and ExternalLink classes #882

Merged
merged 2 commits into from
Feb 26, 2024

Conversation

Eric-Arellano
Copy link
Collaborator

We decided as part of #876 that we should have distinct programs for checking internal vs external links, since they are such distinct workflows.

This PR is a refactor to prepare for that change. The link checker program still behaves the same as before; this is only a refactor.

Copy link
Member

@frankharkins frankharkins left a comment

Choose a reason for hiding this comment

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

Thanks! This feels much neater

Comment on lines +39 to +41
const response = await fetch(this.value, {
headers: { "User-Agent": "qiskit-documentation-broken-links-finder" },
});
Copy link
Member

Choose a reason for hiding this comment

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

Not technically part of this PR, but should we be using method: "HEAD" here to avoid downloading the body? Might make things faster and reduce rate limiting if we're not doing that already.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh, that's a great idea! I'll fix in a follow up.

@Eric-Arellano Eric-Arellano added this pull request to the merge queue Feb 26, 2024
Merged via the queue into main with commit 923b971 Feb 26, 2024
2 checks passed
@Eric-Arellano Eric-Arellano deleted the EA/refactor-link-checker branch February 26, 2024 12:27
frankharkins pushed a commit to frankharkins/documentation that referenced this pull request Jul 22, 2024
We decided as part of Qiskit#876
that we should have distinct programs for checking internal vs external
links, since they are such distinct workflows.

This PR is a refactor to prepare for that change. The link checker
program still behaves the same as before; this is only a refactor.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants