Skip to content

Add support for Wiki Loves Africa#4

Closed
JeanFred wants to merge 3 commits intoptwikis:masterfrom
JeanFred:add-wiki-loves-africa
Closed

Add support for Wiki Loves Africa#4
JeanFred wants to merge 3 commits intoptwikis:masterfrom
JeanFred:add-wiki-loves-africa

Conversation

@JeanFred
Copy link
Copy Markdown
Contributor

Since this was requested by @ezachte (on-wiki), I decided to give this a go :) I may have missed things of course ; it does work locally inside a Docker container.

Hope that helps!

(Before deploying, the WLdata module should be seeded.)

The logic to transclude the contest logo was duplicated.

This extracts it into its own Jinja template, transcluded in both
country and eventmain templates.

It also adds explicitly transclude the WLM logo only for WLM,
and adds a default logo for unknown contests.
The mainpage Jinja template had hardcoded the data about contests.
- Add logo to contest_logo Jinja template
- Add to parsing regex in database scraping script
- Add routes to Flask
- Add entry for main page
@ezachte
Copy link
Copy Markdown

ezachte commented Jan 10, 2017 via email

@ezachte
Copy link
Copy Markdown

ezachte commented Jan 11, 2017 via email

@danilomac
Copy link
Copy Markdown
Contributor

Hi @JeanFred and @ezachte.
Jean, Sorry but I don't have time to work on this, if you find this code is stable I can merge it, but I can not develop the missing things and fix eventual bugs.
I developed the tool direct in Tool Labs login using vim, you can do the same to test the code while developing.

@JeanFred
Copy link
Copy Markdown
Contributor Author

@danilomac Sure, I’m happy to be accountable on bug fixing if I break things. Note that I reproduced the prod environment inside a Docker container and can thus vouch that this code is working.

Shall I keep working in my fork and deploy the fork to Labs then?

@danilomac
Copy link
Copy Markdown
Contributor

@JeanFred yes, you are free to deploy it to Labs.

@JeanFred
Copy link
Copy Markdown
Contributor Author

@danilomac Thanks! Just for clarification − are you ok with me deploying it to https://tools.wmflabs.org/wikiloves − with the understanding that I will fix any outstanding issue that may arise − or would you prefer me to create another Labs?

@danilomac
Copy link
Copy Markdown
Contributor

@JeanFred yes, you can deploy direct to https://tools.wmflabs.org/wikiloves

@JeanFred
Copy link
Copy Markdown
Contributor Author

JeanFred commented Aug 3, 2017

I now maintain this in my fork

@JeanFred JeanFred closed this Aug 3, 2017
@JeanFred JeanFred deleted the add-wiki-loves-africa branch November 3, 2020 15:05
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.

3 participants