-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wr/overwrite object file #1338
Wr/overwrite object file #1338
Conversation
5628e66
to
a3542e2
Compare
@@ -69,6 +158,10 @@ const validateSourceDir = async (dir: string): Promise<void> => { | |||
}) | |||
); | |||
for (const file of sourceFiles) { | |||
if (file.endsWith('.object-meta.xml')) { | |||
const content = fs.readFileSync(file, 'utf8'); | |||
expect(content.split(os.EOL).length).to.be.greaterThanOrEqual(64); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here we ensure that the .object-meta.xml
hasn't been overwritten
@@ -0,0 +1,41 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why did this one change?
(parentXmlObject: XmlObj) => | ||
(component: SourceComponent): WriteInfo[] => { | ||
const output = join(defaultDirectory ?? '', getOutputFile(component)); | ||
if ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if ( | |
if ( // avoid overwriting existing files with empty XML objects |
QA notes: deploy entire dreamhouse project
open org, add description to the field mpd with expected blank objectnew project pkgDir
misc✅ retrieve all StaticResource |
@W-15896939@
forcedotcom/cli#2865