Closed (fixed)
Project:
Automatic Updates
Version:
8.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 Mar 2019 at 13:15 UTC
Updated:
16 Apr 2019 at 19:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
heddnHere's the start of a patch, with tests and no real code. Yet.
Comment #3
heddnSo, I had to commit #2 so we could have code and a branch. This next patch builds upon that. All of the code from that patch and here are up for review.
Still remaining:
Plus we will want to decide if we want to use the messenger service or build our own similar thing. Building something similar but not the same thing seems like a lot of unnecessary overhead. Messenger will always get displayed. With any theme. And will work with any caching. Rolling our own means we have to build all that all over again. I'm not sure what the gain is. Perhaps we could add that as a feature/nice to have later.
Comment #4
heddnOne final note, I changed the project name to be more Drupal like and less composer-like. This will make it easier to see if the project is enabled as Drupal doesn't (yet) know any of these things by their composer name. Using the composer name feels more clean but doesn't work in the real world of Drupal.
So we'll see things like:
"project": "core"instead of
"project": "drupal/core"And for contrib:
'project' => 'rabbit_hole'instead of
'project' => 'drupal/rabbit_hole'Comment #5
heddnphpcs.
Comment #7
aaronmchaleRe #3 I'd have to agree that making a custom implementation of the Messenger service doesn't seem to provide any real world advantages and could just result in more maintenance overhead.
Comment #8
catchThis seems like something we'd want to add generically to core whether or not automatic updates are enabled. I can see doing it here first while d.o is sorting out the PSA JSON feed itself, but probably needs a core issue too and might be worth putting up a patch even to get UX team review? I think this is something that could go into core directly once the feed is available.
Isn't PSA short for 'Public Service Announcement'?
Also agreed on just using the messenger service here especially if this ends up a standalone core patch.
Comment #9
aaronmchale+1
Comment #10
heddnOpened #3041885: Display relevant Security Advisories data for Drupal
Comment #12
heddnComment #13
heddnWhile adding tests, I realized we need to add the extension type to the json format. Otherwise for contrib we don't know what to check. Which should we look in?
extension.list.module,extension.list.profile,extension.list.themeComment #14
heddnComment #15
heddnCleaned up tests. This is mostly ready for review now.
Comment #16
heddnComment #18
heddnComment #19
catchNit: JSON (and elsewhere)
Minor but given there are oinly two different lines in the three foreach loops wondering if it could move into a helper with extension type as an argument? Or... not even a helper just inline that logic in a single foreach?
Comment #20
heddnAdded some error logging, more tests and fixed the feedback from #19.
Comment #21
aaronmchaleThis seems related
Comment #22
larowlanThis is looking good 💪
could use in_array here?
Comment #23
heddnRe #22, that is a direct copy/paste from core. I can remove it here since this is contrib, but it might be something to keep in mind when port this to core.
Comment #25
heddnFixed #22 on commit. And added #3045273: Add real endpoint after drupal.org provides a live feed to come back and update things when the real endpoint is live.