Comments

damiankloip’s picture

Yes, this is something we have talked about before, some people wanted to use this display plugin only. I am for this.

damienmckenna’s picture

Title: Move 'system' display time to a submodule » Move 'system' display plugin to a submodule
damienmckenna’s picture

Status: Active » Needs review
StatusFileSize
new2.72 KB

WIP, needs some testing.

damienmckenna’s picture

StatusFileSize
new4.99 KB

Some updates - the hook_install() had to be moved over, as did the CSS and the access_menu plugin.

damienmckenna’s picture

StatusFileSize
new24.19 KB

FYI I had problems getting the patch to apply, so here's a zip of the new files.

damienmckenna’s picture

I suspect it may patch correctly when you use "git apply", I used "patch -p1" and it threw up all over my laptop.

damienmckenna’s picture

StatusFileSize
new4.66 KB
new24.52 KB

Rerolled.

damiankloip’s picture

  1. +++ b/admin_views.install
    @@ -2,15 +2,21 @@
    +    drupal_set_message(t('Enabled the new Admin Views System Display submodule.'));
    

    This should just use $return variable and add this message instead. I don't think a dsm() is useful for things like drush.

  2. +++ b/admin_views_system_display.install
    @@ -0,0 +1,15 @@
    +  db_query("UPDATE {system} SET weight = 12 WHERE name = 'admin_views_system_display'");
    

    Just for completeness, related to this, we should probably reset the admin_view module weight if we only need it here now?

Just a couple of things, otherwise looks fine to me!

chris matthews’s picture

Status: Needs review » Needs work
damienmckenna’s picture

Status: Needs work » Needs review
StatusFileSize
new24.62 KB
new703 bytes
new4.84 KB

So, something like this?

damienmckenna’s picture

Status: Needs review » Needs work

This isn't working right, it totally breaks the admin pages. Dangit.

damienmckenna’s picture

Status: Needs work » Needs review
StatusFileSize
new24.92 KB
new8.8 KB
new4.4 KB

Expanded test coverage to make sure the content admin page loads as intended.

damienmckenna’s picture

Ok.. there's something weird.. it fails for me sometimes and doesn't other times. Not sure what's going on :-\

Status: Needs review » Needs work

The last submitted patch, 13: admin_views-n2411193-13.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

damienmckenna’s picture

Status: Needs work » Needs review
StatusFileSize
new24.95 KB
new8.95 KB

Forgot to rename the CSS file.

Status: Needs review » Needs work

The last submitted patch, 16: admin_views-n2411193-15.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

damienmckenna’s picture

Status: Needs work » Needs review
StatusFileSize
new24.99 KB
new5.1 KB
new11.49 KB

The test that fails here works locally. I wonder if it's a bug in Views that's fixed in the dev snapshot but is broken in the current 3.22 stable release?

Status: Needs review » Needs work

The last submitted patch, 18: admin_views-n2411193-18.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

damienmckenna’s picture

damienmckenna’s picture

Let's see if this works now with Views 7.x-3.23..

damienmckenna’s picture

Status: Needs work » Needs review
damienmckenna’s picture

And the tests are green! Woot!

damienmckenna’s picture

FYI if you use "patch -p1" to apply the patch it will fail to rename the CSS file, you need to run mv admin_views.css admin_views_system_display.css, otherwise you'll be missing the CSS changes and will get errors saying it can't find the CSS file.

chris matthews’s picture

damienmckenna’s picture

StatusFileSize
new11.86 KB

Rerolled.

  • DamienMcKenna committed 797c115 on 7.x-1.x
    Issue #2411193 by DamienMcKenna, damiankloip: Move 'system' display...
damienmckenna’s picture

Status: Needs review » Fixed

Committed. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.