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

Fix bad reference in node.rb (fixes #2398) #2410

Closed
wants to merge 3 commits into from

Conversation

MittalS211
Copy link

@MittalS211 MittalS211 commented Feb 27, 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!

Fixes #2398

@MittalS211
Copy link
Author

@jywarren hi I just submitted the PR for #2398
Thanks for the help, I shall now move on to a new issue.

@seafr seafr changed the title #2398 fixed Fix bad reference in node.rb (fixes #2398) Feb 27, 2018
def questions
# override with a tag like `questions:h2s`
if self.has_power_tag('questions')
tagname = self.power_tag('questions')
Copy link
Member

Choose a reason for hiding this comment

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

This is the only line that needed to be changed.

@seafr
Copy link
Member

seafr commented Feb 27, 2018

Thank you @MittalS211 for your first PR.
Issue #2398 specified only one line to be changed in app/models/node.rb. This is probably why the Travis CI build was not successful (see the red X above).
Have you run the tests locally?

@jywarren
Copy link
Member

@MittalS211
Copy link
Author

MittalS211 commented Feb 27, 2018 via email

@seafr
Copy link
Member

seafr commented Feb 27, 2018

@MittalS211 I would like to ask if you are working on a clone of plots2, or from a downloaded zip archive (since it seems that entire files were added to the commits).

@@ -44,6 +44,9 @@
<i class='icon fa fa-trash'></i>
</a>
<% end %>
<a rel="tooltip" title="Flag as spam." class="btn btn-sm btn-default" href="mailto:moderators@publiclab.org?subject=Reporting+spam+on+Public Lab&body=Hi,+I+found+this+item+that+looks+like+spam+or+needs+to+be+moderated:+"<%= comment.body.replace(' ','+') %>"%0A%0Ahttps://publiclab.org/n/<%= node.id %>%0Aby+https://publiclab.org/profile/<%= comment.author.username %>%0A%0AThanks!">
Copy link
Member

Choose a reason for hiding this comment

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

These lines look just right. I wonder if you could remove the others from your PR?

https://stackoverflow.com/questions/215718/reset-or-revert-a-specific-file-to-a-specific-revision-using-git

Then I think we'll be done here! Thanks so much!

@SidharthBansal
Copy link
Member

Hi @MittalS211 Do you need any help??

@SidharthBansal
Copy link
Member

As the person is inactive for more than a month, I am closing the PR. In case you want to push changes please feel free to open a new PR.
Thanks for contributing at Public Lab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix bad reference in node.rb
4 participants