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

Issue #233: Move endpoints related to amenities from community tag #253

Closed
wants to merge 2 commits into from
Closed

Conversation

JanneSickert
Copy link
Contributor

Closes: #233

@codecov
Copy link

codecov bot commented Mar 3, 2021

Codecov Report

Merging #253 (39faff4) into master (f7ec6a4) will not change coverage.
The diff coverage is 50.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #253   +/-   ##
=========================================
  Coverage     68.28%   68.28%           
  Complexity      200      200           
=========================================
  Files            34       34           
  Lines           864      864           
  Branches         41       41           
=========================================
  Hits            590      590           
  Misses          266      266           
  Partials          8        8           
Impacted Files Coverage Δ Complexity Δ
...va/com/myhome/controllers/CommunityController.java 98.90% <ø> (+3.95%) 31.00 <0.00> (-2.00) ⬆️
...java/com/myhome/controllers/AmenityController.java 85.18% <50.00%> (-14.82%) 10.00 <2.00> (+2.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 f7ec6a4...24e1060. Read the comment docs.

@mslowiak mslowiak self-requested a review March 3, 2021 20:08
@mslowiak mslowiak added the awaiting-review Pull requests is waiting for review label Mar 3, 2021
Copy link
Collaborator

@mslowiak mslowiak left a comment

Choose a reason for hiding this comment

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

@JanneSickert
Please read the comments.
There is also one more issue related to code formatting.

Did you applied our code style to your editor? Looks like you use default editor config, please take a look here:
https://github.com/jmprathab/MyHome/blob/master/CONTRIBUTING.md#coding-style

and here:
https://www.jetbrains.com/help/idea/configuring-code-style.html

@@ -126,6 +120,9 @@
@Mock
private PaymentService paymentService;

@InjectMocks
private AmenityController amenityController;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Since CommunityController do not have a connection to amenity more we should not include the amenity testing logic here :)
That should a part of AmenityControllerTest

import com.myhome.model.GetAmenityDetailsResponse;
import com.myhome.model.UpdateAmenityRequest;
import com.myhome.model.*;
Copy link
Collaborator

Choose a reason for hiding this comment

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

@mslowiak mslowiak added awaiting-review-changes Awaiting for PR owner to make changes and removed awaiting-review Pull requests is waiting for review labels Mar 3, 2021
@mslowiak
Copy link
Collaborator

mslowiak commented Mar 6, 2021

@JanneSickert
How is it going?

@JanneSickert
Copy link
Contributor Author

I had also copyed two methods depending from the

@Injectmocks
private AmenityController amenityController;

I executed

  • gradle assemble
  • gradle clean build

and it had build without any errors.
If it was right to move the methods, I only must running Code Style and can rise a PR.

@JanneSickert
Copy link
Contributor Author

Oh, I mean rise a commit :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-review-changes Awaiting for PR owner to make changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move endpoints related to amenities from community tag
2 participants