Skip to content

[WIP] Retry actions for PIR #1841

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

Closed
wants to merge 6 commits into from
Closed

[WIP] Retry actions for PIR #1841

wants to merge 6 commits into from

Conversation

borgateo
Copy link

https://app.asana.com/1/137249556945/project/1209612020130539/task/1210813477828397?focus=true

Description

The objective is to raise the success rate of scans and opt-outs on PeopleFinders to 50% or higher. To accomplish this, we plan to attempt solving the CAPTCHA multiple times before considering it a failure.

Testing Steps

Checklist

Please tick all that apply:

  • I have tested this change locally
  • I have tested this change locally in all supported browsers
  • This change will be visible to users
  • I have added automated tests that cover this change
  • I have ensured the change is gated by config
  • This change was covered by a ship review
  • This change was covered by a tech design
  • Any dependent config has been merged

borgateo added 5 commits July 15, 2025 15:21
refactor: extract getOwnerDocument helper function to follow DRY principle
Add automatic retry support for solveCaptcha actions with configurable
attempts and delays to improve opt-out success rates.
Copy link

netlify bot commented Jul 23, 2025

Deploy Preview for content-scope-scripts ready!

Name Link
🔨 Latest commit 0c68a35
🔍 Latest deploy log https://app.netlify.com/projects/content-scope-scripts/deploys/68803ac17a6f070008be95a6
😎 Deploy Preview https://deploy-preview-1841--content-scope-scripts.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

// gets all elements matching the xpath query
const xpathResult = document.evaluate(selector, element, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
const xpathResult = ownerDoc.evaluate(selector, element, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
if (xpathResult) {
/** @type {HTMLElement[]} */
const matchedNodes = [];
Copy link
Author

Choose a reason for hiding this comment

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

These changes are outside the scope of this task. However, they aim to enhance the PIR debugger experience, as some actions currently trigger errors.

Copy link

github-actions bot commented Jul 23, 2025

Temporary Branch Update

The temporary branch has been updated with the latest changes. Below are the details:

Please use the above install command to update to the latest version.

Copy link

github-actions bot commented Jul 23, 2025

[Beta] Generated file diff

Time updated: Thu, 24 Jul 2025 23:06:01 GMT

Android
    - android/brokerProtection.js

File has changed

Integration
    - integration/contentScope.js

File has changed

Windows
    - windows/contentScope.js

File has changed

Apple
    - dist/contentScopeIsolated.js

File has changed

@borgateo
Copy link
Author

This was just an experiment. Going to close it.

@borgateo borgateo closed this Jul 24, 2025
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.

1 participant