Skip to content

Add Writability to Storage Abstraction #5133

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

Merged
merged 20 commits into from
Jun 13, 2025
Merged

Conversation

anrossi
Copy link
Contributor

@anrossi anrossi commented May 31, 2025

Description

For testing purposes, having the ability to use the platform abstraction to write to the settings storage would be beneficial. This change adds the ability to open the storage with a writable flag, allowing for testing of the storage interface without having to duplicate the storage abstraction into test code.

Testing

Added new Settings test that uses the Storage API.
Updated existing API test to use new Storage API instead of direct registry calls.

Documentation

No documentation change as this is an internal implementation detail.

@anrossi anrossi added this to the Release 2.5 milestone May 31, 2025
@anrossi anrossi requested a review from a team as a code owner May 31, 2025 05:09
Copy link

codecov bot commented May 31, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.84%. Comparing base (cfc5b5e) to head (e6144ce).
Report is 18 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5133      +/-   ##
==========================================
+ Coverage   86.05%   86.84%   +0.78%     
==========================================
  Files          59       59              
  Lines       18048    18086      +38     
==========================================
+ Hits        15532    15707     +175     
+ Misses       2516     2379     -137     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

anrossi and others added 5 commits June 10, 2025 11:55
Co-authored-by: Guillaume Hetier <guhetier@microsoft.com>
Co-authored-by: Guillaume Hetier <guhetier@microsoft.com>
guhetier
guhetier previously approved these changes Jun 12, 2025
Copy link
Contributor

@guhetier guhetier left a comment

Choose a reason for hiding this comment

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

One last comment

guhetier
guhetier previously approved these changes Jun 12, 2025
@anrossi anrossi enabled auto-merge (squash) June 13, 2025 00:33
@anrossi anrossi merged commit 2557a5d into main Jun 13, 2025
417 of 418 checks passed
@anrossi anrossi deleted the anrossi/add-storage-writability branch June 13, 2025 00:47
anrossi added a commit that referenced this pull request Jun 13, 2025
* Add Writability to Storage Abstraction

* Add tests from #5132

---------

Co-authored-by: Guillaume Hetier <guhetier@microsoft.com>
anrossi added a commit that referenced this pull request Jun 17, 2025
* Add Writability to Storage Abstraction

* Add tests from #5132

---------

Co-authored-by: Guillaume Hetier <guhetier@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants