Skip to content
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

Draft
wants to merge 18 commits into
base: develop
Choose a base branch
from

Conversation

JoernBerkefeld
Copy link
Contributor

@JoernBerkefeld JoernBerkefeld commented Jan 14, 2022

PR details

What is the purpose of this pull request? (put an "X" next to an item)

  • New metadata support
  • Enhanced metadata

What changes did you make? (Give an overview)

To-Do

  • retrieve filter & resolve all details
  • retrieve filterDefinition & resolve all details
  • resolve filter in automation
  • create filter
  • create filterDefinition
  • update filter
  • update filterDefinition
  • delete filter
  • delete filterDefiniton

Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • test scripts updated
  • Wiki updated (if applicable)

@JoernBerkefeld JoernBerkefeld added enhancement New feature or request; requires increasing the minor version of mcdev. Jira issue-type "Story" c/filter COMPONENT c/filterDefinition COMPONENT labels Jan 14, 2022
@JoernBerkefeld JoernBerkefeld added this to the 3.2.0 milestone Jan 14, 2022
@JoernBerkefeld JoernBerkefeld changed the title Feature/9 add filter definition & resolve filter details Feature/9 add filterDefinition & resolve filter details Jan 14, 2022
@JoernBerkefeld JoernBerkefeld linked an issue Jan 14, 2022 that may be closed by this pull request
3 tasks

// source
if (metadata.sourceTypeId === 1) {
// list
Copy link
Contributor

Choose a reason for hiding this comment

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

if list then?

* @returns {FilterItem} parsed metadata definition
*/
static parseMetadata(metadata) {
try {
Copy link
Contributor

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
Copy link
Contributor

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;
Copy link
Contributor

Choose a reason for hiding this comment

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

want to explain this?

lib/metadataTypes/FilterDefinition.js Outdated Show resolved Hide resolved
* @returns {Promise<FilterDefinitionItem>} Promise
*/
static update(metadata) {
// TODO test the update
Copy link
Contributor

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?

Copy link
Contributor Author

@JoernBerkefeld JoernBerkefeld Jan 17, 2022

Choose a reason for hiding this comment

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

in my defense - the PR is still in draft mode.
image

@JoernBerkefeld JoernBerkefeld self-assigned this Jan 17, 2022
@JoernBerkefeld JoernBerkefeld modified the milestones: 3.2.0, 3.3.0, 3.4.0 Feb 21, 2022
…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
@JoernBerkefeld JoernBerkefeld modified the milestones: 4.2.0 , 4.1.0 Jul 5, 2022
@JoernBerkefeld JoernBerkefeld changed the title Feature/9 add filterDefinition & resolve filter details #9 add filterDefinition & resolve filter details Nov 27, 2022
@JoernBerkefeld JoernBerkefeld modified the milestones: 4.2.0 , 4.3.0 Dec 7, 2022
…filter-details

# Conflicts:
#	package-lock.json
#	package.json
@JoernBerkefeld JoernBerkefeld modified the milestones: 4.4.0, 4.5.0 Mar 10, 2023
…filter-details

# Conflicts:
#	docs/dist/documentation.md
#	package-lock.json
#	package.json
@JoernBerkefeld JoernBerkefeld added this to the 5.3.0 milestone Aug 29, 2023
@JoernBerkefeld JoernBerkefeld modified the milestones: 5.3.0, 5.4.0 Aug 31, 2023
@JoernBerkefeld JoernBerkefeld modified the milestones: 6.2.0, 6.1.0 Feb 6, 2024
@JoernBerkefeld JoernBerkefeld modified the milestones: 6.1.0, 6.2.0 May 14, 2024
@JoernBerkefeld JoernBerkefeld modified the milestones: 7.2.0, 7.1.1 May 24, 2024
@JoernBerkefeld JoernBerkefeld added the PRIORITY used for professional service clients label May 24, 2024
@JoernBerkefeld JoernBerkefeld modified the milestones: 7.1.0, 7.2.0 Jun 27, 2024
@JoernBerkefeld JoernBerkefeld changed the title #9 add filterDefinition & resolve filter details Task/9 add filterDefinition & resolve filter details Jul 1, 2024
@JoernBerkefeld JoernBerkefeld changed the title Task/9 add filterDefinition & resolve filter details Feature/9 add filterDefinition & resolve filter details Jul 1, 2024
@JoernBerkefeld JoernBerkefeld modified the milestones: 7.1.0, 7.2.0 Jul 1, 2024
@JoernBerkefeld JoernBerkefeld modified the milestones: 7.2.0, 7.3.0 Aug 3, 2024
@JoernBerkefeld JoernBerkefeld modified the milestones: 8, 7.6.0 Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/filter COMPONENT c/filterDefinition COMPONENT enhancement New feature or request; requires increasing the minor version of mcdev. Jira issue-type "Story" PRIORITY used for professional service clients
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

[FEATURE] Add support for filterDefinition & resolve filter details
2 participants