-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[backend] Fix strict_dynamic_mapping_exception exceptions thrown in fileIndexManager (#14665) #14655
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
fellowseb
merged 9 commits into
master
from
issue/89-strict-dynamic-mapping-exception-in-fileindexmanager
Mar 5, 2026
Merged
[backend] Fix strict_dynamic_mapping_exception exceptions thrown in fileIndexManager (#14665) #14655
Changes from 1 commit
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
be64d79
[backend] Fix strict_dynamic_mapping_exception exceptions thrown in f…
fellowseb 49e7a0f
[backend] Add custom opensearch image with ingest-attachment plugin i…
fellowseb 6cc984a
[backend] Update docker-compose.yml comment to use podman
fellowseb e4faeb9
[backend] Refactor to extract attachment props from engine.ts
fellowseb 761e288
[backend] Update retentionManager-test to take into account new file
fellowseb 4f0d7be
[backend] Update retentionManager-test to take into account new file …
fellowseb 7e2cdde
[backend] Update retentionManager-test to take into account new file …
fellowseb 43e01e6
[backend] Refactor to assertType utility
fellowseb 6498c22
[backend] Apply PRs suggestions after review
fellowseb 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
[backend] Refactor to assertType utility
- Loading branch information
commit 43e01e6d234c075aa9c79cd10fe14231a0d0c80c
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
opencti-platform/opencti-graphql/src/database/attachment-processor-props.ts
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,27 @@ | ||
| /** | ||
| * Inverse operation of the built-in Readonly<T> utility type: | ||
| * makes all records of an object mutable. | ||
| */ | ||
| export type Mutable<T> = { -readonly [P in keyof T]: T[P]; }; | ||
|
|
||
| type AssertEqual<T, TExpected> = [T] extends [TExpected] | ||
| ? [TExpected] extends [T] | ||
| ? T | ||
| : never | ||
| : never; | ||
|
|
||
| /** | ||
| * Compile-time type assertion utility checking that a type T | ||
| * is exactly of type TExpected. | ||
| * | ||
| * @example | ||
| * ``` | ||
| * type Fruit = 'banana' | 'strawberry' | 'pineapple'; | ||
| * const allFruits = ['banana' as const, 'strawberry' as const, 'pineapple' as const]; | ||
| * // Checks for exhaustiveness | ||
| * assertType<typeof allFruits[number][], Fruit[]>(allFruits); | ||
| * ``` | ||
| */ | ||
| export const assertType = <T, TExpected>(_x: AssertEqual<T, TExpected>) => { | ||
| // noop | ||
| }; |
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.