Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ParisLiakos’s picture

Status: Active » Needs review
FileSize
6.96 KB

with this patch i have the querylog back

moshe weitzman’s picture

Status: Needs review » Needs work

Thanks. This is badly needed.

I think we use #type=table now instead of #theme=table.

Also, why are we calling out to drupal_render() just to build a string. Doesn't string concat work just as well. For example, devel_shutdown_real()

moshe weitzman’s picture

Priority: Normal » Major
ParisLiakos’s picture

Status: Needs work » Needs review
FileSize
7.09 KB
880 bytes

Also, why are we calling out to drupal_render() just to build a string. Doesn't string concat work just as well. For example, devel_shutdown_real()

Because some functions that used to return a string because they were calling theme() directly (eg devel_query_table()) now return a render array, so in the end i would have to concatenate string with arrays..making everything arrays instead, results to a single call to drupal_render in the end.
It also makes things easier to override for themers, eg adding/removing classes.

You are right for the '#type' => 'table', fixed that

pcambra’s picture

Status: Needs review » Needs work
FileSize
6.91 KB

Here's a reroll of #4, we need to review it because query log is not displaying anymore

cs_shadow’s picture

Status: Needs work » Needs review

Marking for review.

pcambra’s picture

Status: Needs review » Needs work

no, there's still something wrong with the change, query log is not displaying anymore

ParisLiakos’s picture

probably because devel_shutdown_real needs to move to kernel.terminate event, so that request is available

The last submitted patch, 4: devel-remove_theme-2215439-4.patch, failed testing.

The last submitted patch, 5: devel-remove_theme-2215439-5.patch, failed testing.

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 5: devel-remove_theme-2215439-5.patch, failed testing.

lussoluca’s picture

All code mentioned in #5 has been removed from Devel.

There are some calls to theme() into devel_node_access but that module is broken in other ways also.
IMHO we need to decide if we want to remove devel_node_access from the codebase for now or to join forces to fix it. At this point devel_node_access is the main blocker for a stable version of Devel.

willzyx’s picture

Component: devel » devel_node_access

Moving to devel_node_access component

@lussoluca IMHO we can mark dna as experimental without removing it from the code base

lussoluca’s picture

@willzyx I think that experimental mode are for modules that works but with some caution. Devel DNA doesn't work at all at the moment.
But if this can move us more near to a beta version let's do that.

willzyx’s picture

@lussoluca you are right but if we want to release a beta version without remove DNA from codebase, we need to clearly underline that it is not stable nor ready for usage.. So add a warning message to the module info could be a simple and viable solution

moshe weitzman’s picture

I think we should remove DNA. It can return when it has fully ported.

lussoluca’s picture

Status: Needs work » Needs review
FileSize
76.53 KB

I've just discovered that Experimental mode is only for Core:

// Warn if any experimental modules are installed.
    $experimental = array();
    $enabled_modules = \Drupal::moduleHandler()->getModuleList();
    foreach ($enabled_modules as $module => $data) {
      $info = system_get_info('module', $module);
      if ($info['package'] === 'Core (Experimental)') {
        $experimental[$module] = $info['name'];
      }
    }
    if (!empty($experimental)) {
      $requirements['experimental'] = array(
        'title' => t('Experimental modules enabled'),
        'value' => t('Experimental modules found: %module_list. <a href=":url">Experimental modules</a> are provided for testing purposes only. Use at your own risk.', array('%module_list' => implode(', ', $experimental), ':url' => 'https://www.drupal.org/core/experimental')),
        'severity' => REQUIREMENT_WARNING,
      );
    }

We can "mark" DNA as experimental (in module or package name) but this isn't enforced by Core :-(

This patch removes DNA from Devel code base.

As said before I'll offer my support for a complete port of DNA so we can re-add it as soon as possible.

salvis’s picture

I think we should remove DNA. It can return when it has fully ported.

If DNA is holding back Devel, then I agree with removing it from the D8 branch.

As said before I'll offer my support for a complete port of DNA so we can re-add it as soon as possible.

Since I can't seem to find time to work on it, that would be wonderful...

salvis’s picture

There is actually a project node for DNA at https://www.drupal.org/project/devel_node_access . Moshe has unpublished it when DNA moved back into Devel in 2008.

Should we move it there again and get the node published?

I think removing DNA from Devel should be in its own issue though, not under "Remove calls to theme()".

moshe weitzman’s picture

Title: Remove calls to theme() » Remove DNA module from Devel project.
Status: Needs review » Reviewed & tested by the community

I just re-published https://www.drupal.org/project/devel_node_access, and re-titled this issue. IMO this is RTBC.

salvis’s picture

Status: Reviewed & tested by the community » Fixed

I've committed #18 and moved the code to the Devel Node Access project.

Patches and all help are welcome there!

DNA for D7 remains here.

lussoluca’s picture

Thanks Salvis!

@moshe it's time for alpha2?

moshe weitzman’s picture

Sure. How about beta1?

lussoluca’s picture

if @willzyx agree, I'm ok for a beta1

willzyx’s picture

I'm OK with a new release. Opened #2801713: Create 8.x-1.0-beta1 release for this. Feel free to re-title the issue if you think beta1 is more appropriate

Status: Fixed » Closed (fixed)

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