-
Notifications
You must be signed in to change notification settings - Fork 113
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
Pass groupids to core #6628
Pass groupids to core #6628
Changes from 5 commits
09c38a6
2e23618
5b42e29
f705369
f674fff
cad9040
cf1147f
38d60df
c0f10e7
3c8d833
4195df3
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 |
---|---|---|
|
@@ -111,19 +111,22 @@ async function handler( | |
); | ||
const inputDataset = inputConfigEntry ? inputConfigEntry.dataset : null; | ||
|
||
const dustRun = await coreAPI.createRun({ | ||
projectId: app.dustAPIProjectId, | ||
runAsWorkspaceId: owner.sId, | ||
runType: "local", | ||
specification: dumpSpecification( | ||
JSON.parse(req.body.specification), | ||
latestDatasets | ||
), | ||
datasetId: inputDataset, | ||
config: { blocks: config }, | ||
credentials: credentialsFromProviders(providers), | ||
secrets, | ||
}); | ||
const dustRun = await coreAPI.createRun( | ||
auth.getNonNullableWorkspace(), | ||
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. same here, we already have 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. BTW here at the top we shouldn't use |
||
auth.groups(), | ||
{ | ||
projectId: app.dustAPIProjectId, | ||
runType: "local", | ||
specification: dumpSpecification( | ||
JSON.parse(req.body.specification), | ||
latestDatasets | ||
), | ||
datasetId: inputDataset, | ||
config: { blocks: config }, | ||
credentials: credentialsFromProviders(providers), | ||
secrets, | ||
} | ||
); | ||
|
||
if (dustRun.isErr()) { | ||
return apiError(req, res, { | ||
|
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.
Don't we already have
owner
from above ?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.
Ah yeah good catch. Let me fix.