Every time I try to look up my editing statistics on French Wikipedia, it tells me that "fr.wikipedia.org is not a valid project". See screenshot:
Description
Related Objects
- Mentioned In
- T165401: Restrict access to users' edit stats unless opted-in
- Mentioned Here
- T167217: Planning for Xtools beta
Event Timeline
Works for me. Queries need to be optimized but that's outside of the scope of this task.
Still broken for me. Steps to reproduce:
- In Firefox, go to http://xtools.wmflabs.org/ec
- Fill in "fr.wikipedia.org" as the project
- Fill in "Kaldari" as the Username
- Hit Submit.
If I try "en.wikipedia.org" it works fine, but any other wiki, like de.wikipedia.org or es.wikipedia.org causes it to give me the error consistently.
When it submits the form, it sends a request to http://xtools.wmflabs.org/api/normalizeProject/fr.wikipedia.org, which returns a 500 Internet Server error (often after waiting a long time).
Ahhhh, you were testing on the new "live" instance. I was testing on the "dev" instance, which succeeded.
I wonder what the difference is between the instances. @Samwilson you set up the OOP code correct? Do you have any thoughts here?
The API that it is using works at the time of writing: http://xtools.wmflabs.org/api/namespaces/fr.wikipedia.org
Compare to http://xtools.wmflabs.org/api/namespaces/fr.wikipedia.orggg (invalid)
I think it works now (I fixed a bug in prod deployment relating to permissions on the var directory, and usage of Redis).
@Samwilson: If there are some clean-up tasks that need to be done each time the code is updated, you might want to implement a composer script. @dbarratt might also have some ideas.
Good plan. Is it okay for a composer script to call composer install? I guess so. :-)
The prod script is currently:
#!/bin/bash export SYMFONY_ENV=prod cd /var/www git pull origin master composer install --no-dev --optimize-autoloader ./bin/console cache:clear --env prod ./bin/console assetic:dump --env prod
And similar on the staging server.
(I guess T167217 is the place for that discussion though.)