-
Notifications
You must be signed in to change notification settings - Fork 380
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
[#3914] feat(server): Add REST server interface for Tag System #3943
Conversation
…ns (apache#4123) ### What changes were proposed in this pull request? Add fileset commet removal operations: FilesetChange.RemoveComment Fix: apache#4112 ### Why are the changes needed? Fileset can be created without comment now, when user added a comment to fileset, they should be allowed to retract the comment. Like other FilesetChange, FilesetChange.RemoveComment can be used for **alterFileset()** method ### Does this PR introduce _any_ user-facing change? User can add new changes for fileset: ``` Fileset fileset = catalog.asFilesetCatalog().alterFileset( NameIdentifier.of(metaLakeName, catalogName, schemaName, filesetName), FilesetChange.removeComment()); ``` or use update fileset http request: ``` updates": [ { "@type": "removeComment" } ] ``` ### How was this patch tested? Create a fileset with comment, then use java/python client, or http requeset to remove comment and check the result
…-connector (apache#4144) ### Why are the changes needed? Fix: apache#4135 ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Existing UTs
…pache#4121) ### What changes were proposed in this pull request? Remove the logic of getValidRoles. ### Why are the changes needed? Fix: apache#4105 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Modify some test cases.
### What changes were proposed in this pull request? Fixed an unreachable link. ### Why are the changes needed? Fix: apache#4155 ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? No testing required Co-authored-by: rqyin <[email protected]>
clients/client-java/src/main/java/org/apache/gravitino/client/ObjectMapperProvider.java
Show resolved
Hide resolved
common/src/main/java/org/apache/gravitino/dto/responses/MetadataObjectListResponse.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/apache/gravitino/server/web/rest/TagOperations.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/apache/gravitino/server/web/rest/TagOperations.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/apache/gravitino/server/web/rest/TagOperations.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/apache/gravitino/server/web/rest/TagOperations.java
Outdated
Show resolved
Hide resolved
@@ -16,7 +16,6 @@ | |||
* specific language governing permissions and limitations | |||
* under the License. | |||
*/ | |||
|
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.
Is this empty line expected?
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.
No, there's no rule that here should have an empty line.
server/src/main/java/org/apache/gravitino/server/web/rest/ExceptionHandlers.java
Show resolved
Hide resolved
@jerqi |
@jerqi can you please help me to review it? |
common/src/main/java/org/apache/gravitino/dto/responses/MetadataObjectListResponse.java
Outdated
Show resolved
Hide resolved
* @param fullName The full name of the metadata object. | ||
*/ | ||
@JsonProperty("fullName") | ||
public void setFullName(String fullName) { |
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.
Why do we need this method instead of using builder? MetadataObjectDTO became a mutable object?
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.
It is only for Jackson to use.
Why do you choose to use lock inside the TagManager instead of TagOperations? |
I personally don't like wrapping everything into the lock in the operations, which is hard to do fine-grained control. Besides, previously I didn't even want to use lock. |
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.
LGTM.
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.
LGTM
What changes were proposed in this pull request?
This PR proposes to add REST server interface for Tag System
Why are the changes needed?
This is a part of work for Tag system.
Fix: #3914
Does this PR introduce any user-facing change?
Yes
How was this patch tested?
UTs added.