問題文
A cosmetics retailer's developer fixed a production defect by editing the class directly in the Developer Console because the queue was long. The next scheduled release overwrote the fix. What practice would have prevented this?
選択肢
- Make the change in the local project, commit it, and deploy it, because the version control system is meant to be the source of truth and anything edited only in an org is invisible to the next deployment.
- Make the change in the local project and deploy it, and additionally retrieve the org's version first with source tracking so that the conflict is reported and the local copy can be overwritten before the fix is committed.
- Use the Developer Console only for reading logs and running queries, never for editing, so that the project held in version control stays the one place where each of these classes is actually changed and kept.
- Edit in the Developer Console but immediately mark the class in the org so the next deployment skips it, because a component that a deployment has been told to ignore keeps whatever version the org happens to have.