Closed (fixed)
Project:
Hosting
Version:
7.x-3.x-dev
Component:
Code
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Sep 2017 at 20:26 UTC
Updated:
26 Jul 2018 at 15:54 UTC
Jump to comment: Most recent


Comments
Comment #3
colanWould it be hard to switch to checkboxes, where they're all checked by default? Better UX I think.
Comment #4
jon pughThe available values are dynamic. Whatever goes into drush_log() gets saved there. That's why I didn't do checkboxes initially, in case someone wanted to set their own before we knew what the available log entries were. The hosting_log table might get deleted in some sites, so looking it up based on that isn't really reliable either.
I'm going to say that the Hosting Settings page is pretty advanced anyway, so maybe this is good enough for its intended audience?
Comment #6
helmo commentedConverting the UI to checkboxes might be nice as a followup, but this works.
Merged with only a whitespace fix
Comment #7
jon pughAwesome!!! Major usability improvement.
Thanks hello!
Comment #9
colanThis seems to change the default behaviour from showing everything to showing less, which should not be happening. Defaults should only change if the configuration has been changed by the user. For example, everyone's been complaining about HTTPS certificate generation problems stemming from #2952411: Restore Let's Encrypt log output in Verify tasks because they can no longer see what's going on, and have no idea why.
We need to reset this so that everything shows by default.
Unassigning Jon here so that anyone else can pick it up.
Workaround until this gets fixed:
Also: Follow-up issue for the UX improvement is happening in #2960769: Add proper UX to the selector for choosing logs types to show.
Comment #10
helmo commentedSince these values are dynamic we need some option to indicate 'ALL', any newly invented log type would otherwise be ignored.
What if we set the default value for hosting_task_logs_types_display to 'ALL' and extend the sql query to be something 'type IN (:types) OR show_all = :showall'
Comment #11
colanSounds good to me.
Comment #14
helmo commentedThis new commit adds a special type "ALL. And sets the default to that.
Comment #15
colanGreat! Thanks.