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 all 11 changes in plots2/app/views/home/subscriptions.html.erb from t(..) to translation (..) #6778

Merged
merged 4 commits into from
Dec 3, 2019

Conversation

sap143
Copy link
Member

@sap143 sap143 commented Nov 14, 2019

Fixes #6778

Fix all the 11 changes t(..) to translation (..) in line number 9,11,34,37,58,59,60 inside plots2/app/views/home/subscriptions.html.erb

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

  • PR is descriptively titled 📑 and links the original issue above 🔗
  • 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 📁
  • screenshots/GIFs are attached 📎 in case of UI updation
  • 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

Thanks!

@welcome
Copy link

welcome bot commented Nov 14, 2019

Thanks for opening this pull request! This space is protected by our Code of Conduct - and we're here to help.
Dangerbot will test out your code and reply in a bit with some pointers and requests.
Also please refer here for installation help 💿
There may be some errors, but don't worry! We'll work through them with you! 👍🎉😄
It would be great if you can tell us your Twitter handle so we can thank you properly?

@nstjean
Copy link
Contributor

nstjean commented Nov 14, 2019

Thanks! While I'm reviewing the code can you add the issue # at the top? The title also needs to be changed to be specific which file is being changed, since there are a lot of translation issues.

@sap143 sap143 changed the title changes all t to translation Fix all 11 changes in plots2/app/views/home/subscriptions.html.erb from t(..) to translation (..) Nov 14, 2019
@sap143
Copy link
Member Author

sap143 commented Nov 15, 2019

@nstjean I have mentioned issue # and title

Copy link
Contributor

@nstjean nstjean left a comment

Choose a reason for hiding this comment

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

The changes to home/subscriptions.html.erb look great!

We shouldn't have any changes to other files, though. Can you remove the changes to sidebar/_author.html.erb ?

@nstjean
Copy link
Contributor

nstjean commented Nov 15, 2019

Here's a screenshot of the working code change.

FireShot Capture 063 - 🎈 Public Lab_ Subscriptions - localhost

Copy link
Contributor

@nstjean nstjean left a comment

Choose a reason for hiding this comment

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

Great thanks! This is all set to merge.

@sap143
Copy link
Member Author

sap143 commented Nov 15, 2019

@nstjean Thanks

@nstjean
Copy link
Contributor

nstjean commented Nov 15, 2019

@SidharthBansal The error is that no language set one again, hopefully you can get that all set.

@SidharthBansal
Copy link
Member

Please provide a descriptive title.
Thanks for contributing at PL

@SidharthBansal
Copy link
Member

Quick Suggestion: Go to the travis tests and check what error is happening.
See
image
First thing: we can remove that t->translation to other pr that causes this error
Second thing: we can solve that error in other pr by fixing the above test.

Thanks

@nstjean
Copy link
Contributor

nstjean commented Nov 18, 2019

@SidharthBansal Ahhh, ok, so it's test_graph in test/unit/tag_selection_test.rb that is causing it? I'll take a look at it.

@SidharthBansal
Copy link
Member

SidharthBansal commented Nov 18, 2019 via email

@nstjean
Copy link
Contributor

nstjean commented Nov 18, 2019

@SidharthBansal When I run that test in my local it passes. So what do I do next?

@SidharthBansal
Copy link
Member

Please read #6778 (comment)

@nstjean
Copy link
Contributor

nstjean commented Nov 18, 2019

"we can remove that t->translation to other pr that causes this error" I don't know what this means, can you clarify? How do we know what PR causes this error? I don't know much about testing.

@SidharthBansal
Copy link
Member

To understand testing please refer https://hackernoon.com/your-guide-to-testing-in-ruby-on-rails-5-c8bd122e38ad OR https://guides.rubyonrails.org/testing.html
In short, testing is done to ensure the implementation of working properly.

Try to read the failing test in the screenshot provided above. Detect the line number and file from the failing test. Then move that line from this PR to new PR.

Thanks

@nstjean
Copy link
Contributor

nstjean commented Nov 29, 2019

Ok thanks!

@nstjean
Copy link
Contributor

