-
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
Conversation
66ed99a
to
4a0ea8d
Compare
4a0ea8d
to
b2f0908
Compare
options={providerOptions} | ||
value={selectedProvider} | ||
disabled={ | ||
disabledMetadataSelectors || isLoading || !providerOptions.length | ||
} |
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
@@ -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 comment
The 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 comment
The 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
What?
Line picker selector was not working properly
Issue: #180
🐛 Evaluation logs not created on DRAFT commits
While fixing the batch line range selector we saw that evaluation logs where not created when in a draft commit. The reason is that we were enqueueing jobs with
document.commitId
instead of draft commit id. Now we passcommitUuid
that is in the URL of the draft commit.What?