MWPW-203042: Plans - English-US language grouped variations updates - #1184
Conversation
|
Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch.
|
|
SNOW Change Request Transaction ID [IO]: 0000019c1eec85a3-1fba758e |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1184 +/- ##
==========================================
+ Coverage 90.71% 90.74% +0.02%
==========================================
Files 318 318
Lines 101712 101712
==========================================
+ Hits 92271 92301 +30
+ Misses 9441 9411 -30 see 7 files with indirect coverage changes Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
Axelcureno
left a comment
There was a problem hiding this comment.
Found one real bug: in applyRow, the drift check runs before the already-applied check (pzn-tag-applier.mjs:166 vs 174). Since selectRows already excludes no-op rows, expected and next are never equal for a row that reaches here — so once a row is actually migrated, liveTags == next implies liveTags != expected, and it hits the drift branch first. already-applied can never fire. Re-running the same apply (or resuming after a partial-batch failure) reports those rows as DRIFTED and exits 2 instead of reporting ALREADY-APPLIED and exiting 0. Swap the order — check sameTags(liveTags, next) first.
Same root cause bites --revert too. Also: revert doesn't auto-carry --allow-flags from the original forced apply, so a force-applied COLLISION row silently no-ops on revert unless you pass the same flag again — easy to miss since it just prints a SKIP line.
Nice guardrails otherwise — If-Match on every write, version-before-write, per-market batching, dry-run default. Once the check order's fixed this is in good shape. Small optional nits: no tests on the applier's own selection/apply logic (would've caught the ordering bug), no --author-host allowlist, no formula-injection escaping in the xlsx writer, and a leftover //@TODO host in the README.
…formula injection in xlsx; added host allowlist
|
Re-checked on f3ced54. The applyRow order fix is right, and it covers revert too since both share the same path. Two leftovers, neither blocking: the new tests only hit sameTags/selectRows, so the already-applied path that caused this is still untested (applyRow isn't exported); and |
Blocker fixed on f3ced54; remaining items are non-blocking nits.
Axelcureno
left a comment
There was a problem hiding this comment.
Approving. Blocker fixed, the two leftovers I noted are follow-up nits. Heads up that Nala Gate still needs the run nala label before this can merge.
yesil
left a comment
There was a problem hiding this comment.
Could you add a dryRun mode with logging and attach the dry-run logs?
The script appears to have a significant impact, so we should make sure the dry run provides an accurate projection of exactly what would happen during a real run, without making any actual changes.
Resolves https://jira.corp.adobe.com/browse/MWPW-203042
QA Checklist: https://wiki.corp.adobe.com/display/adobedotcom/M@S+Engineering+QA+Use+Cases
Please do the steps below before submitting your PR for a code review or QA
🧪 Nala E2E Tests
Nala tests run automatically when you open this PR.
To run Nala tests again:
run nalalabel to this PR (in the right sidebar)To stop automatic Nala tests:
run nalalabelTest URLs: