-
Notifications
You must be signed in to change notification settings - Fork 20
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
Implement MetaFilter with separate field and value #225
Implement MetaFilter with separate field and value #225
Conversation
8b3b6c5
to
6443eac
Compare
6443eac
to
b8986f8
Compare
b8986f8
to
464aef4
Compare
@john-dupuy @rsnyman @jjaquish At this point, I think all the basics are working for this filter implementation on classify failures. I'd love to hear your thoughts on the patterns I've used here, the class/function structure, everything. If it doesn't fall flat on its face, we can lay plans to build on this MetaFilter class for use on all FilterTable pages. Thanks for your feedback and review time! I appreciate whatever advice you have here. |
464aef4
to
de31fc2
Compare
When clearing the value selection via the "x" in the select, I noticed it leaves the |
Thanks @john-dupuy! I should be able to work through those issues today. |
b8037a1
to
68494eb
Compare
@john-dupuy All comments should be addressed/fixed/updated now. I've added a utility for the small function to convert from UI filter object(s) to an API filter string, and changed to a TypeAheadMutli select type with I think provides a better display of selected items. |
68494eb
to
a274ab1
Compare
@jjaquish @rsnyman I think I'm ready for a second review for the scope of this PR. I definitely want to take this functionality further in a few directions, but likely not in the scope of this PR.
|
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 noticed when you're including the skips/xfails
the value counts are only updated when you've cleared the selected field. If you leave a field selected and then hit the checkbox, the value counts are not updated.
But I think we can leave this for later. LGTM - nice work on this!
@john-dupuy thanks for your diligence in testing - I think the value count behavior tied to skip/xfail is the same root cause as already applied filters not impacting value count. Definitely something that should be addressed with continued improvement of this component, better event callbacks and filter state management between FilterTable and MetaFilter. |
a274ab1
to
f6f5997
Compare
Looks good to me. I think John caught most of the issues. |
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.
Now that the Auth PR has been merged, there's an updated way to get data from the API, which I've given an example of in a comment. Also, you're going to need to rebase and fix some conflicts, it seems. Once that's done, we're good to go.
f6f5997
to
520d675
Compare
Add a metadata filtering class for use on filtertable result pages. Adding to classify failures first, where its needed most right now. This could be applied to run and results views as well, replacing their current filtering selections. Add some lines to .gitignore for vscode and venv
520d675
to
1b9c0ac
Compare
@rsnyman @john-dupuy this has now been rebased with the auth changes, local testing is consistent with before rebase. |
* Small improvements to the test history tab * Hide username/password related components when user login is disabled (ibutsu#279) * Add test history tab to Result page (ibutsu#276) * Address some issues raised by static analysis (ibutsu#278) * Convert USER_LOGIN_ENABLED to bool if given as env var * Get a user's primary e-mail on GitHub if they have no public e-mail address (ibutsu#272) * Add a way to disabled basic auth for non-superadmins * Add get_user_list endpoint * Fix keycloak login (ibutsu#270) * Update docker image names (ibutsu#267) * Show login progress feedback (ibutsu#266) * Add build_deploy script for App-SRE builds (ibutsu#265) * A single jUnit XML file is a single test run, refactor the importer to take this into account * Some code refactoring after static analysis. (ibutsu#245) * Implement MetaFilter with separate field and value (ibutsu#225) * Adjustments for app-sre deployment (ibutsu#256) * Fix small FE bug on user profile page * Add superadmin user after upgrading db * Add a task for adding users/project owners * Add superadmin to the ocp template files * Add ability to create superadmin user on startup * Allow logging in by hitting 'Enter' * Require superadmin token for running admin task * Update pods script to create an admin user, a project, standardise on echo, and make the output prettier. (ibutsu#247) * Some small fixes to ENV vars * Split templates into one file for each * Update @greatsumini/react-facebook-login * Fix Jenkins Job View * Allow superadmins to update projects * Support adding users to projects * Add project info to the profile page * Filter runs/results on user projects, if none specified * Bump url-parse from 1.5.1 to 1.5.3 in /frontend (ibutsu#234) * Bump tmpl from 1.0.4 to 1.0.5 in /frontend (ibutsu#233) * Bump tar from 6.1.0 to 6.1.11 in /frontend (ibutsu#232) * Add authentication and authorisation to Ibutsu * Promote user property data to metadata * Add babel core dependency * Switch from 'babel-eslint' to '@babel/eslint-parser' * Update and re-apply pre-commit (ibutsu#216) * Support adding artifacts to test runs (ibutsu#215)
Add a metadata filtering class for use on filtertable result pages. Adding to classify failures first, where its needed most right now. This could be applied to run and results views as well, replacing their current filtering selections. Add some lines to .gitignore for vscode and venv
* Small improvements to the test history tab * Hide username/password related components when user login is disabled (ibutsu#279) * Add test history tab to Result page (ibutsu#276) * Address some issues raised by static analysis (ibutsu#278) * Convert USER_LOGIN_ENABLED to bool if given as env var * Get a user's primary e-mail on GitHub if they have no public e-mail address (ibutsu#272) * Add a way to disabled basic auth for non-superadmins * Add get_user_list endpoint * Fix keycloak login (ibutsu#270) * Update docker image names (ibutsu#267) * Show login progress feedback (ibutsu#266) * Add build_deploy script for App-SRE builds (ibutsu#265) * A single jUnit XML file is a single test run, refactor the importer to take this into account * Some code refactoring after static analysis. (ibutsu#245) * Implement MetaFilter with separate field and value (ibutsu#225) * Adjustments for app-sre deployment (ibutsu#256) * Fix small FE bug on user profile page * Add superadmin user after upgrading db * Add a task for adding users/project owners * Add superadmin to the ocp template files * Add ability to create superadmin user on startup * Allow logging in by hitting 'Enter' * Require superadmin token for running admin task * Update pods script to create an admin user, a project, standardise on echo, and make the output prettier. (ibutsu#247) * Some small fixes to ENV vars * Split templates into one file for each * Update @greatsumini/react-facebook-login * Fix Jenkins Job View * Allow superadmins to update projects * Support adding users to projects * Add project info to the profile page * Filter runs/results on user projects, if none specified * Bump url-parse from 1.5.1 to 1.5.3 in /frontend (ibutsu#234) * Bump tmpl from 1.0.4 to 1.0.5 in /frontend (ibutsu#233) * Bump tar from 6.1.0 to 6.1.11 in /frontend (ibutsu#232) * Add authentication and authorisation to Ibutsu * Promote user property data to metadata * Add babel core dependency * Switch from 'babel-eslint' to '@babel/eslint-parser' * Update and re-apply pre-commit (ibutsu#216) * Support adding artifacts to test runs (ibutsu#215)
Alternative to #221 that is more generic. Similar to the filters used on
the run/results page, and could be an abstract replacement for their
current filters.
TODO
not
operator (eq
andin
will be inferred) Extend MetaFilter and FilterTable Integration #230Preview
Nothing selected
Field selected with no values available
Field selected with values available/selected