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

Add support for local field validation for synced bookmarks and credentials #2614

Merged
merged 9 commits into from
Mar 26, 2024

Conversation

ayoy
Copy link
Contributor

@ayoy ayoy commented Mar 19, 2024

Task/Issue URL: https://app.asana.com/0/0/1206637913741251/f

Description:
This change adds a mechanism that filters out syncable objects that would fail validation on the backend
before sending Sync patch request. Objects rejected from patch payload are retried on every subsequent
Sync request, until they're updated to pass validation or deleted.

Steps to test this PR:
See BSK PR for testing steps.

Copy Testing:

  • Use of correct apostrophes in new copy, ie rather than '

Orientation Testing:

  • Portrait
  • Landscape

Device Testing:

  • iPhone SE (1st Gen)
  • iPhone 8
  • iPhone X
  • iPhone 14 Pro
  • iPad

OS Testing:

  • iOS 14
  • iOS 15
  • iOS 16

Theme Testing:

  • Light theme
  • Dark theme

Internal references:

Software Engineering Expectations
Technical Design Template

@ayoy ayoy assigned bwaresiak and unassigned ayoy Mar 19, 2024
@ayoy ayoy requested a review from bwaresiak March 19, 2024 17:29
@ayoy ayoy marked this pull request as ready for review March 19, 2024 17:29
"bookmarks.invalid.objects.present.description.many",
bundle: Bundle.module,
value: "Your bookmarks for %@ and %d other sites can't sync because some of their fields exceed the character limit.",
comment: "Alert message for multiple invalid bookmark being filtered out of synced data"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why not use the stringsdict here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've updated it to use stringsdict and now it's ready for you to have another look!

@ayoy ayoy requested a review from bwaresiak March 25, 2024 09:33
Copy link
Collaborator

@bwaresiak bwaresiak left a comment

Choose a reason for hiding this comment

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

LGTM!

@ayoy ayoy assigned ayoy and unassigned bwaresiak Mar 26, 2024
@ayoy ayoy merged commit cddb637 into main Mar 26, 2024
13 checks passed
@ayoy ayoy deleted the dominik/sync-field-validation branch March 26, 2024 12:21
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