-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
FTO Changes #9745
FTO Changes #9745
Conversation
The required correction has been made. Please approve the PR, thanks!
Thanks for opening this pull request! This space is protected by our Code of Conduct - and we're here to help. |
@@ -9,7 +9,7 @@ def unsubscribed | |||
end | |||
|
|||
def speak(message) | |||
return unless current_user && current_user.role == "admin" | |||
return unless current_user && current_user.admin? |
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.
Use safe navigation (&.
) instead of checking if an object exists before calling the method.
Code Climate has analyzed commit 1929c0d and detected 1 issue on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
Codecov Report
@@ Coverage Diff @@
## main #9745 +/- ##
=======================================
Coverage ? 82.06%
=======================================
Files ? 98
Lines ? 5932
Branches ? 0
=======================================
Hits ? 4868
Misses ? 1064
Partials ? 0 |
LGTM! 🎉 💯 |
I agree @Manasa2850 thanks 🎉 🎉 thanks @KarAyushman for working on this 🎉 🎉 |
I will open a follow up fto for the code climate fix. Merging now |
Congrats on merging your first pull request! 🙌🎉⚡️ Help others take their first stepNow that you've merged your first pull request, you're the perfect person to help someone else out with this challenging first step. 🙌 Try looking at this list of `first-timers-only` issues, and see if someone else is waiting for feedback, or even stuck! 😕 People often get stuck at the same steps, so you might be able to help someone get unstuck, or help lead them to some documentation that'd help. Reach out and be encouraging and friendly! 😄 🎉 Read about how to help support another newcomer here, or find other ways to offer mutual support here. |
something to note @KarAyushman please be descriptive on commits/pull requests titles in future(have them explain the fix you are making). Thanks again |
@Manasa2850 @cesswairimu Thank you for helping me out with the FTO Issue :) @cesswairimu I'll keep that in mind henceforth, thanks Thank you so much, y'all have been great!! |
The required correction has been made. Please approve the PR, thanks!
The required correction has been made. Please approve the PR, thanks!
The required correction has been made. Please approve the PR, thanks!
Fixes #9740 (<=== Add issue number here)
Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!
rake test
@publiclab/reviewers
for help, in a comment belowIf tests do fail, click on the red
X
to learn why by reading the logs.Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software
Thanks!