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

Change http:// to https:// in several places (Fix for #6391) #8587

Closed
4 of 11 tasks
noi5e opened this issue Oct 15, 2020 · 32 comments · Fixed by #8596
Closed
4 of 11 tasks

Change http:// to https:// in several places (Fix for #6391) #8587

noi5e opened this issue Oct 15, 2020 · 32 comments · Fixed by #8596
Labels
first-timers-only They need to be well-formatted using the First-timers_Issue_Template.

Comments

@noi5e
Copy link
Contributor

noi5e commented Oct 15, 2020

Hi, this is a first-timers-only issue. This means we've worked to make it more legible to folks who either haven't contributed to our codebase before, or even folks who haven't contributed to open source before.

If that's you, we're interested in helping you take the first step and can answer questions and help you out as you do. Note that we're especially interested in contributions from people from groups underrepresented in free and open source software!

We know that the process of creating a pull request is the biggest barrier for new contributors. This issue is for you 💝

If you have contributed before, consider leaving this one for someone new, and looking through our general help wanted issues. Thanks!

🤔 What you will need to know.

Nothing! This issue is meant to welcome you to Open Source :) We are happy to walk you through the process.

🤓 A little background:

Basically we need to remove http:// and replace it with https:// in multiple files, so that the site can continue to load content as normal. See below and issue #6391 for more information.

Chrome will soon start blocking any http content loaded from an https page - not just scripts and iframes, but images, etc.
https://www.bleepingcomputer.com/news/google/google-chrome-to-gradually-start-blocking-mixed-content-by-default/

✒️ What to Change

There are a few places in the codebase where we can make this change. Please select ONE file to make a pull request (more info below), and leave the rest for other first-timers!

What Do I Do If Everything's Been Taken?

You can search this repository for instances of "http" like so:
Untitled 3

Leave a comment here if you find one!

Completed - Please do not claim these! They have already been completed.

📋 Step by Step

  • 🙋 Claim this issue: Make a comment on this page, claiming one of the files above. If someone else has already claimed it, ask if they've opened a pull request already and if they're stuck -- maybe you can help them solve a problem or move it along!

  • 📝 Update the file you've chosen by navigating to it. You can edit the line directly by clicking on the little pen icon.

  • 💾 Commit your changes

  • 🔀 Start a Pull Request. There are two ways how you can start a pull request:

  1. If you are familiar with the terminal or would like to learn it, here is a great tutorial on how to send a pull request using the terminal.

  2. You can also edit files directly in your browser and open a pull request from there.

  • 🏁 Done Ask in comments for a review :)

See this page for some help in taking your first steps!

Please keep us updated

💬⏰ - We encourage contributors to be respectful to the community and provide an update within a week of claiming a first-timers-only issue. We're happy to keep it assigned to you as long as you need if you update us with a request for more time or help, but if we don't see any activity a week after you claim it we may reassign it to give someone else a chance. Thank you in advance!

If this happens to you, don't sweat it! Grab another open issue.

Is someone else already working on this?

🔗- We encourage contributors to link to the original issue in their pull request so all users can easily see if someone's already started on it.

👥- If someone seems stuck, offer them some help! Otherwise, take a look at some other issues you can help with. Thanks!

🤔❓ Questions?

Leave a comment below!

@noi5e noi5e added the first-timers-only They need to be well-formatted using the First-timers_Issue_Template. label Oct 15, 2020
@welcome
Copy link

welcome bot commented Oct 15, 2020

Thanks for opening your first issue! This space is protected by our Code of Conduct - and we're here to help.
Please follow the issue template to help us help you 👍🎉😄
If you have screenshots or a gif to share demonstrating the issue, that's really helpful! 📸
Do join our Gitter channel for some brainstorming discussions.

@yashmohan100
Copy link

Hi @noi5e , Can i work on this issue ?

@yashmohan100
Copy link

yashmohan100 commented Oct 15, 2020

