BlackFriday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Adobe Exam AD0-E706 Topic 7 Question 44 Discussion

Actual exam question for Adobe's AD0-E706 exam
Question #: 44
Topic #: 7
[All AD0-E706 Questions]

You fixed an issue in a third-party extension using a patch named m2-hotfixes/extension-fix.patch Before committing the patch to the repository you want to test it locally

How do you test a patch in a clean working copy?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Sylvie
12 days ago
B) Run the command git apply m2-hotfixes/extension-fix.patch - Bingo! Give that person a cookie. Applying the patch before testing is the way to go. Anything else is just playing 'Magento Roulette'.
upvoted 0 times
Karon
7 hours ago
B) Run the command git apply m2-hotfixes/extension-fix.patch
upvoted 0 times
...
...
Stevie
13 days ago
D) Configure a deploy hook in .magento.app.yaml that executes - Ah, the old 'deploy it to production and see what happens' strategy. Bold move, my friend, but I prefer to test in a safe environment first.
upvoted 0 times
...
Lavonda
14 days ago
C) Run the command bin/magento setup:hotfix:apply --patch=m2-hotfixes/extension-fix.patch - Nah, that's not the right way to test a patch. I'd rather use a magic wand and hope for the best.
upvoted 0 times
...
Kallie
15 days ago
A) Commit the patch because the pre-commit hook will abort the commit if any hotfix causes an issue - Really? Committing a patch without testing it first? That's like jumping off a cliff and hoping you'll grow wings on the way down.
upvoted 0 times
Keena
9 hours ago
B) Run the command git apply m2-hotfixes/extension-fix.patch
upvoted 0 times
...
...
Gail
2 months ago
B) Run the command git apply m2-hotfixes/extension-fix.patch - This is the correct answer. We need to apply the patch before testing it locally, not commit it directly.
upvoted 0 times
Rosio
18 days ago
No need for that. Just apply the patch using git apply command.
upvoted 0 times
...
Dianne
24 days ago
Should we also consider configuring a deploy hook in .magento.app.yaml?
upvoted 0 times
...
Tomoko
27 days ago
Yes, that's correct. We need to apply the patch before testing it locally.
upvoted 0 times
...
Hester
1 months ago
I think we should run the command git apply m2-hotfixes/extension-fix.patch
upvoted 0 times
...
...
Elmira
2 months ago
I'm not sure, but maybe configuring a deploy hook in .magento.app.yaml could also work
upvoted 0 times
...
Laquita
2 months ago
I agree with Na, running the git apply command seems like the right approach
upvoted 0 times
...
Na
2 months ago
I think the correct way is to run the command git apply m2-hotfixes/extension-fix.patch
upvoted 0 times
...

Save Cancel