Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Delete deployment config #1136

Merged
merged 5 commits into from
Apr 30, 2021
Merged

Delete deployment config #1136

merged 5 commits into from
Apr 30, 2021

Conversation

emiteze
Copy link
Contributor

@emiteze emiteze commented Apr 30, 2021

Issue Description

Today we can't delete deployment configuration, only disassociate from workspace.

Solution

Implement the delete endpoint that would effectively delete the configuration

Signed-off-by: Mateus Cruz <emiteze@hotmail.com>
Signed-off-by: Mateus Cruz <emiteze@hotmail.com>
@boring-cyborg boring-cyborg bot added the moove Improvements/additions/fixes for moove module. label Apr 30, 2021
WHERE id = ?
"""

this.jdbcTemplate.update(statement, id)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this method safe against sqlinjection?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JdbcTemplate handles itself the majority of sql injection cases... we never had to deal with some case specifically

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since jdbcTemplate probably uses preparedStatement under the hood I personally don't think it's kinda a problem

angelicalimazup and others added 2 commits April 30, 2021 21:59
Signed-off-by: Mateus Cruz <emiteze@hotmail.com>
@codecov
Copy link

codecov bot commented Apr 30, 2021

Codecov Report

Merging #1136 (28ae301) into main (0fd2693) will increase coverage by 0.00%.
The diff coverage is 80.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##               main    #1136   +/-   ##
=========================================
  Coverage     77.01%   77.01%           
- Complexity     2179     2182    +3     
=========================================
  Files          1234     1235    +1     
  Lines         17805    17810    +5     
  Branches       1618     1618           
=========================================
+ Hits          13713    13717    +4     
- Misses         3610     3611    +1     
  Partials        482      482           
Flag Coverage Δ Complexity Δ
moove 75.53% <80.00%> (+<0.01%) 1663.00 <3.00> (+3.00)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ Complexity Δ
...DeleteDeploymentConfigurationByIdInteractorImpl.kt 75.00% <75.00%> (ø) 2.00 <2.00> (?)
...oove/application/DeploymentConfigurationService.kt 85.71% <100.00%> (+2.38%) 5.00 <1.00> (+1.00)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0fd2693...28ae301. Read the comment docs.

@angelicalimazup angelicalimazup merged commit 8bfaf4d into main Apr 30, 2021
@angelicalimazup angelicalimazup deleted the delete-deployment-config branch April 30, 2021 21:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
moove Improvements/additions/fixes for moove module.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants