-
Notifications
You must be signed in to change notification settings - Fork 35
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
Exclude explores #172
Merged
Merged
Exclude explores #172
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
de2ec46
Remove async methods from client class
joshtemple bfa87b1
Parametrize bad response checks
joshtemple 8991d74
Add test to ensure error is set correctly
joshtemple 3030609
Test that queries are cancelled
joshtemple 638555f
Test case when queries are still running
joshtemple 22a6c28
Fix assertion for cancellation
joshtemple cbcd805
add exclude CLI argument to parser
DylanBaker fba52f7
exclusion in validator functioning
DylanBaker 2c74fc8
fix existing test_build_project test
DylanBaker 52e9045
adding tests and removing empty models from project
DylanBaker 231af45
more tests
DylanBaker 711062a
fix duped tests:
DylanBaker 7232598
Update spectacles/cli.py
DylanBaker 46f8fb9
adding second explore to test models and adding ambiguous explore exc…
DylanBaker 82c3fee
resolve conflicts
DylanBaker 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
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
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
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.
If there's a situation with
model_A.explore_A
andmodel_B.explore_A
, and the--exclude
argument ismodel_A.explore_A
, would this still preserveexplore_A
inmodel_B
? Any way we can add this case to the unit tests?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.
It will still preserve it. The explores to exclude are stored in lists against a key of the model name. We then only check against the explores within a given model: https://github.com/spectacles-ci/spectacles/pull/172/files#diff-cbee2ab0268f8f001868af4ca066ba04R228-R232
I'll definitely add some tests to confirm that though.
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.
@joshtemple I've confirmed this is the case and have added an additional test
test_build_project_one_ambiguous_explore_excluded
to verify so.I also actually re-factored some of the other tests to make the selection easier.