-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
feat: removed dashboard uuid is all cases be it duplicate, empty or somevalid, while import json #6448
Conversation
…omevalid, while import json
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
1 similar comment
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
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.
❌ Changes requested. Reviewed everything up to 8778934 in 20 seconds
More details
- Looked at
13
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. frontend/src/container/ListOfDashboard/ImportJSON/index.tsx:86
- Draft comment:
Use design tokens or predefined color constants instead of hardcoding color values for consistency. This applies totwoToneColor
in line 145 andstyle
in line 146. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable:
The comment is not related to the changes made in the diff, which are about the validation ofuuid
. The comment refers to lines 145 and 146, which are not part of the diff changes. Therefore, the comment is not about a change made in this diff.
I might be missing the context of the entire file, but the task is to focus on the diff changes. The comment does not address the changes made in the diff.
The task is to focus on the diff changes, and the comment does not address those changes. Therefore, it should be removed.
The comment is not about the changes made in the diff, so it should be deleted.
Workflow ID: wflow_VFC6V0co1Uz4xqvK
Want Ellipsis to fix these issues? Tag @ellipsis-dev
in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
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.
Explain above what is the validation of the uuid, the comments is non intuitive
yes was about to update them. |
@SagarRajput-7 : I am not sure about the functionality of this PR and why this is required. Can you add details around it please. |
713b93b
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
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.
👍 Looks good to me! Incremental review on 713b93b in 9 seconds
More details
- Looked at
15
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. frontend/src/container/ListOfDashboard/ImportJSON/index.tsx:85
- Draft comment:
The comment can be simplified to better reflect the implementation:
// Remove uuid from the dashboard data if it exists
- Reason this comment was not posted:
Confidence changes required:10%
The current implementation deletes theuuid
property fromdashboardData
if it exists. This is consistent with the PR description, which states that theuuid
should be removed regardless of its value. However, the comment above the code could be more concise and aligned with the implementation.
Workflow ID: wflow_i8o1uhF4vbuHI3Bd
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
1 similar comment
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id> |
Summary
Here we want to remove
uuid
for people in case when they are empty string or duplicate, but for identifying a duplicate we would need an api call which is expensive, hence we decided to rather removeuuid
(exisiting) in all cases, and later once the importing is done, we from behind the scene will provide each dashboard with a uniqueuuid
.With this we wont block user for import json jsut on the uuid parameters
Related Issues / PR's
Screenshots
Screen.Recording.2024-11-15.at.7.17.03.PM.mov
Affected Areas and Manually Tested Areas
Important
Remove
uuid
fromdashboardData
during JSON import inImportJSON
component, regardless of its value.ImportJSON
component,uuid
is removed fromdashboardData
during JSON import, regardless of its value (duplicate, empty, or valid).This description was created by for 8778934. It will automatically update as commits are pushed.