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

[OPIK-757] Add support for comments part2 #1121

Merged

Conversation

BorisTkachenko
Copy link
Contributor

Details

Add support for comments

Testing

Integration tests

@BorisTkachenko BorisTkachenko self-assigned this Jan 23, 2025
@BorisTkachenko BorisTkachenko requested a review from a team as a code owner January 23, 2025 13:12
Borys Tkachenko and others added 2 commits January 23, 2025 14:40
.bind("entity_type", entityType.getType());

return makeMonoContextAware(bindWorkspaceIdToMono(statement))
.then();
Copy link
Contributor

Choose a reason for hiding this comment

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

It is better to return the affected rows so the client can decide whether to do something about it or not

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will update in the next PR, good point. Yet in most DAO's in project now we return Void.

Copy link
Contributor

Choose a reason for hiding this comment

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

It makes the function more reusable.

import static com.comet.opik.utils.ValidationUtils.CLICKHOUSE_FIXED_STRING_UUID_FIELD_NULL_VALUE;

@UtilityClass
public class CommentResultMapper {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
public class CommentResultMapper {
class CommentResultMapper {

@BorisTkachenko BorisTkachenko merged commit 7ac4ba4 into main Jan 24, 2025
8 checks passed
@BorisTkachenko BorisTkachenko deleted the OPIK-757-add-support-for-comments-existing-endpoints-part2 branch January 24, 2025 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants