-
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] Enforce delete injector contract #2191
[backend] Enforce delete injector contract #2191
Conversation
openbas-api/src/main/java/io/openbas/rest/injector_contract/InjectorContractService.java
Show resolved
Hide resolved
|
||
export const searchInjectors = (paginationInput) => { | ||
const data = paginationInput; | ||
const uri = '/api/injectors/search'; | ||
return simplePostCall(uri, data); | ||
}; | ||
|
||
export const updateInjector = (injectorId, data) => (dispatch) => { | ||
const uri = `/api/injectors/${injectorId}`; | ||
return putReferential(schema.injector, uri, data)(dispatch); | ||
}; | ||
|
||
export const addInjector = data => (dispatch) => { | ||
const uri = '/api/injectors'; | ||
return postReferential(schema.injector, uri, data)(dispatch); | ||
}; | ||
|
||
export const deleteInjector = injectorId => (dispatch) => { | ||
const uri = `/api/injectors/${injectorId}`; | ||
return delReferential(uri, 'injectors', injectorId)(dispatch); | ||
}; |
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.
Question: was all this unused?
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.
I don't know why this code was created at first.
We can't do anything on injector from the UI.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## release/1.11.0 #2191 +/- ##
====================================================
+ Coverage 32.46% 32.71% +0.24%
- Complexity 1511 1549 +38
====================================================
Files 582 583 +1
Lines 18091 18482 +391
Branches 1164 1217 +53
====================================================
+ Hits 5874 6046 +172
- Misses 11953 12171 +218
- Partials 264 265 +1 ☔ View full report in Codecov by Sentry. |
openbas-api/src/main/java/io/openbas/rest/injector_contract/InjectorContractService.java
Show resolved
Hide resolved
c16c8df
to
12def24
Compare
No description provided.