Skip to content

Commit

Permalink
[backend] Use index with inferred relation when sharing a report to a…
Browse files Browse the repository at this point in the history
…n organization (#6990)
  • Loading branch information
frapuks authored Jun 6, 2024
1 parent f87d969 commit bfc5f7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ class StixCoreRelationshipContainer extends Component {
<MarkdownDisplay
content={
stixCoreRelationship.x_opencti_inferences !== null ? (
<i>{t('Inferred knowledge')}</i>
t('Inferred knowledge')
) : (
stixCoreRelationship.description
)
Expand Down
4 changes: 2 additions & 2 deletions opencti-platform/opencti-graphql/src/domain/backgroundTask.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { elIndex, elPaginate } from '../database/engine';
import { INDEX_INTERNAL_OBJECTS, READ_DATA_INDICES, READ_DATA_INDICES_WITHOUT_INFERRED, } from '../database/utils';
import { INDEX_INTERNAL_OBJECTS, READ_DATA_INDICES } from '../database/utils';
import { ENTITY_TYPE_BACKGROUND_TASK } from '../schema/internalObject';
import { deleteElementById, patchAttribute } from '../database/middleware';
import { getUserAccessRight, MEMBER_ACCESS_RIGHT_ADMIN, SYSTEM_USER } from '../utils/access';
Expand Down Expand Up @@ -61,7 +61,7 @@ const buildQueryFilters = async (filters, search, taskPosition) => {
};
export const executeTaskQuery = async (context, user, filters, search, start = null) => {
const options = await buildQueryFilters(filters, search, start);
return elPaginate(context, user, READ_DATA_INDICES_WITHOUT_INFERRED, options);
return elPaginate(context, user, READ_DATA_INDICES, options);
};

export const createRuleTask = async (context, user, ruleDefinition, input) => {
Expand Down

0 comments on commit bfc5f7b

Please sign in to comment.