Closed (fixed)
Project:
Backup and Migrate
Version:
5.1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
25 Jan 2017 at 13:34 UTC
Updated:
3 Sep 2022 at 09:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
philyComment #3
couturier commentedThere are still some major issues that need to be addressed with this module to make it functional for all users, and work is going pretty slowly. A new maintainer has been requested for months to help with the work, but no one so far with the skills to do so has come forward. So, I'm setting this feature request to a minor priority since there are so many other tasks that are huge as far as making this module viable in Drupal 8. If users are really interested in getting this feature for Drupal 8, it would be nice to see more followers and comments of support in this thread. Also, is someone able to adapt code from Drupal 7 to Drupal 8 and provide a patch for dev?
Comment #4
dinu r. commentedPatch attached.
Comment #5
philyThanks a lot Dinu for your patch but it seems to have no effect either on 4.0-alpha2 or 2017-May-09 dev releases on my Drupal 8.3.1 website.
In case my issue isn't clear I've attached Drupal 7 and Drupal 8 screen captures to help see what's missing in D8.
Comment #6
couturier commentedWe have a new maintainer now, Alex Andrascu and his team at Intellix, who are working toward making D8 a stable release. If you're still interested in this feature, it would be nice to have more work done on a usable patch. We are anticipating a new D8 release soon, so you might watch for that and then work on the patch from there. Also, you might want to mention this feature in the discussion at the D8 Backup and Migrate Roadmap.
Comment #7
mrpauldriver commented+1 for notes.
I used this feature all the time with D7
Comment #8
drupa11y commented+1 for notes - really miss this feature at the moment.
Comment #9
ikit-claw commentedSo you want the same thing in D8 just a log note?
Comment #10
mrpauldriver commentedExactly like D7, whatever that was.
Comment #11
jaesperanza commented+10 to bringing back the add note to the backup :)
Comment #12
jon pollard commentedSuch a handy feature - I miss it!!
Comment #13
bmango commentedYes, this would be very handy! Especially when testing modules out to note at what stage the backup was taken.
Comment #14
damienmckennaComment #15
anybody+1 for this!
Comment #16
paulocsNew patch arriving!
I added the description above the backup the title.
Btw I had to change the
BackupMigrateInterfaceinterface otherwise I would not be able to get the description as the backup method receives the $source_id and $destination_id only.Comment #18
paulocsComment #19
paulocsHere is a much simpler patch that there is no need to change the interface.
Comment #20
anybodyNice work @paulocs and indeed quite simple with huge benefit :)
Only thing I'm unsure about is the need to escape these variables perhaps:
Afterwards they run through the renderer, I guess it's OK, but someone else should have a look for #markup security reasons to be 100% sure.
Comment #21
hmendes commentedHello @Anybody,
I've never done this before, how should this part of code look like?
Comment #22
anybody@hmendes: I'm also unsure about this, as I wrote, so perhaps one of the others in this issue can help?
If it becomes RTBC'd, could be a good candidate for #3223059: Plan for Backup and Migrate 5.1.0?
Comment #23
anybody@paulocs & @hmendes, here we go:
https://drupal.stackexchange.com/questions/184963/pass-raw-html-to-markup
I think inline_template would be nice and could also clean things up here with a
{{description}}variable :)Comment #24
aldairsoares commentedI'm going to review this one!
Comment #25
aldairsoares commentedComment #26
anybodySorry should be "Needs work" as of #23
Comment #29
grevil commentedI created an issue fork and applied the patch from #19.
I don't think, we need any additional escaping for the markup, since it already gets filtered through Xss::filterAdmin. See Render API overview for further information.
EDIT:
Comment #30
aldairsoares commentedI'm going to review it.
Comment #31
aldairsoares commentedAfter applying the last patch, I could use the functionality of add a note at quick backup.
I could not find any phpcs errors and the code looks good to me.
I attached a GIF showing the note added to quick backup.
I'm moving it to RTBC :D
Comment #32
anybodyThanks @Grevil for that additional information in #29! Great! :)
I agree with RTBC and would like to let @DamienMcKenna decide, if we can commit it this way or better put it into an inline_template. For me both is fine as we now know it's secure. :)
Thank you all! Would be cool to have this in the next release, as it's really helpful.
Comment #33
bruno.bicudo+1 to RTBC
inline_templatewould indeed be more restrictive (as an additional escaping for markup). It could be better (maybe), but would it be necessary for this issue's scope?I think using
#markuphere is enough and if needed it can be improved in the future :)Comment #35
damienmckennaCommitted. Thank you all!
Comment #36
damienmckennaComment #37
anybodyThank YOU Damien that's great!! :) Small but very helpful.