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

update likes with emoji_type: nil to emoji_type: ThumbsUp #2999

Merged
merged 1 commit into from Jul 10, 2018

Conversation

ViditChitkara
Copy link
Member

@ViditChitkara ViditChitkara commented Jul 6, 2018

Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!

  • tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR -- or run tests locally with rake test
  • code is in uniquely-named feature branch and has no merge conflicts
  • PR is descriptively titled
  • PR body includes fixes #0000-style reference to original issue #
  • ask @publiclab/reviewers for help, in a comment below

We're happy to help you get this ready -- don't be afraid to ask for help, and don't be discouraged if your tests fail at first!

If 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

We have a loose schedule of reviewing and pulling in changes every Tuesday and Friday, and publishing changes on Fridays.

Thanks!

@ghost ghost assigned ViditChitkara Jul 6, 2018
@ghost ghost added the in progress label Jul 6, 2018
@plotsbot
Copy link
Collaborator

plotsbot commented Jul 6, 2018

1 Warning
⚠️ New migrations added. Please update schema.rb.example by overwriting it with a copy of the up-to-date db/schema.rb. Also, be aware to preserve the MySQL-specific conditions for full-text indices.
1 Message
📖 @ViditChitkara Thank you for your pull request! I’m here to help with some tips and recommendations. Please take a look at the list provided and help us review and accept your contribution! And don’t be discouraged if you see errors – we’re here to help.

Generated by 🚫 Danger

@jywarren
Copy link
Member

jywarren commented Jul 6, 2018

want to try pushing to unstable? 🎉

@ViditChitkara
Copy link
Member Author

Sure!

@ViditChitkara
Copy link
Member Author

Pushing on unstable!

@ViditChitkara
Copy link
Member Author

@jywarren the build went well on jenkins but it shows some wierd error--something related to memory

@ViditChitkara
Copy link
Member Author

*** Error in `/usr/local/bin/ruby': free(): invalid next size (fast): 0x000055a2341f9950 ***
Here it is!!

@ViditChitkara
Copy link
Member Author

@jywarren any ideas on this? The build went fine but shows error on travis. Locally this worked perfectly.

@jywarren
Copy link
Member

jywarren commented Jul 6, 2018 via email

@ViditChitkara
Copy link
Member Author

ViditChitkara commented Jul 6, 2018 via email

@jywarren
Copy link
Member

jywarren commented Jul 6, 2018

whoa... let me try one more time. Hmm.

@ViditChitkara
Copy link
Member Author

Wohoo, passed this time!! That's really cool!

@jywarren
Copy link
Member

jywarren commented Jul 6, 2018

Hm, I guess I'm still wondering if standardizing to the standard emoji short code value would be a good idea: https://www.emojibase.com/emoji/1f44d/thumbsupsign :+1:

I don't know though. If you think this is good, i'll merge! Thanks!

@ViditChitkara
Copy link
Member Author

Sure, no problems. I'll make the changes.

@ViditChitkara
Copy link
Member Author

Hi @jywarren, I tried replacing ThumbsUp with +1 which is when I realised that the logic becomes a lot more clumsy due to this. First of all the + in "+1" is ignored in query params, which makes it just " 1". It is also ignored when I try to use instance variables (e.g. '@likes') inside views. And I just realised github uses "ThumbsUp" too, maybe the reason being the same. This is doable but we might need to handle a lot of cases for this.
Your thoughts on this??

@jywarren
Copy link
Member

jywarren commented Jul 9, 2018 via email

@ViditChitkara
Copy link
Member Author

Cool, so shall we go forward with this?? Or any other changes I need to make? We need to make it ThumbsUp instead of +1 for comment autocomplete. Please correct me if I'm wrong.

@jywarren
Copy link
Member

jywarren commented Jul 9, 2018

I think let's change it to thumbs_up but then go forward with this! Thanks, @ViditChitkara !!!

@ViditChitkara
Copy link
Member Author

Hmm, I have kept it thumbs_up (helped to generalise the like function), however in emoji_type it is all in camel case (e.g, ThumbsUp, Laugh, etc.).

@jywarren
Copy link
Member

ok awesome, good to go now? Thanks @ViditChitkara !!!

@ViditChitkara
Copy link
Member Author

Yes!!

@jywarren jywarren merged commit 2292add into publiclab:master Jul 10, 2018
@ghost ghost removed the review-me label Jul 10, 2018
@jywarren
Copy link
Member

Awesome!!! 🎉 🎉 🎉

@ViditChitkara
Copy link
Member Author

Thanks a lot!

SrinandanPai pushed a commit to SrinandanPai/plots2 that referenced this pull request May 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants