-
-
Notifications
You must be signed in to change notification settings - Fork 529
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 and Enhance Usergroup ACL Permissions Grids and Filtering #16355
Fix and Enhance Usergroup ACL Permissions Grids and Filtering #16355
Conversation
Codecov ReportBase: 17.95% // Head: 17.89% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## 3.x #16355 +/- ##
============================================
- Coverage 17.95% 17.89% -0.06%
- Complexity 10442 10475 +33
============================================
Files 561 561
Lines 39051 39203 +152
============================================
+ Hits 7010 7014 +4
- Misses 32041 32189 +148
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
@Mark-H @JoshuaLuckers - I see you're active on GH right now ... any chance you guys can give this a quick peek and (re)give it your blessing? |
Is there an urgency I'm missing that warrant 2 pings for a review on a PR created 2 days ago? ;) It's a big one so it'll take up a bit more time to check it again compared to giving a quick thumbs up on something small. Just trying to keep up with notifications in between actual work. I haven't done a full review round since before the 3.0.3 release so I'm not ignoring you, simply just haven't sat down for something of this magnitude. |
I'm only hounding you guys (sorry) because this work has already been reviewed and approved — it's just been repackaged because of the rebasing snags I hit in the original. So my thought is that it should be quick and easy. |
That'd be my excuse if I want to sneak in something nasty in a PR with 2k changed lines, too! :D (Just kidding, but I'm still gonna go through it before giving you my thumbs.) |
core/src/Revolution/Processors/Security/Access/UserGroup/Context/GetList.php
Show resolved
Hide resolved
@Mark-H - Yes, and I'd assume that — gotta make sure I didn't drop something along the way. Just saying it should be easier to look at your second time around this block ;-) |
After difficulties rebasing and resolving conflicts of the original PR in preparation for final merge, elected to create this clean re-submission that resolves all issues.
034a793
to
f3860a2
Compare
@smg6511 — just to confirm, this doesn't need to be ported back into 3.0.x, correct? |
somehow missed pushing this before merging
Correct, this can wait for the feature release. |
After difficulties rebasing and resolving conflicts of the original PR (#16251) in preparation for final merge, elected to create this clean re-submission that resolves all issues.
What does it do?
Made a number of changes and additions in the processors and grid JS files to correct issues with the grids’ grouping functionality and more accurately build the grid filters depending on the data shown. More specifically:
templatecolumn
specification (generated by a new method in the grids base class), as using renderers on grouping grids interferes with the grouping functionality (because a renderer is an interceptor method in Ext).afterRemoveRow
) were not firing when set up this way; monitoring these events is necessary for maintaining accurate filter options when making changes to a grid's data. Also, there's no reason to specify js in php unless the item in question will change on the fly and needs setup data from the processor.baseParams.group
property.Why is it needed?
Grouping in these grids was not working correctly. Also, providing filter options where no relevant data is available in a given grid is a UX problem that needs to be fixed not only here, but across all grids with filters.
How to test
Related issue(s)/PR(s)
Resolves #16239.
Special Note
Because these updates involve a lot of changes, I didn't want to execute them for all relevant grids at once. This PR completes a logical section and, depending on any requested changes, other PRs will follow what I've done here for other grids.
Before and After Examples
Currently, in MODx 3.0.3-dev, note each of the following problems (in order of appearance in the video):
grid-filt-grouping-current.mov
Now, note how each problem is fixed (action taken in same order as above):
grid-filt-grouping-fixed.mov