I have taken the first option

  • drupal_content_type_map.rb:
    l = "<a href='http://creativecommons.org/publicdomain/zero/1.0/'>Public Domain</a>" if field_license_value == 'publicdomain'
    l = "<a href='http://creativecommons.org/licenses/by/3.0/'>CC-BY</a>" if field_license_value == 'cc-by'
    l = "<a href='http://creativecommons.org/licenses/by-sa/3.0/'>CC-BY-SA</a>" if field_license_value == 'cc-by-sa'

@noi5e
Copy link
Contributor Author

noi5e commented Oct 15, 2020

@yashmohan100 Please go ahead!

@Kennygrace
Copy link
Contributor

Hello @noi5e, Please I would like to take up the second option on this issue

@sagarpreet-chadha
Copy link
Contributor

Sure @Kennygrace 😄

@amanda-ariyaratne
Copy link
Contributor

@noi5e I would like to work on the third option

@MinervaLong
Copy link
Contributor

Hello, @noi5e I would like to work on the fourth option, thank you.

@DhrutikPatel
Copy link
Contributor

Hello, @noi5e I would like to do PR on fifth option

@mpmadhavig
Copy link

Hi, I would like to work on the sixth option

@cesswairimu
Copy link
Collaborator

Maybe we should separate each file changes to individual issues for review and merging purposes(we have automatic closure of issue once a linked PR is merged) @noi5e would you like to separate these? please ping me if you need any help. Thanks a lot for opening this 💯

@noi5e
Copy link
Contributor Author

noi5e commented Oct 17, 2020

@cesswairimu Okay, got it. I think I'll have some time later today or tomorrow to make separate issues.

@cesswairimu
Copy link
Collaborator

Thanks @noi5e

@ebarry
Copy link
Member

ebarry commented Oct 19, 2020

Thank you @noi5e ! Excellent signposting for the community.

@tejaswini22199
Copy link

Hey @noi5e is there any box that is not merged yet? or all the 6 files have been modified?

@cesswairimu
Copy link
Collaborator

Reopening

@cesswairimu cesswairimu reopened this Oct 19, 2020
@mscreation28
Copy link

Hey @noi5e I am trying to to do my first pull request. Can you assign me this task if any left and tell me what to change in reopened issue?

@noi5e
Copy link
Contributor Author

noi5e commented Oct 20, 2020

@cesswairimu Okay, I opened new FTO issues for 5 out of the 6 instances (in the 6th instance, the PR was already merged). Hope that helps the organization a little bit.

Any first-time contributor that's reading this (@mscreation28, others) and still looking for an FTO issue: I believe that there are still instances of http left in the codebase that need to be converted to https. Please read the initial notes I posted for this issue and look at the animated GIF on how to search the codebase for http.

