Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Comment | File | Size | Author |
---|---|---|---|
#40 | views-1792860-40.patch | 65.32 KB | tim.plunkett |
#38 | views-1792860-36.patch | 65.27 KB | tim.plunkett |
#34 | views-1792860-34.patch | 65.22 KB | tim.plunkett |
#34 | interdiff.txt | 4 KB | tim.plunkett |
#32 | views-1792860-32.patch | 62.38 KB | tim.plunkett |
Comments
Comment #1
tim.plunkettComment #2
tim.plunkettHere's a first pass. One patch includes #1788232: Move UI properties from ViewExecutable to a new ViewUI class.
There's more to do!
Comment #3
tim.plunkettMore code!
Comment #4
tim.plunkettAnother patch. I'll need to change some stuff when #1791238: Remove ViewStorageController::save() goes in.
Comment #5
tim.plunkettRerolled now that its in.
Comment #6
dawehneroh, i'm sorry
What about using array_map('check_plain', user_roles(TRUE)), instead? The argument validator is doing that already.
Why not extending/overriding the cloneView method in the UI class?
Comment #7
dawehnerIt is always a question whether you have just a broken code or also a broken test,
especially the addDisplay test is a bit confusing why it fails.
Comment #9
tim.plunkettCombining the two patches.
Comment #11
Lars Toomre CreditAttribution: Lars Toomre commentedOh gosh... both of the patches in #1793510: Move views toward D8 documentation standard in longer apply after this lands. Both of those cleaned up much of the documentation for admin.inc and views_ui.module.
Comment #12
tim.plunkett@Lars Toomre which is why that was postponed. This drastically changes the function signatures, almost none of those fixes would be relevant after this patch.
Comment #13
Lars Toomre CreditAttribution: Lars Toomre commentedUnderstood @tim.
Comment #14
tim.plunkettAddressed #6, moved more code.
Leaving out the tests until DisplayTest is added in another issue.
Comment #16
tim.plunkettApparently, you can't use methods with #pre_render. Everything else uses c_u_f_a() so you can
Comment #17
aspilicious CreditAttribution: aspilicious commentedLess procedural crap in .inc and module files++
To big to review in a patch. But +1 for the idea.
Comment #18
tim.plunkettSince it has gotten rather unmanageable, maybe it'd be better to stop here and commit this, then move forward in smaller chunks?
Assuming this passes, of course.
Comment #20
tim.plunkettWhoops, missed the reordering fix I wrote! This should pass.
Comment #21
dawehnerThis is impressive work so far! Warning: this is no complete review, but as aspilicious said it is hard to review
In general i'm wondering whether we should use the same naming as on the plugins, so buildAddForm, validateAddForm etc.
Comment #22
dawehnerUpdate status, a deeper review this evening.
Comment #23
dawehneradd back.
Comment #24
tim.plunkettAs I said on IRC:
Comment #25
dawehnerI stumbled upon these changes but yeah it kind of makes sense because this file currently uses just ViewUI, so this is fine.
We should really get this in!
Comment #26
tim.plunkettReopening this, using a branch: http://drupalcode.org/sandbox/damiankloip/1685040.git/shortlog/refs/head...
Here's a patch.
Comment #27
tim.plunkett#26: views-1792860-26.patch queued for re-testing.
Comment #28
tim.plunkettI think this should be the last patch down this line, and do the rest in #1798574: Refactor Views UI to be a form controller later.
Comment #29
dawehnerThe problem with a theme/theme.inc is that this code is loaded on all pages, which involves a view, not only in the admin interface, maybe we want to change this?
Comment #30
tim.plunkettI agree with #29.
This had to happen sooner or later.
Moved the relevant code into a views_ui module folder.
Comment #32
tim.plunkettMissed a couple of namespace changes.
Comment #34
tim.plunkettWhoops, missed the poorly named views_container.
Comment #36
dawehnerIt is great that you renamed and moved all the files ...
I think this can go in, it is a great improvement!
Comment #37
dawehner... well
Comment #38
tim.plunkettMissed one thing!
Comment #39
dawehnerBack to rtbc
Comment #40
tim.plunkettThis conflicted with #1760284: Rewrite ViewListController to use the core EntityListController, rerolling. If it passes I'll commit it.
Comment #41
tim.plunketthttp://drupalcode.org/project/views.git/commit/a185a2f