-
Notifications
You must be signed in to change notification settings - Fork 11
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
CV2-4072: Review fields of types TeamType
and UserType
#1770
CV2-4072: Review fields of types TeamType
and UserType
#1770
Conversation
TeamType
and UserType
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Sawy, I just noticed one more case: team_author
in BotUserType
should be PublicTeamType
too. After this fix, fixes for the tests and changes on Check Web side, I think this is good to go :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 5930 lines exceeds the maximum allowed for the inline comments feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 5930 lines exceeds the maximum allowed for the inline comments feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 5924 lines exceeds the maximum allowed for the inline comments feature.
app/models/user.rb
Outdated
@@ -95,6 +95,10 @@ def self.from_token(token) | |||
JSON.parse(Base64.decode64(token.gsub('++n', "\n"))) | |||
end | |||
|
|||
def me | |||
self |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@melsawy does it make sense to change this for:
User.current&.id == self.id ? self : nil
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes @caiosba makes sense and as you know I used this one as a return value for updateUser
mutation so it'll return a value when current user did update action.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@melsawy also, please be sure it works on the Check Web side, specially with feed features (which are not covered by integration tests) - @danielevalverde can help you with testing this if needed. |
@caiosba Already I tested the app locally especially features related to changed files. |
Code Climate has analyzed commit f3832f2 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (100% is the threshold). This pull request will bring the total coverage in the repository to 99.9%. View more on Code Climate. |
Description
User PublicTeamType for the following types:
Limit fields for UserType and add a new type
MeType
with currentUserType
fieldsReferences: CV2-4072
How has this been tested?
Re-run automated tests.
Things to pay attention to during code review
Please describe parts of the change that require extra attention during code review, for example:
Checklist