-
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
Merged
cdkini
merged 14 commits into
develop
from
b/_/ensure_domain_objects_store_with_json_suffix
Oct 21, 2024
Merged
Changes from 4 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
dc13860
add suffix
cdkini 294119f
remove duplicate logic from expectations store
cdkini 4e44585
add logic
cdkini acc8c8c
Merge branch 'develop' into b/_/ensure_domain_objects_store_with_json…
cdkini 2789878
mypy
cdkini dccd47b
Merge branch 'develop' into b/_/ensure_domain_objects_store_with_json…
cdkini 7ef5d2a
Merge branch 'develop' of https://github.com/great-expectations/great…
cdkini c3f8ba5
patch tests
cdkini 4faa1f9
Merge branch 'develop' of https://github.com/great-expectations/great…
cdkini 7778ddc
simplify approach
cdkini 3dc594f
add test
cdkini 17fb6ae
mypy
cdkini 5866aaa
mypy
cdkini 0e20328
Merge branch 'develop' into b/_/ensure_domain_objects_store_with_json…
cdkini File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ def __init__( # noqa: PLR0913 | |
self, | ||
filepath_template=None, | ||
filepath_prefix=None, | ||
filepath_suffix=None, | ||
filepath_suffix: str | None = None, | ||
forbidden_substrings=None, | ||
platform_specific_separator=True, | ||
fixed_length_key=False, | ||
|
@@ -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 commentThe 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. |
||
# Template takes precedence over suffix if both are provided | ||
filepath_suffix = None | ||
|
||
self.filepath_template = filepath_template | ||
if filepath_prefix and len(filepath_prefix) > 0: | ||
|
@@ -227,7 +228,7 @@ def __init__( # noqa: PLR0913 | |
base_directory, | ||
filepath_template=None, | ||
filepath_prefix=None, | ||
filepath_suffix=None, | ||
filepath_suffix: str | None = ".json", | ||
forbidden_substrings=None, | ||
platform_specific_separator=True, | ||
root_directory=None, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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