Skip to content

Add FXIOS-15014 [RS] Expose reset _storage method to consumers#7253

Open
issammani wants to merge 2 commits intomozilla:mainfrom
issammani:feat/expose-rs-reset-storage
Open

Add FXIOS-15014 [RS] Expose reset _storage method to consumers#7253
issammani wants to merge 2 commits intomozilla:mainfrom
issammani:feat/expose-rs-reset-storage

Conversation

@issammani
Copy link
Contributor

📜 Tickets

Jira ticket
Github issue

This PR:

  • Exposes reset_storage for remote settings clients.
  • Adds test.

Pull Request checklist

  • Breaking changes: This PR follows our breaking change policy
    • This PR follows the breaking change policy:
      • This PR has no breaking API changes, or
      • There are corresponding PRs for our consumer applications that resolve the breaking changes and have been approved
  • Quality: This PR builds and tests run cleanly
    • Note:
      • For changes that need extra cross-platform testing, consider adding [ci full] to the PR title.
      • If this pull request includes a breaking change, consider cutting a new release after merging.
  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Changelog: This PR includes a changelog entry in CHANGELOG.md or an explanation of why it does not need one
    • Any breaking changes to Swift or Kotlin binding APIs are noted explicitly
  • Dependencies: This PR follows our dependency management guidelines
    • Any new dependencies are accompanied by a summary of the due diligence applied in selecting them.

@issammani
Copy link
Contributor Author

cc @bendk @Cramsden

@issammani issammani force-pushed the feat/expose-rs-reset-storage branch from 9dd4a68 to 8e439d3 Compare March 2, 2026 19:21
Copy link
Contributor

@bendk bendk left a comment

Choose a reason for hiding this comment

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

Looks good to me, I just found some minor issues. Feel free to deal with them however you want, I don't need to re-review.

}
}

#[cfg(not(feature = "signatures"))]
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this needed? I'd expect the test to work regardless of that feature.


rs_client.reset_storage().expect("Failed to reset storage");

// After reset, both records and attachments should be gone
Copy link
Contributor

Choose a reason for hiding this comment

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

This could also test that records/attachments with packaged data are reverted to the packaged versions. I don't think that's totally necessary though, the addition of this test is already great. If you don't want test the packaged data, how about writing a comment mentioning that there could be a test.

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