Skip to content

MWPW-188484: fix create variation on a new clone#616

Open
yesil wants to merge 11 commits intomainfrom
MWPW-188484
Open

MWPW-188484: fix create variation on a new clone#616
yesil wants to merge 11 commits intomainfrom
MWPW-188484

Conversation

@yesil
Copy link
Contributor

@yesil yesil commented Feb 23, 2026

This PR breaks initFragment method into multiple smaller methods and fixes an issue with variation creation from a fresh duplicate.

Resolves https://jira.corp.adobe.com/browse/MWPW-188484
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

  • C1. Cover code with Unit Tests
  • C2. Add a Nala test (double check with #fishbags if nala test is needed)
  • C3. Verify all Checks are green (unit tests, nala tests)
  • C4. PR description contains working Test Page link where the feature can be tested
  • C5: you are ready to do a demo from Test Page in PR (bonus: write a working demo script that you'll use on Thursday, you can eventually put in your PR)
  • C.6 read your Jira one more time to validate that you've addressed all AC's and nothing is missing

🧪 Nala E2E Tests

Nala tests run automatically when you open this PR.

To run Nala tests again:

  1. Add the run nala label to this PR (in the right sidebar)
  2. Tests will run automatically on the current commit
  3. Any future commits will also trigger tests as long as the label remains

To stop automatic Nala tests:

  • Remove the run nala label

Note: Tests only run on commits if the run nala label is present. Add the label whenever you need tests to run on new changes.

Test URLs:

@aem-code-sync
Copy link

aem-code-sync bot commented Feb 23, 2026

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch.
In case there are problems, just click the checkbox below to rerun the respective action.

  • Re-sync branch
Commits

@aem-code-sync aem-code-sync bot temporarily deployed to MWPW-188484 February 23, 2026 10:52 Inactive
@codecov
Copy link

codecov bot commented Feb 23, 2026

Codecov Report

❌ Patch coverage is 95.10490% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.68%. Comparing base (57bbb48) to head (681eaf9).

Files with missing lines Patch % Lines
studio/src/mas-fragment-editor.js 95.62% 6 Missing ⚠️
studio/src/mas-repository.js 0.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #616      +/-   ##
==========================================
+ Coverage   83.61%   83.68%   +0.06%     
==========================================
  Files         177      177              
  Lines       47795    47838      +43     
==========================================
+ Hits        39965    40032      +67     
+ Misses       7830     7806      -24     
Files with missing lines Coverage Δ
studio/src/mas-variation-dialog.js 94.54% <100.00%> (ø)
studio/src/reactivity/source-fragment-store.js 77.33% <100.00%> (+0.46%) ⬆️
studio/src/mas-repository.js 53.72% <0.00%> (ø)
studio/src/mas-fragment-editor.js 88.40% <95.62%> (+1.84%) ⬆️

... and 4 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 57bbb48...681eaf9. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants