Closed (fixed)
Project:
Backup and Migrate
Version:
8.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
26 Apr 2019 at 21:07 UTC
Updated:
26 Jun 2020 at 15:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
waverate commentedPatch attached.
Comment #3
waverate commenteddrupal-check after patch at #2.
Comment #4
vuilComment #5
vuilBetter decision for
drupal_set_message()replacement.Comment #6
vuilComment #7
vuilAdd the replace of deprecated
drupal_realpath().Comment #8
vuilComment #9
vuilComment #10
vuilComment #11
vuilComment #12
vuilWaw, the patch is ready! :)
Comment #13
vuilComment #14
damienmckennaComment #15
vuilComment #16
rpayanmI re-rolled it.
I fixed:
We still need to work on:
Comment #17
rpayanmComment #18
salah1I'm little confused on how to help out on the "deprecated issues of B&M".
The following D9 Plan for B&M indicates that:
https://www.drupal.org/project/backup_migrate/issues/3092547
Which i think means: one child issue per deprecation OR per-file-to-be-fixed.
However, it looks like from this thread that one BIG patch is being updated.
The advantage of "one child issue per deprecation-error OR per file-to-be-fixed " is:
-its easier to see what's left from the deprecation errors.
-easier to commit/maintain since its one item/one file etc.
Please let me know if I'm wrong. I will wait a little and then work as indicated above.
Comment #19
damienmckennaLet's get this into the next release.
Comment #20
damienmckennaThis example might help: https://www.php-fig.org/psr/psr-4/examples/
Comment #21
damienmckennaComment #22
damienmckennaThis includes some additional cleanup.
Comment #23
damienmckennaComment #25
damienmckennaWorking on fixing the errors.
Comment #27
damienmckennaWIP.
Comment #29
damienmckennaI've come to realize that a) we can merge the 3rd party library into the main codebase, b) doing so would be a massive API change and so would require a new branch.
So we'll fix the smaller issues here but will then have to do a new branch to finish the D9 compatibility changes. At that point we should also consider refactoring much of the API to get rid of the unnecessary layers.
Comment #30
damienmckennaThis should fix one of the last bugs.
Comment #32
damienmckennaThe last bug seems to be because the backup tries to happen before the private storage system is configured and the APIs aren't detecting the problem.
Comment #33
damienmckennaAlso need to roll back some of the unnecessary code changes, those should be done separately.
Comment #34
damienmckennaComment #35
damienmckennaComment #36
damienmckennaThis moves the custom library into the main src/Core directory, moves some things from src into src/Drupal and updates things to suit; it worked locally, so we'll see if the tests are ok.
Comment #38
damienmckennaSolved! There was a line in src/Core/Destination/DirectoryDestination.php that needed to use getSchema() instead of isValidSchema().
Comment #39
damienmckennaUpdated composer.json file.
Comment #40
damienmckennaSome improvements to README.txt and composer.json, so I'm not going to rerun the tests.
Comment #41
damienmckennaTrying to fix the D9 test failures.
Comment #42
damienmckennaOk, manually testing it on D9.0 runs into problems, so it isn't going to be committed today :-\
Comment #43
damienmckennaThe D9 errors are mostly related to a missing "config_export" item in the annotations.
Also, drupal-check reported this:
Comment #44
damienmckennaThe DrupalEnvironment class seemed to part of something that was planned but never finished, so let's just get rid of it.
This also adds the missing "config_export" items.
Comment #45
damienmckennaOne bug left..
Comment #46
damienmckennaComment #47
damienmckennaLet's see if this solves the last problem.
Comment #48
damienmckennaThis appears to fix the @dataProvider syntax, let's hope it works correctly now.
Comment #49
damienmckennaTHE TESTS ARE GREEN ON D9! WOOHOO!!
Committed.
Further work will be done in other tickets.
Comment #50
damienmckennaComment #51
2dareis2do commentedhttps://www.drupal.org/project/backup_migrate/issues/3051092#comment-136... works for me.
Thanks
Comment #52
damienmckenna