-
Notifications
You must be signed in to change notification settings - Fork 27
Add filters to deleteEntry #351
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
Conversation
c937a29 to
9a4cf14
Compare
| @@ -0,0 +1,7 @@ | |||
| import {z} from 'zod'; | |||
|
|
|||
| export const queryStringArray = () => { | |||
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 the best naming, but I couldn't think of anything
maybe just stringArray?
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.
GPT offers stringArrayCoerce
but I wouldn't understand that:)
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.
Let's add min, max options?
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.
fixed
| builder.andWhere({[`${Entry.tableName}.${EntryColumn.Scope}`]: scope}); | ||
| } | ||
|
|
||
| if (types) { |
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.
Is it work good without index on entries.type
I know that we also don't have index on isDeleted but it's boolean
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.
It makes index scan on entryId and then filters the result, it's 1 row maximum
https://explain.tensor.ru/archive/explain/69ee14e376c7bbf98863ee3c2327e878:0:2025-09-16
| @@ -0,0 +1,118 @@ | |||
| import request from 'supertest'; | |||
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.
Should we add tests to /env/platform/suites/... also?
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.
Added
ffb603a to
10c0156
Compare
33d52d2 to
68d967b
Compare
datalens-tech/datalens-ui#2629 (comment)