From there you can write your own FTO issue for the file... Or maybe someone who just made an FTO contribution and wants to make an issue can do it (after writing 6 FTO issues, I'm kinda looking forward to contributing to Public Lab in another way 😋)

@jwalit21
Copy link

hey @noi5e..

Till i've found these 2 new issues in files where we might have to change http to https based on how you have explained in GIF.
Those files are 1. notes_controller_test.rb 2. critical_path_css.yml

I'm a first-timer, and i want to contribute in this project.
so can you please confirm that the issues i founded i correct and valid or not?

And if it is valid then can you please assign this issue to me by creating new FTO issue?

Thank you @noi5e

@noi5e
Copy link
Contributor Author

noi5e commented Oct 20, 2020

@jwalit21 Awesome, that's great! I'll leave it to @jywarren and @cesswairimu to decide if they want the changes to be made in those files...

Also, I encourage you to make your own FTO issue. (I'm pretty new to this codebase and only just recently completed my own FTO issue). More info here: https://publiclab.org/notes/warren/10-31-2016/create-a-welcoming-first-timers-only-issue-to-invite-new-software-contributors

@cesswairimu
Copy link
Collaborator

Great 🎉 , thanks @noi5e 🎉 @jwalit21 I will check if the hyperlinks can be changed on the tests and revert. Thanks

@jayaram2000
Copy link

Hey, I'm new to open source and would love to contribute. Are there any open issue?

@mingweisoo
Copy link

hi I'd like to make changes to db/seeds.rb:

@mingweisoo
Copy link

Hi which ones still need to replaced?

@cesswairimu
Copy link
Collaborator

Hi @evansusu, these all have been assigned to people. Thanks

@noi5e
Copy link
Contributor Author

noi5e commented Oct 31, 2020

@evansusu @jayaram2000 Even though these six instances have already been claimed by other people, there are still other places which have http instead of https.

You can search for http in plots2 like so:

If you find a place that needs the change, leave a comment here and let us know! You can make a first-timers-only issue, and assign yourself to it (and we can help you with that) :)

@YubaNeupane
Copy link

Can I fix this issue?

@jayaram2000
Copy link

@noi5e Can I take up openid_test.rb file?

@cesswairimu
Copy link
Collaborator

cesswairimu commented Nov 23, 2020

@jwalit21 sorry this skipped my mind. Replacing the test looks like it would be okay. Do let me know if you would like to work on that and I will create an FTO for you. Thanks

cesswairimu pushed a commit that referenced this issue Dec 17, 2020
…8587) (#8593)

* Update notify_moderators_of_comment_spam.html.erb

Changed http to https

* Hostname update in notify_moderators_of_comment_spam.html.erb

Hostname is loaded from configuration file instead of hardcoded hostname
@symrin
Copy link

symrin commented Dec 20, 2020

@noi5e Can I take the user_tags.yml file, and make the change there?

@cesswairimu
Copy link
Collaborator

cesswairimu commented Dec 21, 2020

Hi @symrin, you can take it up as a trial issue...not sure it will affect the tests. If you are up to do the changes and do the PR and see if the tests will be all good please go ahead. Thanks

@cesswairimu
Copy link
Collaborator

cesswairimu commented Dec 31, 2020

All the issues broken out from here have all been solved and merged 🎉 🎉... Thanks a lot everyone and many thanks to @noi5e for opening this and helping all the new contributors 🙌 🙌

I have opened some more ftos for the remaining instances on app/views... and linking back to the main issue here for further discussions . Thanks again all ❤️

manchere pushed a commit to manchere/plots2 that referenced this issue Feb 13, 2021
…ubliclab#8587) (publiclab#8593)

* Update notify_moderators_of_comment_spam.html.erb

Changed http to https

* Hostname update in notify_moderators_of_comment_spam.html.erb

Hostname is loaded from configuration file instead of hardcoded hostname
lagunasmel pushed a commit to lagunasmel/plots2 that referenced this issue Mar 2, 2021
…ubliclab#8587) (publiclab#8593)

* Update notify_moderators_of_comment_spam.html.erb

Changed http to https

* Hostname update in notify_moderators_of_comment_spam.html.erb

Hostname is loaded from configuration file instead of hardcoded hostname
reginaalyssa pushed a commit to reginaalyssa/plots2 that referenced this issue Oct 16, 2021
…ubliclab#8587) (publiclab#8593)

* Update notify_moderators_of_comment_spam.html.erb

Changed http to https

* Hostname update in notify_moderators_of_comment_spam.html.erb

Hostname is loaded from configuration file instead of hardcoded hostname
billymoroney1 pushed a commit to billymoroney1/plots2 that referenced this issue Dec 28, 2021
…ubliclab#8587) (publiclab#8593)

* Update notify_moderators_of_comment_spam.html.erb

Changed http to https

* Hostname update in notify_moderators_of_comment_spam.html.erb

Hostname is loaded from configuration file instead of hardcoded hostname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
first-timers-only They need to be well-formatted using the First-timers_Issue_Template.
Projects
None yet