-
Notifications
You must be signed in to change notification settings - Fork 263
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
[ACS-8065][ADF] Unify components in TagModule #10226
base: develop
Are you sure you want to change the base?
[ACS-8065][ADF] Unify components in TagModule #10226
Conversation
lib/content-services/src/lib/tag/tags-creator/tags-creator.component.ts
Outdated
Show resolved
Hide resolved
name: 'adfStringsToChips', | ||
standalone: true | ||
}) | ||
export class AdfStringsToChipsPipe implements PipeTransform { |
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.
we don't need this pipe to be in the core, please just use this code in the component instead
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.
transforming other way will need much more problematic changes, that was the cleanest way to do it
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.
you can do the same in the component, what's the problem moving this function there? this pipe does zero performance saving as it's not even marked as pure
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.
Pipes are pure by default, so no need mark it manually. Also map
function is returning brand new array.
In this scenario I am not changing any variable data type, so the change happens while passing data between components. There is already a lot of different variables for different operations.
The only way is to add input field for string array, which will need additional checks on every array change, which will cause additional calls on change.
lib/core/src/lib/dynamic-chip-list/dynamic-chip-list.component.ts
Outdated
Show resolved
Hide resolved
...ervices/src/lib/content-metadata/components/content-metadata/content-metadata.component.scss
Outdated
Show resolved
Hide resolved
Quality Gate failedFailed conditions See analysis details on SonarCloud Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (check one with "x")
What is the current behaviour? (You can also link to an open issue here)
https://hyland.atlassian.net/browse/ACS-8065
What is the new behaviour?
all components in tag module use dynamic chip component
Does this PR introduce a breaking change? (check one with "x")
If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...
Other information: