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

Added new validation in the createModuleRequest #779

Merged
merged 12 commits into from
Feb 19, 2021

Conversation

lucassaleszup
Copy link
Contributor

Signed-off-by: Lucas Sales lucas.sales@zup.com.br

Signed-off-by: Lucas Sales <lucas.sales@zup.com.br>
@boring-cyborg boring-cyborg bot added the butler Improvements/additions/fixes for butler module. label Jan 7, 2021
@codecov
Copy link

codecov bot commented Jan 7, 2021

Codecov Report

Merging #779 (7e950ce) into main (155f565) will increase coverage by 0.00%.
The diff coverage is 77.77%.

Impacted file tree graph

@@            Coverage Diff            @@
##               main     #779   +/-   ##
=========================================
  Coverage     69.25%   69.25%           
  Complexity     1736     1736           
=========================================
  Files          1196     1197    +1     
  Lines         17068    17077    +9     
  Branches       1570     1571    +1     
=========================================
+ Hits          11820    11827    +7     
- Misses         4760     4762    +2     
  Partials        488      488           
Flag Coverage Δ Complexity Δ
butler 85.47% <77.77%> (-0.06%) 0.00 <0.00> (ø)

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

Impacted Files Coverage Δ Complexity Δ
...api/deployments/validations/component-not-empty.ts 77.77% <77.77%> (ø) 0.00 <0.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 155f565...7e950ce. Read the comment docs.

Signed-off-by: Lucas Sales <lucas.sales@zup.com.br>
Signed-off-by: Lucas Sales <lucas.sales@zup.com.br>
Signed-off-by: Lucas Sales <lucas.sales@zup.com.br>
Base automatically changed from master to main January 12, 2021 13:42
if (components && components.length) {
return true
} else {
throw new HttpException({ error: 'Bad Request', message:['components could not be null or empty'], statusCode: HttpStatus.BAD_REQUEST }, HttpStatus.BAD_REQUEST)
Copy link
Contributor

Choose a reason for hiding this comment

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

Change to "components should not be null or empty"

Signed-off-by: Lucas Sales <lucas.sales@zup.com.br>
Signed-off-by: Lucas Sales <lucas.sales@zup.com.br>
@ricardorames ricardorames merged commit e01e25a into main Feb 19, 2021
@ricardorames ricardorames deleted the bad-request-error-components-butler branch February 19, 2021 16:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
butler Improvements/additions/fixes for butler module. TESTED QA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants