Closed (fixed)
Project:
System Monitor
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
11 Oct 2019 at 16:05 UTC
Updated:
10 Feb 2020 at 15:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
merauluka commentedStarted this work against the branch already prepared in #3087826: Implement logic to run monitors and tasks.
GitLab Diff
https://git.drupalcode.org/project/system_monitor/compare/8.x-1.x...task...
Comment #3
merauluka commentedI'll go ahead and take this ticket since it looks like I have a good start on it.
Comment #4
merauluka commentedI have started a documentation page to detail the architecture for the Status Page.
https://www.drupal.org/docs/8/modules/system-monitor/status-page/archite...
Comment #5
merauluka commentedHere is the first look at the logic. It's pretty basic for now and will have to be updated once we work on #3107132: Review and revamp logging system to make it pluggable.
Basically this adds the initial structure (mostly for testing purposes) for the following status page elements:
state.The output present is pretty basic and will likely change once the front end is built for the status page. However, the actual logic to gather and format all of the data from the system logs should now be present.
Comment #6
merauluka commentedAttaching patch to kick off tests.
Gitlab comparison:
https://git.drupalcode.org/project/system_monitor/compare/8.x-1.x...task...
Comment #7
merauluka commentedUpdating patch to remove schema change.
Comment #8
robpowellLooks great! Few questions/comments:
$status_page = $request->attributes->get('sm_status_page');Do we have to be concerned about XSS? In other words, is this user data and if so, does Drupal clean it?
StringTranslationTraitMaintenanceModeSubscriber uses TranslationInterface over the trait, should we do the same?
\Drupal::service('page_cache_kill_switch')->trigger();MaintenanceModeSubscriber does the same thing but shouldn't this be passed by DI?
Comment #9
robpowellComment #10
merauluka commented@robpowell I updated this patch with the latest work that was integrated from other issues that were merged this morning.
Specifically, I have updated the logger to call the "top most" logger in the system when building out log records. I'm thinking that we'll need to revisit this once we start adding more loggers, but for now this appears to work correctly.
As to you other comments, I have updated the status page event subscriber with your suggestions.
Regarding the access check, that attribute is coming in through the route object and the status page value is set from the configuration page. I'm pretty sure that it's okay as is.
Comment #11
robpowellMelissa this looks good.
Comment #14
merauluka commentedMerged!