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

refactoring last status health check endpoint #929

Merged
merged 5 commits into from
Feb 23, 2021

Conversation

barbararochazup
Copy link
Contributor

Signed-off-by: barbararochazup barbara.rocha@zup.com.br

Signed-off-by: barbararochazup <barbara.rocha@zup.com.br>
@codecov
Copy link

codecov bot commented Feb 23, 2021

Codecov Report

Merging #929 (ea50eaf) into feature/weebhook (8d213ea) will increase coverage by 0.23%.
The diff coverage is 74.32%.

Impacted file tree graph

@@                  Coverage Diff                   @@
##             feature/weebhook     #929      +/-   ##
======================================================
+ Coverage               69.25%   69.48%   +0.23%     
- Complexity               1736     1741       +5     
======================================================
  Files                    1196     1198       +2     
  Lines                   17068    17300     +232     
  Branches                 1570     1605      +35     
======================================================
+ Hits                    11820    12021     +201     
- Misses                   4760     4794      +34     
+ Partials                  488      485       -3     
Flag Coverage Δ Complexity Δ
hermes 100.00% <ø> (ø) 0.00 <ø> (ø)

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

Impacted Files Coverage Δ Complexity Δ
octopipe/pkg/deployment/main.go 100.00% <ø> (ø) 0.00 <0.00> (ø)
ui/src/core/components/Layer/styled.ts 100.00% <ø> (ø) 0.00 <0.00> (ø)
ui/src/core/providers/base/hooks.ts 83.05% <0.00%> (ø) 0.00 <0.00> (ø)
ui/src/core/providers/base/index.ts 77.35% <ø> (ø) 0.00 <0.00> (ø)
ui/src/modules/Account/Menu/MenuItem.tsx 83.33% <ø> (ø) 0.00 <0.00> (ø)
ui/src/modules/Groups/Menu/Loaders/list.tsx 100.00% <ø> (ø) 0.00 <0.00> (ø)
ui/src/modules/Groups/Menu/MenuItem.tsx 66.66% <ø> (ø) 0.00 <0.00> (ø)
ui/src/modules/Groups/Tabs/Modal/styled.ts 96.29% <ø> (ø) 0.00 <0.00> (ø)
ui/src/modules/Groups/index.tsx 94.11% <ø> (-1.34%) 0.00 <0.00> (ø)
ui/src/modules/Hypotheses/Menu/MenuItem.tsx 16.66% <ø> (ø) 0.00 <0.00> (ø)
... and 79 more

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 e747f71...38bc03a. Read the comment docs.

Signed-off-by: barbararochazup <barbara.rocha@zup.com.br>
query := main.db.Model(&MessagesExecutionsHistory{}).Where("execution_id = ?", executionId).Order("logged_at desc").Find(&response).Limit(1)
if query.Error != nil {
return payloads.FullMessageExecutionResponse{}, errors.NewError("FindLastByExecution History error", query.Error.Error()).
WithOperations("FindLastByExecution.Result")
Copy link
Contributor

Choose a reason for hiding this comment

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

FindLastByExecution -> FindLastByExecutionId

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@boring-cyborg boring-cyborg bot added the ui Improvements/additions/fixes for ui module. label Feb 23, 2021
Signed-off-by: barbararochazup <barbara.rocha@zup.com.br>
@ifdouglas ifdouglas changed the title refactoring last status healtch check endpoint refactoring last status health check endpoint Feb 23, 2021
@barbararochazup barbararochazup merged commit 4f9d00e into feature/weebhook Feb 23, 2021
@barbararochazup barbararochazup deleted the bugfix/subscription-helth-check branch February 23, 2021 17:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ui Improvements/additions/fixes for ui module.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants