Problem/Motivation
We receive a lot of warnings from the AcquiaTelemetryService's getTelemetryData() method.
Full message:
Warning: Undefined array key "core" in Drupal\acquia_connector\Services\AcquiaTelemetryService->getTelemetryData() (line 192)
It looks like there is a logic beforehand to retrieve Lightning extensions in use. If the module version matches the core version, it assumes it is a core module. I guess in our case, there are no such and this is why we get the warning message.
Proposed resolution
Add a check for existing key.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | check-core-key-3469459-1.patch | 463 bytes | yivanov |
Issue fork acquia_connector-3469459
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
yivanov commentedComment #4
yivanov commentedComment #6
rajan kumar@2026 commentedHi @yivanov
I have successfully applied the patch mentioned above#2 and created the MR. Thank you.
Comment #10
japerryThe earlier MR doesn't address the root issue, but there was some odd things going on with the logic in the getTelemetryData method.. updated the tests to verify correct data is sent and merged!