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

feat: check enqueue link strategy post redirect #2238

Merged
merged 5 commits into from
Dec 21, 2023

Conversation

vladfrangu
Copy link
Member

Closes #2173

@vladfrangu vladfrangu requested a review from B4nan December 17, 2023 20:37
@github-actions github-actions bot added this to the 79th sprint - Tooling team milestone Dec 17, 2023
@github-actions github-actions bot added t-tooling Issues with this label are in the ownership of the tooling team. tested Temporary label used only programatically for some analytics. labels Dec 17, 2023
packages/core/src/request.ts Outdated Show resolved Hide resolved
packages/core/src/request.ts Outdated Show resolved Hide resolved
Comment on lines +328 to +334
private set enqueueStrategy(value: EnqueueLinksOptions['strategy']) {
if (!this.userData.__crawlee) {
(this.userData as Dictionary).__crawlee = { enqueueStrategy: value };
} else {
this.userData.__crawlee.enqueueStrategy = value;
}
}
Copy link
Member

Choose a reason for hiding this comment

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

i guess we could have a helper for this part, as we do the same thing 4 times already now

@B4nan B4nan merged commit 3c5f9d6 into master Dec 21, 2023
8 checks passed
@B4nan B4nan deleted the feat/track-enqueue-link-strategy-across-redirects branch December 21, 2023 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t-tooling Issues with this label are in the ownership of the tooling team. tested Temporary label used only programatically for some analytics.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

enqueueLinks only checks the strategy on the input URLs but they can redirect outside of the domain
2 participants