Skip to content

Conversation

@stepanenkoxx
Copy link
Collaborator

@stepanenkoxx stepanenkoxx commented Sep 16, 2025

@stepanenkoxx stepanenkoxx changed the title Add filters to delete entry Add filters to deletEntry Sep 16, 2025
@stepanenkoxx stepanenkoxx changed the title Add filters to deletEntry Add filters to deleteEntry Sep 16, 2025
@stepanenkoxx stepanenkoxx force-pushed the DLAPI-500-add-filters-to-delete-entry branch from c937a29 to 9a4cf14 Compare September 16, 2025 14:36
@stepanenkoxx stepanenkoxx marked this pull request as ready for review September 16, 2025 14:52
@@ -0,0 +1,7 @@
import {z} from 'zod';

export const queryStringArray = () => {
Copy link
Collaborator Author

@stepanenkoxx stepanenkoxx Sep 16, 2025

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?

Copy link
Collaborator Author

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:)

Copy link
Collaborator

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?

Copy link
Collaborator Author

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) {
Copy link
Collaborator

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

Copy link
Collaborator Author

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

jhoncool
jhoncool previously approved these changes Sep 17, 2025
@@ -0,0 +1,118 @@
import request from 'supertest';
Copy link
Collaborator

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?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

@stepanenkoxx stepanenkoxx force-pushed the DLAPI-500-add-filters-to-delete-entry branch from ffb603a to 10c0156 Compare September 17, 2025 12:33
@stepanenkoxx stepanenkoxx force-pushed the DLAPI-500-add-filters-to-delete-entry branch from 33d52d2 to 68d967b Compare September 17, 2025 12:36
@stepanenkoxx stepanenkoxx merged commit fe9c101 into main Sep 17, 2025
6 checks passed
@stepanenkoxx stepanenkoxx deleted the DLAPI-500-add-filters-to-delete-entry branch September 17, 2025 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants