Skip to content

Commit f2a4917

Browse files
committed
AC-15461: Migration New Relic from REST v2 to NerdGraph (GraphQL)
1 parent 528c29a commit f2a4917

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

app/code/Magento/NewRelicReporting/Model/NerdGraph/DeploymentTracker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ private function addOptionalFields(
215215
?string $groupId
216216
): void {
217217
if ($change) {
218-
$variables['deployment']['change_log'] = $change;
218+
$variables['deployment']['changelog'] = $change;
219219
}
220220

221221
if ($user) {

app/code/Magento/NewRelicReporting/Test/Unit/Console/Command/DeployMarkerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ public function testExecuteSuccessWithPartialDeploymentDataV2RestStyle()
431431
$this->assertMatchesRegularExpression('/\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/', $outputContent);
432432

433433
// Should show N/A for missing optional fields
434-
$excludedFields = ['Changelog', 'Commit', 'Deep Link', 'Group ID'];
434+
$excludedFields = ['Change log', 'Commit', 'Deep Link', 'Group ID'];
435435
foreach ($excludedFields as $field) {
436436
$this->assertStringNotContainsString($field, $outputContent);
437437
}

app/code/Magento/NewRelicReporting/Test/Unit/Model/NerdGraph/DeploymentTrackerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function testCreateDeploymentSuccess()
112112
$variables['deployment']['entityGuid'] === $entityGuid &&
113113
$variables['deployment']['description'] === $description &&
114114
$variables['deployment']['version'] === $version &&
115-
$variables['deployment']['change_log'] === $change &&
115+
$variables['deployment']['changelog'] === $change &&
116116
$variables['deployment']['user'] === $user &&
117117
$variables['deployment']['commit'] === $commit &&
118118
$variables['deployment']['deepLink'] === $deepLink &&
@@ -606,7 +606,7 @@ public function testCreateDeploymentMutationStructure()
606606
return isset($variables['deployment']) &&
607607
$variables['deployment']['entityGuid'] === $entityGuid &&
608608
$variables['deployment']['description'] === $description &&
609-
$variables['deployment']['change_log'] === $change &&
609+
$variables['deployment']['changelog'] === $change &&
610610
$variables['deployment']['user'] === $user &&
611611
$variables['deployment']['version'] === $version &&
612612
$variables['deployment']['commit'] === $commit &&

0 commit comments

Comments
 (0)