-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[BUGFIX] Ensure that file-backed domain objects are stored in JSON files #10523
[BUGFIX] Ensure that file-backed domain objects are stored in JSON files #10523
Conversation
✅ Deploy Preview for niobium-lead-7998 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
if issubclass(store_backend_class, TupleStoreBackend): | ||
# Provide defaults for this common case | ||
store_backend["filepath_suffix"] = store_backend.get("filepath_suffix", ".json") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicate logic now that default is set
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## develop #10523 +/- ##
========================================
Coverage 80.20% 80.21%
========================================
Files 461 461
Lines 39988 40004 +16
========================================
+ Hits 32074 32090 +16
Misses 7914 7914
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@@ -53,8 +53,9 @@ def __init__( # noqa: PLR0913 | |||
self.forbidden_substrings = forbidden_substrings | |||
self.platform_specific_separator = platform_specific_separator | |||
|
|||
if filepath_template is not None and filepath_suffix is not None: | |||
raise ValueError("filepath_suffix may only be used when filepath_template is None") # noqa: TRY003 | |||
if filepath_template and filepath_suffix: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd log an info message here saying both were specified so we are taking template.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Added a comment about logging something about precedence overriding at the info level.
…_expectations into b/_/ensure_domain_objects_store_with_json_suffix
…_expectations into b/_/ensure_domain_objects_store_with_json_suffix
invoke lint
(usesruff format
+ruff check
)For more information about contributing, see Contribute.
After you submit your PR, keep the page open and monitor the statuses of the various checks made by our continuous integration process at the bottom of the page. Please fix any issues that come up and reach out on Slack if you need help. Thanks for contributing!