-
Notifications
You must be signed in to change notification settings - Fork 155
[DERCBOT-1329] Support filtering for Annotations + refined Dialogs filters #1845
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
Merged
Benvii
merged 12 commits into
feature/annotation-anomaly/DERCBOT-1309
from
feature/annotation-filter/DERCBOT-1329
Mar 27, 2025
Merged
Changes from 8 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
8b20be4
withAnnotations bool
scezen 8971f4d
[DERCBOT-1329] Fix annotation filter
assouktim acd9b09
Filter by annotation presence, by cumulative state, by cumulative reason
scezen 7748fcd
Sort by annotation lastUpdateDate
scezen 6704f1b
Filters addition
scezen 89ee702
Filtering by dialog creationDate & sort by ASC/DESC order
scezen 21fb259
FaqSettings files
scezen f4abeef
Single POST endpoint for creation/update of an annotation
scezen f0ecea3
pr fix
scezen 3f7316c
Revert "FaqSettings files"
scezen a1a0184
rollback on FaqSettings
scezen 8c3cae1
rollback on FaqSettings V2
scezen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| /* | ||
| * Copyright (C) 2017/2021 e-voyageurs technologies | ||
| * | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
|
|
||
| package ai.tock.bot.engine.dialog | ||
|
|
||
| enum class SortDirection { | ||
| ASC, | ||
| DESC | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
123 changes: 123 additions & 0 deletions
123
...ongo/target/generated-sources/kapt/compile/ai/tock/bot/admin/annotation/BotAnnotation_.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,123 @@ | ||
| package ai.tock.bot.admin.annotation | ||
|
|
||
| import java.time.Instant | ||
| import kotlin.String | ||
| import kotlin.Suppress | ||
| import kotlin.collections.Collection | ||
| import kotlin.collections.List | ||
| import kotlin.collections.Map | ||
| import kotlin.reflect.KProperty1 | ||
| import org.litote.kmongo.property.KCollectionPropertyPath | ||
| import org.litote.kmongo.property.KCollectionSimplePropertyPath | ||
| import org.litote.kmongo.property.KMapPropertyPath | ||
| import org.litote.kmongo.property.KPropertyPath | ||
|
|
||
| private val __State: KProperty1<BotAnnotation, BotAnnotationState?> | ||
| get() = BotAnnotation::state | ||
| private val __Reason: KProperty1<BotAnnotation, BotAnnotationReasonType?> | ||
| get() = BotAnnotation::reason | ||
| private val __Description: KProperty1<BotAnnotation, String?> | ||
| get() = BotAnnotation::description | ||
| private val __GroundTruth: KProperty1<BotAnnotation, String?> | ||
| get() = BotAnnotation::groundTruth | ||
| private val __Events: KProperty1<BotAnnotation, List<BotAnnotationEvent>?> | ||
| get() = BotAnnotation::events | ||
| private val __CreationDate: KProperty1<BotAnnotation, Instant?> | ||
| get() = BotAnnotation::creationDate | ||
| private val __LastUpdateDate: KProperty1<BotAnnotation, Instant?> | ||
| get() = BotAnnotation::lastUpdateDate | ||
| class BotAnnotation_<T>(previous: KPropertyPath<T, *>?, property: KProperty1<*, BotAnnotation?>) : | ||
| KPropertyPath<T, BotAnnotation?>(previous,property) { | ||
| val state: KPropertyPath<T, BotAnnotationState?> | ||
| get() = KPropertyPath(this,__State) | ||
|
|
||
| val reason: KPropertyPath<T, BotAnnotationReasonType?> | ||
| get() = KPropertyPath(this,__Reason) | ||
|
|
||
| val description: KPropertyPath<T, String?> | ||
| get() = KPropertyPath(this,__Description) | ||
|
|
||
| val groundTruth: KPropertyPath<T, String?> | ||
| get() = KPropertyPath(this,__GroundTruth) | ||
|
|
||
| val events: KCollectionSimplePropertyPath<T, BotAnnotationEvent?> | ||
| get() = KCollectionSimplePropertyPath(this,BotAnnotation::events) | ||
|
|
||
| val creationDate: KPropertyPath<T, Instant?> | ||
| get() = KPropertyPath(this,__CreationDate) | ||
|
|
||
| val lastUpdateDate: KPropertyPath<T, Instant?> | ||
| get() = KPropertyPath(this,__LastUpdateDate) | ||
|
|
||
| companion object { | ||
| val State: KProperty1<BotAnnotation, BotAnnotationState?> | ||
| get() = __State | ||
| val Reason: KProperty1<BotAnnotation, BotAnnotationReasonType?> | ||
| get() = __Reason | ||
| val Description: KProperty1<BotAnnotation, String?> | ||
| get() = __Description | ||
| val GroundTruth: KProperty1<BotAnnotation, String?> | ||
| get() = __GroundTruth | ||
| val Events: KCollectionSimplePropertyPath<BotAnnotation, BotAnnotationEvent?> | ||
| get() = KCollectionSimplePropertyPath(null, __Events) | ||
| val CreationDate: KProperty1<BotAnnotation, Instant?> | ||
| get() = __CreationDate | ||
| val LastUpdateDate: KProperty1<BotAnnotation, Instant?> | ||
| get() = __LastUpdateDate} | ||
| } | ||
|
|
||
| class BotAnnotation_Col<T>(previous: KPropertyPath<T, *>?, property: KProperty1<*, | ||
| Collection<BotAnnotation>?>) : KCollectionPropertyPath<T, BotAnnotation?, | ||
| BotAnnotation_<T>>(previous,property) { | ||
| val state: KPropertyPath<T, BotAnnotationState?> | ||
| get() = KPropertyPath(this,__State) | ||
|
|
||
| val reason: KPropertyPath<T, BotAnnotationReasonType?> | ||
| get() = KPropertyPath(this,__Reason) | ||
|
|
||
| val description: KPropertyPath<T, String?> | ||
| get() = KPropertyPath(this,__Description) | ||
|
|
||
| val groundTruth: KPropertyPath<T, String?> | ||
| get() = KPropertyPath(this,__GroundTruth) | ||
|
|
||
| val events: KCollectionSimplePropertyPath<T, BotAnnotationEvent?> | ||
| get() = KCollectionSimplePropertyPath(this,BotAnnotation::events) | ||
|
|
||
| val creationDate: KPropertyPath<T, Instant?> | ||
| get() = KPropertyPath(this,__CreationDate) | ||
|
|
||
| val lastUpdateDate: KPropertyPath<T, Instant?> | ||
| get() = KPropertyPath(this,__LastUpdateDate) | ||
|
|
||
| @Suppress("UNCHECKED_CAST") | ||
| override fun memberWithAdditionalPath(additionalPath: String): BotAnnotation_<T> = | ||
| BotAnnotation_(this, customProperty(this, additionalPath))} | ||
|
|
||
| class BotAnnotation_Map<T, K>(previous: KPropertyPath<T, *>?, property: KProperty1<*, Map<K, | ||
| BotAnnotation>?>) : KMapPropertyPath<T, K, BotAnnotation?, | ||
| BotAnnotation_<T>>(previous,property) { | ||
| val state: KPropertyPath<T, BotAnnotationState?> | ||
| get() = KPropertyPath(this,__State) | ||
|
|
||
| val reason: KPropertyPath<T, BotAnnotationReasonType?> | ||
| get() = KPropertyPath(this,__Reason) | ||
|
|
||
| val description: KPropertyPath<T, String?> | ||
| get() = KPropertyPath(this,__Description) | ||
|
|
||
| val groundTruth: KPropertyPath<T, String?> | ||
| get() = KPropertyPath(this,__GroundTruth) | ||
|
|
||
| val events: KCollectionSimplePropertyPath<T, BotAnnotationEvent?> | ||
| get() = KCollectionSimplePropertyPath(this,BotAnnotation::events) | ||
|
|
||
| val creationDate: KPropertyPath<T, Instant?> | ||
| get() = KPropertyPath(this,__CreationDate) | ||
|
|
||
| val lastUpdateDate: KPropertyPath<T, Instant?> | ||
| get() = KPropertyPath(this,__LastUpdateDate) | ||
|
|
||
| @Suppress("UNCHECKED_CAST") | ||
| override fun memberWithAdditionalPath(additionalPath: String): BotAnnotation_<T> = | ||
| BotAnnotation_(this, customProperty(this, additionalPath))} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.