Skip to content

Conversation

dbajpeyi
Copy link
Contributor

@dbajpeyi dbajpeyi commented Oct 9, 2025

Asana Task/Github Issue: https://app.asana.com/1/137249556945/task/1211588662115293?focus=true

Description

  • Increase sleep before attempting download
  • Poll for the download link forever

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

Note

Makes downloadData robust by polling for required elements with configurable retry/interval, parsing user via URL params, adding a pre-navigation delay, and improving error handling.

  • Bookmark import resilience (injected/src/features/autofill-import.js):
    • downloadData now:
      • Uses configurable downloadRetryLimit and downloadRetryInterval (defaults to Infinity/1000ms) to poll for userId element and archive link.
      • Parses user from the href via URL search params instead of string split.
      • Returns early with actionCompleted error if userId or #exportId missing (message updated to "User id or export id not found").
      • Adds configurable downloadNavigationDelayMs (default 2000ms) before setting window.location.href.
      • Removes fixed initial 1s sleep in favor of the above logic.

Written by Cursor Bugbot for commit a0a97d8. This will update automatically on new commits. Configure here.

Copy link

netlify bot commented Oct 9, 2025

Deploy Preview for content-scope-scripts ready!

Name Link
🔨 Latest commit a0a97d8
🔍 Latest deploy log https://app.netlify.com/projects/content-scope-scripts/deploys/68f236334facf70008088456
😎 Deploy Preview https://deploy-preview-2001--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.

Copy link

github-actions bot commented Oct 9, 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 Oct 9, 2025

[Beta] Generated file diff

Time updated: Fri, 17 Oct 2025 12:28:35 GMT

Android
    - android/autofillImport.js

File has changed

Integration
    - integration/contentScope.js

File has changed

@dbajpeyi dbajpeyi changed the title fix: add retry to userId parsing and a longer sleep before download [Google import] Add resilience to download data Oct 10, 2025
@dbajpeyi dbajpeyi marked this pull request as ready for review October 10, 2025 12:13
@dbajpeyi dbajpeyi requested a review from a team as a code owner October 10, 2025 12:13
cursor[bot]

This comment was marked as outdated.

@dbajpeyi dbajpeyi force-pushed the dbajpeyi/fix/autofill-import-retry-user-id branch from 713728f to a8abee0 Compare October 15, 2025 14:24
@dbajpeyi dbajpeyi force-pushed the dbajpeyi/fix/autofill-import-retry-user-id branch 3 times, most recently from fcae88b to ef09144 Compare October 15, 2025 15:44
@dbajpeyi dbajpeyi force-pushed the dbajpeyi/fix/autofill-import-retry-user-id branch from ef09144 to fb401e0 Compare October 15, 2025 15:45
cursor[bot]

This comment was marked as outdated.

@dbajpeyi dbajpeyi force-pushed the dbajpeyi/fix/autofill-import-retry-user-id branch from dc5c1c0 to 55609c5 Compare October 15, 2025 16:30
cursor[bot]

This comment was marked as outdated.

@dbajpeyi dbajpeyi force-pushed the dbajpeyi/fix/autofill-import-retry-user-id branch from 363dc70 to 04c9fda Compare October 15, 2025 16:38
@dbajpeyi dbajpeyi force-pushed the dbajpeyi/fix/autofill-import-retry-user-id branch from c473bcd to a0a97d8 Compare October 17, 2025 12:27
@dbajpeyi dbajpeyi added this pull request to the merge queue Oct 17, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 17, 2025
@dbajpeyi dbajpeyi added this pull request to the merge queue Oct 17, 2025
Merged via the queue into main with commit 6f24908 Oct 17, 2025
18 checks passed
@dbajpeyi dbajpeyi deleted the dbajpeyi/fix/autofill-import-retry-user-id branch October 17, 2025 13:52
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