Skip to content

[backend] add workspace_context to AuthContext and handle findByIds

Codecov / codecov/patch succeeded Sep 27, 2024 in 1s

58.41% of diff hit (target 66.21%)

View this Pull Request on Codecov

58.41% of diff hit (target 66.21%)

Annotations

Check warning on line 1388 in opencti-platform/opencti-graphql/src/database/engine.js

See this annotation in the file changed.

@codecov codecov / codecov/patch

opencti-platform/opencti-graphql/src/database/engine.js#L1365-L1388

Added lines #L1365 - L1388 were not covered by tests

Check warning on line 2781 in opencti-platform/opencti-graphql/src/database/engine.js

See this annotation in the file changed.

@codecov codecov / codecov/patch

opencti-platform/opencti-graphql/src/database/engine.js#L2758-L2781

Added lines #L2758 - L2781 were not covered by tests

Check warning on line 3063 in opencti-platform/opencti-graphql/src/database/engine.js

See this annotation in the file changed.

@codecov codecov / codecov/patch

opencti-platform/opencti-graphql/src/database/engine.js#L3063

Added line #L3063 was not covered by tests

Check warning on line 3106 in opencti-platform/opencti-graphql/src/database/engine.js

See this annotation in the file changed.

@codecov codecov / codecov/patch

opencti-platform/opencti-graphql/src/database/engine.js#L3106

Added line #L3106 was not covered by tests

Check warning on line 3507 in opencti-platform/opencti-graphql/src/database/engine.js

See this annotation in the file changed.

@codecov codecov / codecov/patch

opencti-platform/opencti-graphql/src/database/engine.js#L3507

Added line #L3507 was not covered by tests

Check warning on line 3704 in opencti-platform/opencti-graphql/src/database/engine.js

See this annotation in the file changed.

@codecov codecov / codecov/patch

opencti-platform/opencti-graphql/src/database/engine.js#L3680-L3704

Added lines #L3680 - L3704 were not covered by tests

Check warning on line 3714 in opencti-platform/opencti-graphql/src/database/engine.js

See this annotation in the file changed.

@codecov codecov / codecov/patch

opencti-platform/opencti-graphql/src/database/engine.js#L3708-L3714

Added lines #L3708 - L3714 were not covered by tests

Check warning on line 3741 in opencti-platform/opencti-graphql/src/database/engine.js

See this annotation in the file changed.

@codecov codecov / codecov/patch

opencti-platform/opencti-graphql/src/database/engine.js#L3720-L3741

Added lines #L3720 - L3741 were not covered by tests

Check warning on line 3752 in opencti-platform/opencti-graphql/src/database/engine.js

See this annotation in the file changed.

@codecov codecov / codecov/patch

opencti-platform/opencti-graphql/src/database/engine.js#L3750-L3752

Added lines #L3750 - L3752 were not covered by tests

Check warning on line 701 in opencti-platform/opencti-graphql/src/domain/user.js

See this annotation in the file changed.

@codecov codecov / codecov/patch

opencti-platform/opencti-graphql/src/domain/user.js#L701

Added line #L701 was not covered by tests

Check warning on line 1266 in opencti-platform/opencti-graphql/src/domain/user.js

See this annotation in the file changed.

@codecov codecov / codecov/patch

opencti-platform/opencti-graphql/src/domain/user.js#L1266

Added line #L1266 was not covered by tests

Check warning on line 125 in opencti-platform/opencti-graphql/src/http/httpServer.js

See this annotation in the file changed.

@codecov codecov / codecov/patch

opencti-platform/opencti-graphql/src/http/httpServer.js#L125

Added line #L125 was not covered by tests

Check warning on line 10 in opencti-platform/opencti-graphql/src/modules/draftWorkspace/draftWorkspace-converter.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

opencti-platform/opencti-graphql/src/modules/draftWorkspace/draftWorkspace-converter.ts#L5-L10

Added lines #L5 - L10 were not covered by tests

Check warning on line 34 in opencti-platform/opencti-graphql/src/modules/draftWorkspace/draftWorkspace-domain.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

opencti-platform/opencti-graphql/src/modules/draftWorkspace/draftWorkspace-domain.ts#L25-L34

Added lines #L25 - L34 were not covered by tests

Check warning on line 53 in opencti-platform/opencti-graphql/src/modules/draftWorkspace/draftWorkspace-domain.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

opencti-platform/opencti-graphql/src/modules/draftWorkspace/draftWorkspace-domain.ts#L52-L53

Added lines #L52 - L53 were not covered by tests

Check warning on line 28 in opencti-platform/opencti-graphql/src/modules/draftWorkspace/draftWorkspace.ts

See this annotation in the file changed.

@codecov codecov / codecov/patch

opencti-platform/opencti-graphql/src/modules/draftWorkspace/draftWorkspace.ts#L27-L28

Added lines #L27 - L28 were not covered by tests