mozilla / internet-health-report

MIT License
4 stars 9 forks source link

Create a wordpress subfolder for Internethealthreport.org/2018 and give access to Vizzuality devs #42

Closed kaodro closed 5 years ago

kaodro commented 6 years ago

Hi @cadecairos , we would like to create a wordpress instance for the upcoming Report so that Vizzuality developers can start getting familiar with it (the coding is about to start in November).

Could you do it and add the following emails with full developer rights: David.Inga@vizzuality.com (developer) Clement.Prodhomme@vizzuality.com (developer) and Clara.Linos@vizzuality.com (project manager, regular editor access)

They will be working in an open repository on github.

Let me know if you need any more info or anything is unclear. Thanks!

cadecairos commented 6 years ago

@kaodro Will the report eventually end up on the main Internet Health Report WordPress instance?

It might make more sense to create a new "site" there and use that. We should be able to secure it from the public during development.

kaodro commented 6 years ago

You are right, I think we want a subfolder on the same instance, does that make sense to you? Thanks! We want a new site and we want to secure it from the public during development. The site will have a whole new design and it will be developed by Vizzuality.

cadecairos commented 6 years ago

@kaodro what subfolder should we use? /v02?

kaodro commented 6 years ago

the url should be Internethealthreport.org/2018 so maybe it makes sense to call the subfolder like that, too (/2018)

kaodro commented 6 years ago

hey @cadecairos any news here? Do you need more info?

cadecairos commented 6 years ago

Hi @kaodro - the one blocker I have is finding a way to password protect just a single site on a multi-site instance.

If it's not a huge deal, we could easily add the site without a password block , and as long as it's not linked to anywhere on the web, it won't be indexed by web crawlers.

kaodro commented 6 years ago

@cadecairos sorry if I'm confusing things but would it be an option for them to build on staging, like the previous report, and then transfer it to the proper site once ready? Would that help the password protection issue? Thanks for patience answering all these questions.

cadecairos commented 6 years ago

We could use staging - but it won't be easy to transfer things over to the production site. Multi-site installs don't work well with staging.

kaodro commented 6 years ago

@cadecairos I talked with the team and they confirmed my feeling: we need to password protect the site while it's being built. So whether we need to find a solution for the site or create a staging version.

cadecairos commented 6 years ago

@kaodro so, I've found a plugin for Wordpress that will let us password protect a site on the network. It's going to cost $50 a month to use it though - is that alright? I can cancel it after we launch too, since it's month-to-month.

kaodro commented 6 years ago

@cadecairos that sounds like an expense we could afford. I will bring in the developer from Vizzuality into this discussion so he can say what he prefers given the risks (staging or this solution). Thanks for checking!

davidsingal commented 6 years ago

Hi! @cadecairos I've just tested this plugin. It adds a basic auth authentication for the site. It should be enough to protect the site. What do you think?

cadecairos commented 6 years ago

@davidsingal is that plugin compatible with multi-site installs? We don't want to block the landing site or v01 report.

davidsingal commented 6 years ago

@cadecairos let me check it in a multisite demo page. I will let you know the result.

davidsingal commented 6 years ago

@cadecairos do you know if we are using apache? I'm thinking we could put basic auth in a specific directory using .htaccess. If we are using NGINX, we can add this rule in the config file. What do you think? Could it work?

cadecairos commented 6 years ago

I'm not sure what WPEngine uses to host WP installs on their infrastructure - but I think there is a .htaccess file in the webroot of each WP install, which means they're probably using Apache at some stage.

kaodro commented 6 years ago

Hello all @cadecairos @davidsingal we need to keep moving forward here - we agreed with Vizzuality that the development of the site will start asap. Do you need any more information to set up the site?

cadecairos commented 6 years ago

@kaodro @davidsingal I dug into this and was able to set up basic auth for a new subsite.

https://internethealthreport.org/2018/ is ready for development.

In order to grant access, I'll need a list of users to generate passwords for, and we'll need a end-to-end encrypted means of transferring the credentials. I'm open to using something like Signal or Telegram.

kaodro commented 6 years ago

Fantastic, thank you! I will send you an email with a list, phone numbers and preferred channel of encrypted communication (Signal/Telegram (mind you, it is not encrypted by default but I'm sure you know it?)/do you use Wire?). Thanks, again.

santostiago commented 6 years ago

Hi @cadecairos. I was trying to set up the WP site but I don't seem to have access to do it. The credentials you sent me allow me to view the current website in WP, but not to access the admin console nor to upload the files needed to set up the backoffice. Can you please give me permissions to do that or suggest another way to do it? Thank you

kaodro commented 6 years ago

@cadecairos can you help Tiago? Vizzuality needs to start the work asap. Thanks for clarifying this issue so they can move forward

santostiago commented 6 years ago

Hi @cadecairos I've managed to log in into the wp-admin after you gave me permissions to do so, but I still lack permissions to install plugins and to upload themes. Could you please give me permissions to do so? Thank you

cadecairos commented 6 years ago

@santostiago I've granted you permissions that will let you install plugins and themes via the "network" admin dashboard. From there you'll be able to enable them on the 2018 sub site.

santostiago commented 6 years ago

@cadecairos ok, thank you. I'm going to test it now!

santostiago commented 6 years ago

@cadecairos it's working perfectly. Thank you.

dhakelila commented 6 years ago

Hi @cadecairos, I'm Clara, from Vizzuality. We'd need to install a plugin on the new Internet Health Report 2018 and it seems we don't have permissions for that.

Could you give me access or install this plugin for me, please? https://wordpress.org/plugins/tinymce-advanced/

If you install it, let me know as I need to do a very quick configuration as well. Or if you prefer to do it yourself, it is just going to the Advance Settings panel of the pluging and un-check the option for automatic removal of

and
tags.

dhakelila commented 6 years ago

Hi @cadecairos, ignore my previous message. I reached Tiago and he told me how to do it. I was looking at the wrong place.

Not used to multisite configurations!

cadecairos commented 6 years ago

Glad you've got it sorted out!

santostiago commented 6 years ago

Hi @cadecairos. We've been experiencing some issues when uploading new versions of the theme, as sometimes the old versions are still being displayed. This happens more often when no new files are added and we just modified some old ones.

When requesting the webpage, the old files are the ones sent. I checked that WP has no active cache plugin for the current project (HTTP Headers is deactivated) but I don't know the setup of the servers (so there might be some caching in the webserver, cloudflare or somewhere else). Do you know if there's a way we can invalidate the caching of the project's files on uploading them?

Thank you!

dhakelila commented 6 years ago

Hi @cadecairos, could you have a look at the issue Tiago is flagging?

The problem is that we can not show progress as the site seems not update when we upload the changes.

cadecairos commented 6 years ago

Hi, There are multiple levels of caching on the site. I've turned on a setting that should enable Administrators (@kaodro and Solana) to see the WPEngine control panel in WordPress.

@kaodro, you can purge the cached site data using the button labelled "Purge All Caches" which can be found by clicking the "WP Engine" dashboard button, which is shown below:

I've purged the caches already, but Kasia and Solana should now also be able to purge them to get updates out.

kaodro commented 6 years ago

thanks, @cadecairos . @dhakelila let me know if it works now and for the future, I will know how to purge the cache, if needed.

dhakelila commented 6 years ago

Thank you! Those are really good news!

And btw, changes are working. Maybe I'd add a bit more of space between paragraphs, but is working.

santostiago commented 6 years ago

Hi @cadecairos! In order to have the talk plugin to work, we need the talk server running and I need to know the url to connect to it. Is that something you can do? Thank you

cadecairos commented 6 years ago

@santostiago You can embed this snippet on pages where we want Talk:

<div id="coral_talk_stream"></div>
<script src="https://talk.mofoprod.net/static/embed.js" async onload="
  Coral.Talk.render(document.getElementById('coral_talk_stream'), {
    talk: 'https://talk.mofoprod.net/'
  });
"></script>

@kaodro who's going to be responsible for administering the conversation? We should get them an account on our Talk instance.

kaodro commented 6 years ago

@cadecairos it will be me, Solana and a bunch of volunteers we are recruiting now (don't know their names yet). Which information do you need: email and phone numbers + encrypted msg again? thanks!

cadecairos commented 6 years ago

You should all be able to sign up via the comments form, and I can promote people to moderators internally.

santostiago commented 6 years ago

@cadecairos Hi Christopher, in order to deactivate the reactions plugin for all sites except for the 2018 one, I'd like to know the id of the 2018 site. (Otherwise, we'd have to install a plugin to manage this, and it's better to avoid it).

dhakelila commented 6 years ago

Hi @cadecairos, can you take a look at Tiago's comment? We need the id for the 2018 site. Thanks!

cadecairos commented 6 years ago

@santostiago The 2018 sub-site has the id 6

santostiago commented 6 years ago

Thank you @cadecairos