-
Notifications
You must be signed in to change notification settings - Fork 3
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
Fix: filters extra query #826
Conversation
class TreeGlobalFilters(BaseModel): | ||
configs: List[str] | ||
architectures: List[str] | ||
compilers: List[str] | ||
|
||
|
||
class TreeLocalFilters(BaseModel): | ||
issues: List[str] | ||
|
||
|
||
class TreeFilters(BaseModel): | ||
all: TreeGlobalFilters | ||
builds: TreeLocalFilters | ||
boots: TreeLocalFilters | ||
tests: TreeLocalFilters | ||
|
||
|
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.
Do not forget to run sh generate_schema.sh
@@ -478,3 +478,34 @@ def process_boots_summary(instance, row_data): | |||
] += 1 | |||
else: | |||
instance.bootEnvironmentMisc[test_platform][test_status] += 1 | |||
|
|||
|
|||
def process_filters(instance, row_data) -> None: |
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.
you can type row_data
as dict
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.
Since this whole file is using dict
I'll stick to it, but there's an inconsistency between this file and the others that are using typing.Dict
. I'd be willing to start using only dict
from now on since it's they are equivalent and dict
does not need any imports, but I'd rather keep the whole source code consistent so if we choose for typing.Dict
it's ok as well
self.globalConfigs = set() | ||
self.globalArchitectures = set() | ||
self.globalCompilers = set() | ||
self.unfilteredTestIssues = set() | ||
self.unfilteredBootIssues = set() | ||
self.unfilteredBuildIssues = set() |
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.
snake_case
self.globalConfigs = set() | ||
self.globalArchitectures = set() | ||
self.globalCompilers = set() | ||
self.unfilteredTestIssues = set() | ||
self.unfilteredBootIssues = set() | ||
self.unfilteredBuildIssues = set() |
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.
snake_case
It is missing the |
c4305b7
to
fb5298d
Compare
Closes #792
DISCLAIMER: This PR was moved to #829