-
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
Rename main_image.js to mainImage.js #9201
Conversation
@noi5e please review when you get a chance thanks :) |
Codecov Report
@@ Coverage Diff @@
## main #9201 +/- ##
=======================================
Coverage ? 81.97%
=======================================
Files ? 100
Lines ? 5953
Branches ? 0
=======================================
Hits ? 4880
Misses ? 1073
Partials ? 0 |
Hi @larabee7777 could you please add the issue number at |
@Manasa2850 Ah yeah, good catch! @larabee7777 I didn't know you had this PR open because it wasn't linked to the issue. Putting the issue number in the PR links it back there. It looks like the tests are failing, so we won't be able to merge this yet: If I look under Files Changed... I see that you renamed the file, but didn't do the other change that was in the issue. Please make another commit to include that change! Thanks. |
Hi, I think I separated the two issues into 2 pull requests because it looked like two issuse - one code change and one file name change. So I thought I did both issues, but let me look again and see what I missed. /app/assets/javascripts/application.js - went to this file and edited the code
So I think I at least understood what was expected of me but I made a mistake somewhere and I must check again |
So I checked both pull requests and linked them as requested, in that main description area. So these two PR's fix #9148 publiclab/plots2 Rename main_image.js to mainImage.js Should it be one PR per issue? If so how would I have done that because I thought I had to branch off each filename and each change so that if one fix is right and the rest wrong we can approve the one right action and work on the incorrect ones. Please let me know what I did wrong and how I can improve, thanks so much for your help! |
It looks like the tests are failing, so we won't be able to merge this yet: I dont know what those tests mean please help me with that. The code is commented out so I thought I had to leave it as is and the errors would be fixed as other issues |
@larabee7777 Thanks for hanging in there and asking for clarification! It has to be 1 PR containing both changes simultaneously. If the changes are spread out over 2 PRs, it's like there are 2 different versions of the app. Each pull request has its own version of the app, and they have no relation with each other. If you rename If you look through the failed tests (click on Details in the screenshot I took above), you can get a sense for this by looking at the readout: Aha! It says I was also confused about lines looking like they were commented out in Hope that helps! So definitely make 1 PR with both changes and we'll take it from there. Actually you don't need to open up a new PR, you can just push the commit to the PR you already have open. In other words, make the change to |
Code Climate has analyzed commit 0866bfe and detected 0 issues on this pull request. View more on Code Climate. |
It looks like both changes are on the same PR now as I see two file changes One question: this is the code in the file mainImage,js - the filename was changed so must I change that main_image code in line 3 with the correct camel case mainImage too? I didn't see explicit instructions to change that so I left it. |
@larabee7777 Ah no, that's different. That's an example of a jQuery selector. jQuery is referring to an HTML element that has an ID Come to think of it, this is probably a good example of why programmers have naming conventions. Usually HTML elements follow the convention of Otherwise, this looks good! Your tests are all passing! That means this is ready to merge! |
Great work folks! Thanks so much @larabee7777 and thanks @noi5e for the support!!! |
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. |
* Rename main_image.js to mainImage.js * Update application.js
* Rename main_image.js to mainImage.js * Update application.js
* Rename main_image.js to mainImage.js * Update application.js
Fixes #9148
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!