foreman icon indicating copy to clipboard operation
foreman copied to clipboard

Fixes #34764 - refactor filters page

Open MariaAga opened this issue 2 years ago • 13 comments

Kept it the same expect removed tabs so the orgs and loations selectors will be in the same form old: Screenshot from 2022-04-12 18-31-56 new: Screenshot from 2022-04-12 18-28-22

MariaAga avatar Apr 12 '22 16:04 MariaAga

Issues: #34764

theforeman-bot avatar Apr 12 '22 16:04 theforeman-bot

@Ron-Lavi Can you take a look? :)

MariaAga avatar Apr 12 '22 20:04 MariaAga

Wow, that looks cool! could you also share a screen shot of a model, that supports taxonomies? The only design note I'd have - the width of the dropdowns seems too much, we got such feedback in the registration form too, it should not span to 100% I guess.

ares avatar Apr 21 '22 14:04 ares

Thanks @ares! Technically the select width is max 880px so it wont be the full width in wide screens. And there is no other pf guideline that I know of. for simplicity the orgs and locations are on the same page: Screenshot from 2022-04-21 16-33-06

MariaAga avatar Apr 21 '22 14:04 MariaAga

@Ron-Lavi - Thanks, fixed some of the failing tests, the rest look unrelated

MariaAga avatar Jul 11 '22 15:07 MariaAga

@MariaAga can you rebase, tests should be fixed now via #9302

Ron-Lavi avatar Jul 12 '22 13:07 Ron-Lavi

@MariaAga can you rebase?

Ron-Lavi avatar Jul 24 '22 16:07 Ron-Lavi

@Ron-Lavi Rebased, test failures dont look related

MariaAga avatar Jul 26 '22 09:07 MariaAga

test failure related, fixing

Failure:

[2022-07-26T09:09:54.353Z] AccessPermissionsTest#test_0289_route permissions/index should have a permission that grants access [/home/jenkins/workspace/foreman-pr-katello-test/foreman/test/unit/shared/access_permissions_test_base.rb:33]

[2022-07-26T09:09:54.353Z] Minitest::Assertion: permission for permissions/index not found, check access_permissions.rb.

[2022-07-26T09:09:54.353Z] Expected [] to not be empty.

MariaAga avatar Jul 26 '22 12:07 MariaAga

@Ron-Lavi fixed the test failure

MariaAga avatar Jul 27 '22 08:07 MariaAga

@adamruzicka any more things needed in this pr?

MariaAga avatar Aug 01 '22 16:08 MariaAga

Nope, looks good to me, although we should probably hold this until stabilization is over?

adamruzicka avatar Aug 02 '22 08:08 adamruzicka

do not merge- this issue is still not resolved, fixing https://github.com/theforeman/foreman/pull/9186#discussion_r848642390

MariaAga avatar Aug 08 '22 16:08 MariaAga

The above issue is resolved

MariaAga avatar Aug 17 '22 18:08 MariaAga

Noticed one more thing. When I go to edit an already existing filter, it still allows me to select a different role for it in the first dropdown. However if I do so, I get 422 on submit. Could we disable that field on edit?

adamruzicka avatar Aug 30 '22 08:08 adamruzicka

Thanks @adamruzicka! fixed, could you take a look at the ruby part? the issue was that the locked roles are shown in the dropdown, but users cant really edit them because they are locked. I also made the toaster sticky with a more clear message in case there would be more "backend is not happy" issues

MariaAga avatar Sep 02 '22 08:09 MariaAga