Skip to content
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

Refactor attack objects service for improved structure and asynchronicity #343

Conversation

vsun757
Copy link

@vsun757 vsun757 commented Feb 14, 2024

No description provided.

@vsun757 vsun757 requested a review from ElJocko February 14, 2024 19:02
Copy link

codecov bot commented Feb 14, 2024

Codecov Report

Attention: Patch coverage is 87.50000% with 22 lines in your changes are missing coverage. Please review.

Project coverage is 70.26%. Comparing base (ca9e552) to head (914a510).
Report is 1 commits behind head on project-orion.

Files Patch % Lines
app/services/attack-objects-service.js 69.64% 17 Missing ⚠️
app/repository/attack-objects-repository.js 95.83% 5 Missing ⚠️
Additional details and impacted files
@@                Coverage Diff                @@
##           project-orion     #343      +/-   ##
=================================================
+ Coverage          70.20%   70.26%   +0.05%     
=================================================
  Files                150      151       +1     
  Lines              14393    14365      -28     
  Branches            1671     1667       -4     
=================================================
- Hits               10105    10093      -12     
+ Misses              4278     4262      -16     
  Partials              10       10              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@vsun757 vsun757 closed this Feb 16, 2024
@vsun757 vsun757 reopened this Feb 21, 2024
Remove redundant code.
Modify attack objects repository so that the base service can be used for the retrieveAll() function.
Avoid using the AttackObject model in the service.
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
31.3% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@ElJocko ElJocko merged commit 1100bfc into project-orion Feb 28, 2024
3 of 4 checks passed
@seansica seansica deleted the 307-refactor-attackobjects-service-for-improved-structure-and-asynchronicity branch July 22, 2024 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants