-
Notifications
You must be signed in to change notification settings - Fork 90
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] fix contextual team while duplicating scenario #1303 #1343
[backend] fix contextual team while duplicating scenario #1303 #1343
Conversation
MarineLeM
commented
Aug 23, 2024
- Create new contextual team while duplicating scenario
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1343 +/- ##
============================================
+ Coverage 27.98% 29.06% +1.07%
- Complexity 1282 1308 +26
============================================
Files 520 522 +2
Lines 13341 13383 +42
Branches 784 784
============================================
+ Hits 3734 3890 +156
+ Misses 9445 9327 -118
- Partials 162 166 +4 ☔ View full report in Codecov by Sentry. |
openbas-model/src/main/java/io/openbas/database/repository/TeamRepository.java
Show resolved
Hide resolved
|
||
public class CopyObjectListUtils { | ||
|
||
public static <T extends Base> List<T> copy(@NotNull final List<T> origins, Class<T> clazz) { |
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.
Nice !
}); | ||
} | ||
|
||
private Team createTeam(@NotBlank String name, Boolean isContextualTeam){ |
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.
You can add this in TeamFixture
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.
yes my bad i saw the utils/fixtures folder only this morning i will correct that
Test OK for Scenario. |