-
Notifications
You must be signed in to change notification settings - Fork 73
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
truncate data in datapoints and eval-datapoints #293
Conversation
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 7d84d0a in 1 minute and 28 seconds
More details
- Looked at
223
lines of code in7
files - Skipped
0
files when reviewing. - Skipped posting
3
drafted comments based on config settings.
1. app-server/src/db/datapoints.rs:16
- Draft comment:
Ensure that thedata
andtarget
fields are correctly handled asString
in theinsert_datapoints
function to avoid type mismatches. - Reason this comment was not posted:
Comment did not seem useful.
2. frontend/app/api/projects/[projectId]/datasets/[datasetId]/datapoints/[datapointId]/route.ts:27
- Draft comment:
Consider handling the case wheredatapoint
is not found to prevent unexpected behavior. - Reason this comment was not posted:
Confidence changes required:50%
TheGET
method inroute.ts
does not handle the case wheredatapoint
is not found, which could lead to unexpected behavior.
3. frontend/app/api/projects/[projectId]/evaluations/[evaluationId]/route.ts:42
- Draft comment:
UseSUBSTRING(data::text, 1, 100)
instead ofSUBSTRING(data::text, 0, 100)
to include the first character in the substring. This issue is also present inpage.tsx
. - Reason this comment was not posted:
Marked as duplicate.
Workflow ID: wflow_1RJb6AlkAmWZpUrG
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.
"SELECT | ||
id, | ||
dataset_id, | ||
SUBSTRING(data::text, 0, 100) as data, |
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.
Use SUBSTRING(data::text, 1, 100)
instead of SUBSTRING(data::text, 0, 100)
to include the first character in the substring.
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 0a41982 in 14 seconds
More details
- Looked at
22
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. frontend/components/dataset/dataset-panel.tsx:103
- Draft comment:
Consider initializingnewData
,newTarget
, andnewMetadata
withuseState
directly usingdatapoint?.data
,datapoint?.target
, anddatapoint?.metadata
respectively, instead of setting them in auseEffect
. This can simplify the code and ensure that the initial state is consistent with the fetched data. - Reason this comment was not posted:
Confidence changes required:50%
The use ofuseSWR
is correct, but thedatapoint
state initialization could be improved for consistency.
Workflow ID: wflow_ntTYG6brysURqS0f
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Important
Truncate
data
andtarget
fields to 100 characters in both backend and frontend for consistent data handling.data
andtarget
fields to 100 characters inget_datapoints()
indatapoints.rs
.data
andtarget
types fromValue
toString
inDatapointView
indatapoints.rs
.data
andtarget
fields to 100 characters inGET
requests inroute.ts
for evaluations.useSWR
to fetch datapoint data indataset-panel.tsx
.DatasetPanel
to handledatapointId
instead of fulldatapoint
object indataset.tsx
.This description was created by for 0a41982. It will automatically update as commits are pushed.