Closed (fixed)
Project:
Acquia Connector
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
27 Feb 2019 at 12:31 UTC
Updated:
12 Jan 2020 at 18:05 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
saesa commentedComment #3
saesa commentedComment #5
saesa commentedComment #6
bhanuprakashnani commentedI have changed the deprecated functions of drupal_set_message(). Please review and tell if any more changes are required. Thank you.
Comment #7
maliknaik commentedI've replaced the all the deprecated APIs from the project.
Replaced:
drupal_set_message()with\Drupal::messenger()->addMessage().\Drupal::messenger()in the classes extending fromConfigFormBaseandPluginBaseI've used$this->messenger()->addMessage()Solarium\Core\Plugin\PluginwithSolarium\Core\Plugin\AbstractPlugin.db_select()with\Drupal::database()->select().db_query()with\Drupal::database()->query().drupal_get_profile()with\Drupal::installProfile().file_htaccess_lines(FALSE)withDrupal\Component\PhpStorage\FileStorage::htaccessLines(FALSE).\Drupal::entityManager()with\Drupal::entityTypeManager().\Drupal::l()with\Drupal\Core\Link::fromTextAndUrl()->toString().\Drupal::url()with\Drupal\Core\Url::fromRoute()->toString()\Drupal\KernelTests\KernelTestBase's getMock()method withgetMockBuilder()->getMock()Comment #8
maliknaik commentedComment #9
maliknaik commentedComment #10
sharique commentedUpdated patch to address mode deprecations.
Also updated tests for deprecations.
Comment #11
joshi.rohit100Marked test to proceed without waiting for the branch to pass.
Comment #12
sharique commentedUpdated patch to fix tests.
Comment #13
sharique commentedFailing tests should be reduced by one,
AcquiaConnectorSpiTest is passing my local, but failing in ci.
Comment #14
joshi.rohit100Patch#13 applied successfully but still there are some deprecation errors -
Fixing these error in the this patch and now there is no error
42/42 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
[OK] No errors
Comment #15
amitgoyal commentedAfter applying the patch in #14, there are no deprecations,
Comment #16
kristen polPer a Slack discussion with Gábor Hojtsy regarding usage of D9 tags (Drupal 9, Drupal 9 compatibility, Drupal 9 readiness, etc.), "Drupal 9 compatibility" should be used for contributed projects that need updating and "Drupal 9" was the old tag for D8 issues before the D9 branch was ready. Doing tag cleanup here based on that discussion.
Comment #17
danepowell commentedThanks for everyone's work on this so far. Here's the most recent patch that applies to 8.x-2.x (many of these deprecations were fixed in the recent 8.x-2.x release). The only thing that's lacking is the simpletest to PHPUnit conversions. I wasn't sure about the work related to that in previous patches.
Comment #18
danepowell commentedI think this is 98% complete, just need to figure out a deprecation scanning issue. Hopefully it also fixes tests on d.o. Will need a backport to 8.x-1.x after it's merged.
Comment #19
danepowell commentedHmm, the test failure seems like some kind of testbot internal error. No idea what's going on there. Opened #3102874: Ancillary require failure for support.
Comment #20
danepowell commentedHere's the final version of the patch, if we can just get the testbot working.
Comment #22
danepowell commentedCommitted to 8.x-2.x, awaiting backport to 8.x-1.x
Comment #24
danepowell commentedThanks again to everyone who contributed to this issue.