Re: [Wikitech-l] Change page’s content model

2020-03-10 Thread Jonathan Morgan
Thanks XaosFlux and Gergo,

Gergo: Diego is working on the templates in his userspace, but our plan is
to move them to the template namespace when we're done testing, etc.

Thanks again for the quick turnaround on this!

- J

On Tue, Mar 10, 2020 at 11:14 AM Gergo Tisza  wrote:

> Hi Diego!
>
> On Tue, Mar 10, 2020 at 9:28 AM Diego Quintana 
> wrote:
>
> > So my question is, could you change my CSS page’s content model to
> > sanitized-css, or is there a way to create a new .css page and have it be
> > sanitized-css from its creation.
> >
>
> The content model is usually determined by the namespace when the page is
> created, and stays the same after that (administrators can change it, as
> you say). So you can create the page in the Template namespace with a .css
> extension, which will make it a sanitized-css page, and then move it
> elsewhere.
>
> In my opinion it's better to keep such pages in the template namespace
> though. User CSS subpages in particular are not ideal because they are
> protected from editing by anyone other than the owner, making it difficult
> to collaborate on them.
> ___
> Wikitech-l mailing list
> Wikitech-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l



-- 
Jonathan T. Morgan
Senior Design Researcher
Wikimedia Foundation
User:Jmorgan (WMF) 
(Uses He/Him)

*Please note that I do not expect a response from you on evenings or
weekends*
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

[Wikitech-l] [Wikimedia Technical Talks] Understanding Wikimedia Maps and its challenges, 25 March 2020 at 6 PM UTC

2020-03-10 Thread Sarah R
Hello Everyone,

It's time for Wikimedia Tech Talks 2020 Episode 2! This talk will take
place on *25 March 2020 at 6 PM UTC*.

*Title: *Understanding Wikimedia Maps and its challenges

*Speaker:*  Mateus Santos, Software Engineer

*Summary: *The WMF Product Infrastructure Team has been maintaining the
Wikimedia Maps service for the last year and a half with help from SRE.
This talk will share the challenges and work of creating a better
development environment to enhance productivity, solve technical debt and
keep up with platform modernization.

The link to the Youtube Livestream can be found here:
https://www.youtube.com/watch?v=2LH-pYdi9Ks

During the live talk, you are invited to join the discussion on IRC at
#wikimedia-office

You can watch past Tech Talks here:
https://www.mediawiki.org/wiki/Tech_talks

If you are interested in giving your own tech talk, you can learn more
here:
https://www.mediawiki.org/wiki/Project:Calendar/How_to_schedule_an_event#Tech_talks

Note: This is a public talk. Feel free to distribute through appropriate
email and social channels!

Kindly,

Sarah R. Rodlund
Technical Writer, Developer Advocacy

srodl...@wikimedia.org
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Change page’s content model

2020-03-10 Thread Gergo Tisza
Hi Diego!

On Tue, Mar 10, 2020 at 9:28 AM Diego Quintana 
wrote:

> So my question is, could you change my CSS page’s content model to
> sanitized-css, or is there a way to create a new .css page and have it be
> sanitized-css from its creation.
>

The content model is usually determined by the namespace when the page is
created, and stays the same after that (administrators can change it, as
you say). So you can create the page in the Template namespace with a .css
extension, which will make it a sanitized-css page, and then move it
elsewhere.

In my opinion it's better to keep such pages in the template namespace
though. User CSS subpages in particular are not ideal because they are
protected from editing by anyone other than the owner, making it difficult
to collaborate on them.
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Change page’s content model

2020-03-10 Thread Xaos Flux
I did this for you.  If you ever need again, just drop an edit request on
the associated talk page by putting "{{sudo}}".

Xaosflux

On Tue, Mar 10, 2020 at 12:28 PM Diego Quintana 
wrote:

> Hello, I’m a web developer currently working with the Research Team in
> developing a new Template for Research Sub-Programs to be hosted on Meta,
> using the TemplateStyles extension.
>
> I’ve never edited something on Wiki before but I’ve managed to create my
> user page, and build a sub-page with a sub-sub-page styles.css to later be
> moved to the Template namespace.
>
> I’ve tested TemplateStyles using my page as the src attribute, but,
> apparently, my CSS’s content model defaults to CSS once I create it but in
> order to use TemplateStyles I need to make the content model sanitized-css
> for that page. And I noticed there’s a Content Model editor but it’s only
> available to Administrators.
>
> My styles.css is here:
> https://meta.wikimedia.org/wiki/User:DiegoQuintanaCL/Research_Program/styles.css
>
> So my question is, could you change my CSS page’s content model to
> sanitized-css, or is there a way to create a new .css page and have it be
> sanitized-css from its creation.
>
> Thank you very much.
> ___
> Wikitech-l mailing list
> Wikitech-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

[Wikitech-l] Change page’s content model

2020-03-10 Thread Diego Quintana
Hello, I’m a web developer currently working with the Research Team in 
developing a new Template for Research Sub-Programs to be hosted on Meta, using 
the TemplateStyles extension.

I’ve never edited something on Wiki before but I’ve managed to create my user 
page, and build a sub-page with a sub-sub-page styles.css to later be moved to 
the Template namespace.

I’ve tested TemplateStyles using my page as the src attribute, but, apparently, 
my CSS’s content model defaults to CSS once I create it but in order to use 
TemplateStyles I need to make the content model sanitized-css for that page. 
And I noticed there’s a Content Model editor but it’s only available to 
Administrators.

My styles.css is here: 
https://meta.wikimedia.org/wiki/User:DiegoQuintanaCL/Research_Program/styles.css

So my question is, could you change my CSS page’s content model to 
sanitized-css, or is there a way to create a new .css page and have it be 
sanitized-css from its creation.

Thank you very much.
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

[Wikitech-l] m2 (OTRS, recommendations_api, gerrit, debmonitor) primary database restart

2020-03-10 Thread Manuel Arostegui
Hello,

Tuesday 17th at 09:00 AM UTC we will be restarting db1132 as part
of T239791.
We will take the opportunity to upgrade MySQL there.

m2 holds the following databases:

- OTRS
- Recommendations API
- Reviewdb (gerrit)
- Debmonitor

We expect read-only time to be around 30-60 seconds, also, gerrit might be
unavailable as well.
Coordination will happen on #wikimedia-operations

Thanks!
Manuel.
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l