-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Feature/trace span batch annotation #2850
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
Open
vladimirrotariu
wants to merge
54
commits into
comet-ml:main
Choose a base branch
from
vladimirrotariu:feature/trace-span-batch-annotation
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
bf3936b
add constant with endpoint for batch annotation
vladimirrotariu 1e7d143
add mutation for batch annotation
vladimirrotariu e50abe2
add modal window component
vladimirrotariu c077e6c
add button for batch annotation
vladimirrotariu ea2091d
fix bug that resulted in 422
vladimirrotariu e4c24b0
revert order of imports
vladimirrotariu 2bb8a8b
revert import ordering triggered by save
vladimirrotariu 2711d11
revert import ordering triggered by save
vladimirrotariu 568a530
link batch comment dialog window with button
vladimirrotariu 488b963
Merge branch 'main' into feature/trace-span-batch-annotation
vladimirrotariu baa1224
Merge branch 'main' into feature/trace-span-batch-annotation
vladimirrotariu 145c15c
Merge branch 'main' into feature/trace-span-batch-annotation
vladimirrotariu 13c1343
Merge branch 'main' into feature/trace-span-batch-annotation
vladimirrotariu bbb6fee
Merge branch 'main' into feature/trace-span-batch-annotation
vladimirrotariu a5fce68
Merge branch 'main' into feature/trace-span-batch-annotation
vladimirrotariu 94d8e56
Merge branch 'main' into feature/trace-span-batch-annotation
vincentkoc 33705f8
Merge branch 'main' into feature/trace-span-batch-annotation
vladimirrotariu e0f394a
Merge branch 'main' into feature/trace-span-batch-annotation
vladimirrotariu 32eabc9
Merge branch 'main' into feature/trace-span-batch-annotation
vladimirrotariu cd98880
Merge branch 'main' into feature/trace-span-batch-annotation
vladimirrotariu 9b1533b
add scaffolding for BE support for batch comments
vladimirrotariu 0650f4f
update the frotend to use batch comment hook, wiring to EP for batch …
vladimirrotariu ccf9dc0
add forgotten backend input validation, and also mention that batch c…
vladimirrotariu 0681a17
add BE tests
vladimirrotariu 30c9097
add another BE edge case test
vladimirrotariu 4977913
add e2e FE test for traces batch comment, while keeping it disabled f…
vladimirrotariu 73441bd
map wrong argument to a 400 status code
vladimirrotariu 4bc90af
test the previous mapping
vladimirrotariu 8e8ab14
make status codes more human friendly
vladimirrotariu ba3529e
add test for blocked blank text and blocked < 10 comments
vladimirrotariu 4d9850f
update number state by using undefined instead of empty string
vladimirrotariu e30feee
add temporary dev settings
vladimirrotariu daf8a39
Merge branch 'main' into feature/trace-span-batch-annotation
vladimirrotariu 2b0b859
fix bug in batch commenting EP
vladimirrotariu c9b35b9
Merge branch 'feature/trace-span-batch-annotation' of https://github.…
vladimirrotariu bfb80d8
add Builder true convention
vladimirrotariu 8c8c623
switch to uniform UUIDs, add validation for them
vladimirrotariu 824e2da
add further validators
vladimirrotariu 5077078
make logs more concise
vladimirrotariu cda8411
remove manual validations, switch it to annotations
vladimirrotariu 1ed5e01
remove try-catch block to respect good practices
vladimirrotariu fd11e8f
align with import convention
vladimirrotariu d834986
migrate to UUID - v7
vladimirrotariu 760d06a
remove spurious validations
vladimirrotariu f07fc29
improve performace, both for spans and traces
vladimirrotariu 8bd2003
make comment service more lean
vladimirrotariu 1f4e3d6
improve test
vladimirrotariu d0ecbf3
remove the tests now made useless by jakarta validations
vladimirrotariu a8c8f52
add batch commenting of spans EP
vladimirrotariu 184c461
add tests for batch commenting feature
vladimirrotariu 747b89a
improve logs by not printing long
vladimirrotariu 75103fb
revert the configs to original values
vladimirrotariu 01b41f3
Merge branch 'main' into feature/trace-span-batch-annotation
andrescrz c11b818
Merge branch 'main' into feature/trace-span-batch-annotation
vladimirrotariu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
apps/opik-backend/src/main/java/com/comet/opik/api/CommentsBatchCreate.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| package com.comet.opik.api; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
| import com.fasterxml.jackson.databind.PropertyNamingStrategies; | ||
| import com.fasterxml.jackson.databind.annotation.JsonNaming; | ||
| import io.swagger.v3.oas.annotations.media.Schema; | ||
| import jakarta.validation.constraints.NotBlank; | ||
| import jakarta.validation.constraints.NotEmpty; | ||
| import jakarta.validation.constraints.NotNull; | ||
| import jakarta.validation.constraints.Size; | ||
| import lombok.Builder; | ||
|
|
||
| import java.util.List; | ||
| import java.util.Set; | ||
| import java.util.UUID; | ||
|
|
||
| @JsonIgnoreProperties(ignoreUnknown = true) | ||
| @JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class) | ||
| @Builder(toBuilder = true) | ||
| public record CommentsBatchCreate( | ||
| @Schema(description = "IDs of entities to comment on (max 1K)") @NotNull @Size(min = 1, max = 1000) Set<@NotNull UUID> ids, | ||
| @Schema(description = "Comment text to apply to all entities") @NotBlank String text | ||
| ) {} | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.