The report recommends that a services.yml file be created as a best practice, but is that really a best practice? It seems like what it really does is create an area where things can go wrong, that one should only have a services.yml file if you are actively overwriting what is in core.services.yml or otherwise you have to manually update the services.yml file for each new Drupal version that changes something... or you'll overwrite that, as other conversations have discussed. It seems to me that it could be argued that not having a services.yml is a better default practice, that indeed this is why it is optional.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

grantkruger created an issue. See original summary.

socketwench’s picture

Hm. Yeah, that strikes me as kind of out of date. The check should be updated accordingly.

socketwench’s picture

Priority: Minor » Normal

Reading over the link (thank you for that!) it seems less that Site Audit should stop reporting on services.yml entirely, but do the complete opposite:

If a site-specific services.yml *is* defined, we should mark it as a warning. "Use of a site-specific services.yml is unnecessary for most sites, and can cause issues as it overrides core.services.yml."

socketwench’s picture

Status: Active » Needs review
FileSize
3.01 KB

Inverts the check and references the above core isssue.

hey_germano’s picture

Inverting this check makes sense to me. Here's a re-roll of socketwench's patch in #4 for the 3.x branch.

  • jrglasgow committed eaecb23 on 8.x-3.x authored by hey_germano
    Issue #2954632 by socketwench, hey_germano: Stop reporting on missing...
jrglasgow’s picture

this has been committed to the 8.x-3.x branch

hey_germano’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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