-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[backend] add exclusion cache handling (#8941) #9079
Conversation
f35b66c
to
6ce404a
Compare
|
||
export const buildCacheFromAllExclusionLists = async (context: AuthContext) => { | ||
const exclusionLists: BasicStoreEntityExclusionList[] = await listAllEntities(context, SYSTEM_USER, [ENTITY_TYPE_EXCLUSION_LIST]); | ||
const enabledExclusionLists = exclusionLists.filter((l) => l.enabled); |
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.
filter by enabled
import { getIsCacheInitialized, syncExclusionListCache } from '../database/exclusionListCache'; | ||
|
||
const EXCLUSION_LIST_CACHE_SYNC_MANAGER_LOCK_KEY = conf.get('exclusion_list_cache_sync_manager:lock_key') || 'exclusion_list_cache_sync_manager_lock'; | ||
const EXCLUSION_LIST_CACHE_SYNC_MANAGER_NODE_LOCK_KEY = `${EXCLUSION_LIST_CACHE_SYNC_MANAGER_LOCK_KEY}_${NODE_INSTANCE_ID}`; |
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.
for next version : try to remove the lock
opencti-platform/opencti-graphql/src/modules/indicator/indicator-domain.ts
Outdated
Show resolved
Hide resolved
opencti-platform/opencti-graphql/src/modules/indicator/indicator-domain.ts
Outdated
Show resolved
Hide resolved
550066a
to
4018441
Compare
e02c02e
to
2e6bfdd
Compare
opencti-platform/opencti-graphql/src/database/exclusionListCache.ts
Outdated
Show resolved
Hide resolved
opencti-platform/opencti-graphql/src/modules/exclusionList/exclusionList-domain.ts
Outdated
Show resolved
Hide resolved
I have this error when trying to access "created_at" on an exclusion list by API |
Proposed changes
Related issues
Checklist
Further comments