-
Notifications
You must be signed in to change notification settings - Fork 702
feat: added the ability to select tags for multiple tags #2254
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
base: main
Are you sure you want to change the base?
Conversation
@Gmin2 will review as soon as possible. Thanks for your contribution Can you verbally agree to the CLA.md with "i accept the CLA" in a comment please. |
i accept the CLA |
@Gmin2 thanks. Changes look good, thanks for the video also. Will get one of the product engineers to take a look and review over the next few days. |
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.
Thank you for your contribution! The changes look good. There's just one thing I'd like to change: the way the success message is displayed.
apps/opik-frontend/src/components/pages-shared/traces/AddTagDialog/AddTagDialog.tsx
Outdated
Show resolved
Hide resolved
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.
Pull Request Overview
This PR introduces the ability to add tags to multiple traces (or spans) within a project in one go. Key changes include:
- Adding a clear row selection callback in TracesSpansTab to reset selections.
- Integrating an AddTagDialog component in the TracesActionsPanel with a new optional onClearSelection prop.
- Creating the AddTagDialog component to handle batch tag additions via individual mutation calls.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
apps/opik-frontend/src/components/pages/TracesPage/TracesSpansTab/TracesSpansTab.tsx | Added a clear selection callback and passed it to child export component. |
apps/opik-frontend/src/components/pages/TracesPage/TracesSpansTab/TracesActionsPanel.tsx | Updated import order, added AddTagDialog integration, and included an onClearSelection prop. |
apps/opik-frontend/src/components/pages-shared/traces/AddTagDialog/AddTagDialog.tsx | Introduced a new dialog component for adding tags to multiple rows with individual mutation calls. |
apps/opik-frontend/src/components/pages-shared/traces/AddTagDialog/AddTagDialog.tsx
Outdated
Show resolved
Hide resolved
apps/opik-frontend/src/components/pages-shared/traces/AddTagDialog/AddTagDialog.tsx
Show resolved
Hide resolved
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.
We've discussed it with our FE team and decided that we need to do updates of traces and spans in batches here. So, it will likely require the BE work as well. Will you consider doing it?
yes, can yu share how you have plan to do that? |
So, implementing the back-end part to support batch updates should also be included in this PR and should be done by the person seeking the bounty. Could you implement the back-end part? |
@Gmin2 Also, you have some eslint issue:
Please, before submitting a PR, run |
Resolved the linting issues ! |
can i get approved on this? |
hey @Gmin2 , could you please add limits of adding tags to up to 10 entities and we can approve? |
hey @aadereiko just done that could you review it once ! |
@Gmin2 |
cc @vincentkoc |
@Gmin2 yes I have seen this. Wont be long once the team make the additional changes and this PR is merged you will be paid out. Easier to keep to this approach, but as discussed consider this one locked in. If any delays on our side I will process the bounty manually. |
Details
Added the ability to Tag multiple traces at once within a Project
Issues
Resolves #1009
Testing
Screencast.from.2025-05-25.16-52-38.mp4
/claim #1009