nstjean commented Nov 29, 2019

I ran the test in my local branch of this PR and it's passing.

@SidharthBansal
Copy link
Member

SidharthBansal commented Nov 29, 2019 via email

@nstjean
Copy link
Contributor

nstjean commented Nov 29, 2019

rails test test/system/screenshots_test.rb

@SidharthBansal
Copy link
Member

SidharthBansal commented Nov 30, 2019 via email

@nstjean
Copy link
Contributor

nstjean commented Nov 30, 2019

So when I run rails test I get 8 errors... but I'm seeing the same errors when I run the full tests on the master branch.

natalie@natalie-ubuntu: ~-Dev-Ruby-public-lab-plots2_007

natalie@natalie-ubuntu: ~-Dev-Ruby-public-lab-plots2_006

@SidharthBansal
Copy link
Member

SidharthBansal commented Dec 1, 2019 via email

@jywarren
Copy link
Member

jywarren commented Dec 2, 2019

Hi, all, sorry can you catch me up on this?

@SidharthBansal The error is that no language set one again, hopefully you can get that all set.

I found I wasn't able to test this locally because i couldn't set the language locally. But the recent PRs doing this have all worked fine, so I think it's OK... let me review the PR.

@SidharthBansal
Copy link
Member

Just catching you as you indicated!

@jywarren
Copy link
Member

jywarren commented Dec 3, 2019

The error is odd --


 FAIL["test_graph", #<Minitest::Reporters::Suite:0x0000556c121340d8 @name="TagSelectionTest">, 0.3586234310000691]
 test_graph#TagSelectionTest (0.36s)
        Expected: 16
          Actual: 20
        test/unit/tag_selection_test.rb:12:in `block in <class:TagSelectionTest>'
  319/319: [===============================] 100% Time: 00:00:24, Time: 00:00:24

I'm not sure it's related. So I'm restarting that test, let's see if it passes... ?

@jywarren
Copy link
Member

jywarren commented Dec 3, 2019

Yay! Merging this now, thanks for sticking with it, we appreciate your help! And thanks to everyone who helped make this happen!

@jywarren jywarren merged commit dd06555 into publiclab:master Dec 3, 2019
@welcome
Copy link

welcome bot commented Dec 3, 2019

Congrats on merging your first pull request! 🙌🎉⚡️
Your code will likely be published to PublicLab.org in the next few days, but first it will be published to https://stable.publiclab.org/ (it will take some minutes for this to load, and until then you may see logs from the build process). Please test out your work on this testing server and report back with a comment that all has gone well!
Do join our weekly check-in to share your this week goal and the awesome work you did 😃. Please find the link pinned in the issue section 📝
Now that you've completed this, you can help someone else take their first step!
Reach out to someone else working on theirs on Public Lab's code welcome page. Thanks!

Help others take their first step

Now that you've merged your first pull request, you're the perfect person to help someone else out with this challenging first step. 🙌

https://code.publiclab.org

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.

1 similar comment
@welcome
Copy link

welcome bot commented Dec 3, 2019

Congrats on merging your first pull request! 🙌🎉⚡️
Your code will likely be published to PublicLab.org in the next few days, but first it will be published to https://stable.publiclab.org/ (it will take some minutes for this to load, and until then you may see logs from the build process). Please test out your work on this testing server and report back with a comment that all has gone well!
Do join our weekly check-in to share your this week goal and the awesome work you did 😃. Please find the link pinned in the issue section 📝
Now that you've completed this, you can help someone else take their first step!
Reach out to someone else working on theirs on Public Lab's code welcome page. Thanks!

Help others take their first step

Now that you've merged your first pull request, you're the perfect person to help someone else out with this challenging first step. 🙌

https://code.publiclab.org

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.

vinitshahdeo pushed a commit to vinitshahdeo/plots2 that referenced this pull request Feb 1, 2020
…om t(..) to translation (..) (publiclab#6778)

* changed t(...) to translation(...) on line number 8

* Fixed all 11 changes t(..) to translation(..)

* remove change from sidebar/_author.html.erb
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.

4 participants