-
Notifications
You must be signed in to change notification settings - Fork 14
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: build precomputed data screen in admin #1730
Conversation
JulienMattiussi
commented
Oct 13, 2023
•
edited
Loading
edited
18227cc
to
3f89e96
Compare
09f153b
to
76b32a3
Compare
041080c
to
b7a7c38
Compare
}; | ||
|
||
export const putPrecomputed = async (ctx, id) => { | ||
const newResource = ctx.request.body; |
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.
newPrecomputed
// Delete existing data from dataset | ||
// If we change the name or the rule, existing data is obsolete | ||
const precomputed = await ctx.precomputed.findOneById(id); | ||
await ctx.dataset.removeAttribute(precomputed.name); |
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.
Useless for the precomputed
cancelJob(ctx, PRECOMPUTER); | ||
} | ||
await ctx.precomputed.delete(id); | ||
await ctx.dataset.removeAttribute(precomputed.name); |
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.
Useless for the precomputed
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.
Not used
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.
Not used
b7a7c38
to
b1fbe1e
Compare
511d3c4
to
353c25a
Compare