-
Notifications
You must be signed in to change notification settings - Fork 62
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
Fix batch range line selector and also allow to create logs on draft commits #202
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,8 @@ type RunBatchEvaluationJobParams = { | |
evaluation: EvaluationDto | ||
dataset: Dataset | ||
document: DocumentVersion | ||
commitUuid: string | ||
projectId: number | ||
fromLine?: number | ||
toLine?: number | ||
parametersMap?: Record<string, number> | ||
|
@@ -33,7 +35,9 @@ export const runBatchEvaluationJob = async ( | |
evaluation, | ||
dataset, | ||
document, | ||
fromLine = 0, | ||
projectId, | ||
commitUuid, | ||
fromLine, | ||
toLine, | ||
parametersMap, | ||
batchId = randomUUID(), | ||
|
@@ -43,7 +47,7 @@ export const runBatchEvaluationJob = async ( | |
if (!workspace) throw new NotFoundError('Workspace not found') | ||
|
||
const commit = await new CommitsRepository(workspace.id) | ||
.find(document.commitId) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't get this, how can document.commitid be different than commitUuid? the documentversion always poins to its commit no? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Before it was the commitId the document was created (live). Now is the commit that the user is seeing. live or a draft commit. So, the logs are attached to that commit. Which is what we want |
||
.getCommitByUuid({ projectId, uuid: commitUuid }) | ||
.then((r) => r.unwrap()) | ||
const fileMetadata = dataset.fileMetadata | ||
// TODO: use streaming instead of this service in order to avoid loading the | ||
|
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.
does the placeholder show when disabled? we should tell the user they are using the default provider if none selected
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.
If non selected it says "default provider" yes