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

[backend] Enforce delete injector contract #2191

Merged

Conversation

RomuDeuxfois
Copy link
Member

No description provided.

Comment on lines -13 to -33

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);
};
Copy link
Contributor

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?

Copy link
Member Author

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.

Copy link

codecov bot commented Jan 10, 2025

Codecov Report

Attention: Patch coverage is 0% with 15 lines in your changes missing coverage. Please review.

Project coverage is 32.71%. Comparing base (cdc4b2f) to head (12def24).
Report is 5 commits behind head on release/1.11.0.

Files with missing lines Patch % Lines
...est/injector_contract/InjectorContractService.java 0.00% 14 Missing ⚠️
...as/rest/injector_contract/InjectorContractApi.java 0.00% 1 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

@RomuDeuxfois RomuDeuxfois force-pushed the improvment/enforce-delete-injector-contract branch from c16c8df to 12def24 Compare January 13, 2025 08:02
@RomuDeuxfois RomuDeuxfois merged commit 4d117b9 into release/1.11.0 Jan 13, 2025
4 checks passed
@RomuDeuxfois RomuDeuxfois deleted the improvment/enforce-delete-injector-contract branch January 13, 2025 08:11
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.

3 participants