-
Notifications
You must be signed in to change notification settings - Fork 36
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
Feature/9 add filterDefinition & resolve filter details #182
base: develop
Are you sure you want to change the base?
Feature/9 add filterDefinition & resolve filter details #182
Conversation
…on-&-resolve-filter-details-CSCLSROZ-410-+-CSCLSROZ-411
|
||
// source | ||
if (metadata.sourceTypeId === 1) { | ||
// list |
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 list then?
lib/metadataTypes/Filter.js
Outdated
* @returns {FilterItem} parsed metadata definition | ||
*/ | ||
static parseMetadata(metadata) { | ||
try { |
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.
this error is already handled in the saveResults method (only failing the individual record) so should be avoided here as will likely hide other errors/require additional checks in saveResults method
|
||
// target | ||
if (metadata.destinationTypeId === 1) { | ||
// list |
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.
then?
static async retrieve(retrieveDir) { | ||
// #1 get the list via SOAP cause the corresponding REST call has no BU filter apparently | ||
// for reference the rest path: '/automation/v1/filterdefinitions?view=categoryinfo' | ||
const keyFieldBak = this.definition.keyField; |
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.
want to explain this?
* @returns {Promise<FilterDefinitionItem>} Promise | ||
*/ | ||
static update(metadata) { | ||
// TODO test the update |
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 its not tested, then wouldnt it be better to not have this in the PR?
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.
…filter-details # Conflicts: # docs/dist/documentation.md # lib/metadataTypes/Filter.js
…filter-details # Conflicts: # docs/dist/documentation.md # lib/metadataTypes/Filter.js
…feature/9-Add-filterDefinition-&-resolve-filter-details # Conflicts: # docs/dist/documentation.md # types/mcdev.d.js
…filter-details # Conflicts: # docs/dist/documentation.md # lib/metadataTypes/Filter.js # package-lock.json # package.json
…filter-details # Conflicts: # package-lock.json # package.json
…filter-details # Conflicts: # docs/dist/documentation.md # package-lock.json # package.json
…inition details; split off hidden ones, resolve filterDefinition in filter
PR details
What is the purpose of this pull request? (put an "X" next to an item)
What changes did you make? (Give an overview)
To-Do
Checklist