-
-
Notifications
You must be signed in to change notification settings - Fork 531
Editor grids permissions refactor, enhancements, and fixes #16653
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
base: 3.x
Are you sure you want to change the base?
Conversation
|
@smg6511 Is this close to being ready? |
|
@opengeek Yes, very close - been hammering away at it. It should be ready for review by early next week. |
3045679 to
7739175
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## 3.x #16653 +/- ##
============================================
- Coverage 21.53% 21.49% -0.04%
- Complexity 10734 10775 +41
============================================
Files 565 566 +1
Lines 32540 32915 +375
============================================
+ Hits 7007 7075 +68
- Misses 25533 25840 +307 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@smg6511 this is a big one—kudos on getting it to this stage! Since it's fresh on your mind and touches so many areas, it will take a while to fully review I suspect (was just discussing this with @jaygilmore and @opengeek). Any suggestions or checklists of all the various nooks and crannies that should be tested to get this one merged? |
Ok, here's generally how I'd suggest going through this: Initial RunthroughI overhauled the base grids classes (in Grids with New "Creator" Column and Protected RecordsThese are the grids where MODX provides built-in records to start with and/or where an Extra installs a record (which usually should only be removed by un-installing the Extra [such as in Namespaces]):
A few notable details:
All Editor Grids
General StrategyAs I was working through this PR, I kept one browser open with an Admin user with full permissions and another with an alternate user with permissions I'd vary to check my work. I basically systematically went through each nav menu item and completed updates to all relevant grids for one area at a time. I'd suggest the same for reviewing. Remember there are some grids that are a couple hops away, and can be easy to miss:
|
49b4b53 to
b3dcd12
Compare
|
@smg6511 — I am trying to get a collaborative review session together for this PR so we can get it integrated sooner than later. If possible, could you resolve the current small conflict in modx.grid.js? |
|
@opengeek - I fixed the conflict but, dagonit, unintentionally ended up merging instead of force pushing because I was trying to fix a minor format error at the same time as resolving the conflict ... grrr. Hopefully this'll be ok. |
Unfortunately, that merge commit is problematic as it now shows completely unrelated changes in the diff. |
|
How to back out of that is the question then :-/ Maybe I can revert the merge? |
Formatting, code style changes only
Apply new permissions methods; includes adjustments to base grid class
Formatting, code style changes only
Render links and checkboxes according to user permissions
Remove legacy cls references and mark others for removal
Tweaks and optimizations; fix issue with fields and tvs grids not showing inactive rows properly
Formatting tweak
Formatting, style, optimization only
Changes to js, css, and Lexicon common to multiple areas of this PR
Formatting, code style & optimization changes only
Formatting, code style & optimization changes only
Updates display of and ability to select row actions (gear icon), as well as display of various action buttons. Also adjustments made to base grid class.
A few new fixes and additions
Tweaks, clean up, and application of new create button method to various grids
A few rule additions and updates...
This reverts commit b5a9743.
Just a few additions/updates
Fix small type (really just to force the CI to compile assets)
Pulling for PR, will add back to a new branch/PR
0f07869 to
4490a7b
Compare
|
Hey @smg6511, I just noticed a new force push. Is this ready or are you still working on it? Do you have a rundown of things to test? It's 100 files, so I'm trying to figure out where to take the first bite. |
|
@matdave - Hi Mat - thanks for digging into this. To answer your questions:
|
|
BTW, I'm fine if you want to consider that out of scope since it's not a regression. Just now that everything else is working, I'm noticing the things that shouldn't be there. |
|
@matdave - Yeah, I didn't mess with that since it's tree-related and I was sticking specifically to the grids. There are some issues with the similarly-constructed Resource Groups trees and their toolbars/buttons I'd look to address separately. |
matdave
left a comment
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.
Good work!
|
@matdave - Thanks, man! Appreciate you taking the time to review. Cheers :-) |

Related PR
See also #15919. This is a re-packaging of that PR; this new PR seeks to cover all editor grids across the application and separates out some work (for a future PR) that had been begun around internationalizing core names and descriptions within some of the grids.
Related Issues
#14929, #16507