-
Notifications
You must be signed in to change notification settings - Fork 73
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
Allow type change in ArtifactIndex (Closes #1681) #1682
Conversation
For clarity, this enables users to modify the type information in an artifact's metadata. It does not change the associated data in any way. |
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.
The commit message comment is more pressing. The other issue is minor and a comment on legibility/maintainability but it isn't blocking the merge.
For more clarity on the ramifications of changing the |
…change 1. Change meaninfule commit message when changing the attribute of an Artifact Node. 2. Add a ConfirmDialog with warnings for artifact data type Change and change it only if confirmed.
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.
One minor comment. Otherwise, it looks good!
if (newVal && newVal !== oldVal) { | ||
const confirmed = opts.confirmation ? await opts.confirmation.call(this, | ||
opts.nodeName, | ||
{newValue: newVal, oldValue: oldVal} |
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.
As a minor point, I am not a fan of packing arguments into an options object unless there are a lot of optional arguments. Otherwise, it obscures the method signature without any real benefit.
7e280a9
to
f425b7d
Compare
No description provided.