gravitino icon indicating copy to clipboard operation
gravitino copied to clipboard

[Improvement] Unify the modification behavior of the comment field.

Open mchades opened this issue 1 year ago • 4 comments

What would you like to be improved?

Currently, only the fileset supports the removeComment change; other entities like catalog and table only support updateComment changes. Additionally, newComment cannot be null or an empty string. We should unify this behavior.

How should we improve?

Unify the modification behavior of the comment field:

  • deprecated the removeComment change
  • the new comment of updateComment supports null and empty string

mchades avatar Sep 20 '24 02:09 mchades

@mchades i want to have a try.

koonchen avatar Sep 22 '24 15:09 koonchen

@koonchen No problem! Please go ahead and feel free to ping me if you have any questions

mchades avatar Sep 23 '24 02:09 mchades

Deprecate the removeComment change across all entities. Reasoning: With the new behavior of updateComment (detailed below), removal of comments can be handled using this existing operation instead of a separate change type.

AbhiSharmaNIT avatar Oct 02 '24 16:10 AbhiSharmaNIT

Allow null or empty string as valid values for newComment in updateComment. If newComment is null or an empty string, it should be interpreted as removing the comment.

AbhiSharmaNIT avatar Oct 02 '24 16:10 AbhiSharmaNIT

@AbhiSharmaNIT Yeah, you summed it up correctly!

I have not seen @koonchen submit the relevant PR so far, so I think if you are interested in this issue, you can also submit a PR.

mchades avatar Oct 07 '24 11:10 mchades

@mchades this week is a national holiday, and you didn't assign me

koonchen avatar Oct 08 '24 02:10 koonchen

@mchades this week is a national holiday, and you didn't assign me

assign is not a required step, you can start at any time.

mchades avatar Oct 08 '24 02:10 mchades

@mchades I don't think so. You need to let others know the urgency and responsibility of the matter.

koonchen avatar Oct 08 '24 02:10 koonchen

@mchades I don't think so. You need to let others know the urgency and responsibility of the matter.

I think the comments on the issue are sufficient. If you care about this, it has been assigned to you now, so please start as soon as possible.

Others can also submit at any time before relevant PRs are submitted.

mchades avatar Oct 08 '24 03:10 mchades