center-for-threat-informed-defense / attack-workbench-rest-api

An application allowing users to explore, create, annotate, and share extensions of the MITRE ATT&CK® knowledge base. This repository contains the REST API service for storing, querying, and editing ATT&CK objects.
https://ctid.mitre-engenuity.org/
Apache License 2.0
41 stars 22 forks source link

Feature/wb-41: GET for attack-objects by new 'users' parameter #250

Closed elegantmoose closed 1 year ago

elegantmoose commented 1 year ago
codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 50.00% and project coverage change: +0.09 :tada:

Comparison is base (79fbef7) 55.31% compared to head (ebcda9b) 55.41%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #250 +/- ## =========================================== + Coverage 55.31% 55.41% +0.09% =========================================== Files 114 114 Lines 6405 6410 +5 Branches 1335 1337 +2 =========================================== + Hits 3543 3552 +9 + Misses 2140 2138 -2 + Partials 722 720 -2 ``` | [Impacted Files](https://app.codecov.io/gh/center-for-threat-informed-defense/attack-workbench-rest-api/pull/250?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=center-for-threat-informed-defense) | Coverage Δ | | |---|---|---| | [app/controllers/relationships-controller.js](https://app.codecov.io/gh/center-for-threat-informed-defense/attack-workbench-rest-api/pull/250?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=center-for-threat-informed-defense#diff-YXBwL2NvbnRyb2xsZXJzL3JlbGF0aW9uc2hpcHMtY29udHJvbGxlci5qcw==) | `56.25% <ø> (ø)` | | | [app/services/attack-objects-service.js](https://app.codecov.io/gh/center-for-threat-informed-defense/attack-workbench-rest-api/pull/250?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=center-for-threat-informed-defense#diff-YXBwL3NlcnZpY2VzL2F0dGFjay1vYmplY3RzLXNlcnZpY2UuanM=) | `67.36% <ø> (+2.10%)` | :arrow_up: | | [app/services/relationships-service.js](https://app.codecov.io/gh/center-for-threat-informed-defense/attack-workbench-rest-api/pull/250?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=center-for-threat-informed-defense#diff-YXBwL3NlcnZpY2VzL3JlbGF0aW9uc2hpcHMtc2VydmljZS5qcw==) | `50.23% <50.00%> (-0.01%)` | :arrow_down: | ... and [3 files with indirect coverage changes](https://app.codecov.io/gh/center-for-threat-informed-defense/attack-workbench-rest-api/pull/250/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=center-for-threat-informed-defense)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

ElJocko commented 1 year ago

Hey Michael -

There's some overlap here with the PR that Vince created. Please make the following changes so that everything is lined up:

elegantmoose commented 1 year ago

@clemiller - After making the requested changes from @ElJocko , it looks like the get-objects call will now return relationship objects as well, whereas before just the attack-objects. Does this mess up your use case @clemiller ?

Update: --> Belay. vscode wasnt using newer file changes...

sonarcloud[bot] commented 1 year ago

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
32.0% 32.0% Duplication

clemiller commented 1 year ago

@elegantmoose all looks good to me. This will require one less call to the API for my use case 👍 . Thanks for checking!