Skip to content
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

Merged
merged 0 commits into from
Jan 22, 2025
Merged

Conversation

murilx
Copy link
Contributor

@murilx murilx commented Jan 21, 2025

  • Added 'common' and 'filters' fields to TreeDetailsView and TreeDetailsSummaryView responses
  • Used the data from the summary query to populate the filters modal instead of doing a new query to the backend

Closes #792

DISCLAIMER: This PR was moved to #829

Comment on lines 37 to 53
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


Copy link
Contributor Author

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:
Copy link
Collaborator

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

Copy link
Contributor Author

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

Comment on lines 76 to 81
self.globalConfigs = set()
self.globalArchitectures = set()
self.globalCompilers = set()
self.unfilteredTestIssues = set()
self.unfilteredBootIssues = set()
self.unfilteredBuildIssues = set()
Copy link
Collaborator

Choose a reason for hiding this comment

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

snake_case

Comment on lines 69 to 74
self.globalConfigs = set()
self.globalArchitectures = set()
self.globalCompilers = set()
self.unfilteredTestIssues = set()
self.unfilteredBootIssues = set()
self.unfilteredBuildIssues = set()
Copy link
Collaborator

Choose a reason for hiding this comment

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

snake_case

@WilsonNet
Copy link
Collaborator

It is missing the Unknown for when you get a Fail without issue

@murilx murilx self-assigned this Jan 22, 2025
@WilsonNet WilsonNet merged commit 811a496 into fix/lazy-load-to-full Jan 22, 2025
5 checks passed
@WilsonNet WilsonNet force-pushed the fix/lazy-load-to-full branch from c4305b7 to fb5298d Compare January 22, 2025 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants