Skip to content

Metadata format support #94

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

Merged
merged 6 commits into from
Aug 10, 2020
Merged

Metadata format support #94

merged 6 commits into from
Aug 10, 2020

Conversation

rcoringrato-sfdc
Copy link
Contributor

What does this PR do?

Provides component resolution for metadata files that are in metadata (non-decomposed) format.

What issues does this PR fix or reference?

@W-7618945@

@rcoringrato-sfdc rcoringrato-sfdc requested a review from a team as a code owner July 30, 2020 23:14
@rcoringrato-sfdc rcoringrato-sfdc marked this pull request as draft July 30, 2020 23:14
@rcoringrato-sfdc rcoringrato-sfdc marked this pull request as ready for review August 6, 2020 14:35
export const SEAN_FOLDER = join(SEAN_DIR, 'A_Folder');
export const SEAN_NAMES = ['a.sean', 'b.sean', 'c.sean'];
export const SEAN_PATHS = SEAN_NAMES.map(p => join(SEAN_FOLDER, p));
export const SEAN_COMPONENTS: SourceComponent[] = [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i like my components shaken, not stirred

/**
* Control whether combined (metadata and content) metadata files are allowed for an adapter.
*/
public allowContentMetadataXml(): boolean {
Copy link
Contributor

@brpowell brpowell Aug 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two minor nits:

  • Can we rebrand this concept as "metadata with content" to mean the types that have some sort of binary data in addition to the metadata xml? Mostly to stay consistent with Metadata and MetadataWithContent as documented in the api. So the default and decomposed source adapters would be false and the rest true
  • This is similar to the ownFolder property in the adapters because it describes the kind of metadata the adapter handles. Can we either make both descriptors a getter method like it is here, or a simple protected property like ownFolder is?

@rcoringrato-sfdc rcoringrato-sfdc merged commit 90ffb86 into develop Aug 10, 2020
@rcoringrato-sfdc rcoringrato-sfdc deleted the rc/scan-meta branch August 10, 2020 16:37
sfsholden pushed a commit that referenced this pull request Aug 13, 2020
* Metadata format support

* Fix duplicates, added tests.

* Swapped logic for metadata with content.

* Lint updates

* Lint changes
sfsholden pushed a commit that referenced this pull request Aug 13, 2020
* Metadata format support

* Fix duplicates, added tests.

* Swapped logic for metadata with content.

* Lint updates

* Lint changes
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.

2 participants