Grant Metrics is still in Beta (I think), but especially as popularity grows, we're going to need a safe place to test new features and bug fixes. We should create a dedicated staging tool, "grantmetrics-test" or the like.
|Open||None||T189757 Grant Metrics bug - blank page, make sure there is a fallback error for when the error page doesn't work|
|Resolved||MusikAnimal||T190962 Create Grant Metrics staging tool|
- Mentioned In
- T191369: Invalid wiki name saves as "all"
T189915: Add a link to let people query for "All wikipedias"
T189757: Grant Metrics bug - blank page, make sure there is a fallback error for when the error page doesn't work
- Mentioned Here
- T187380: BUG: New program with first event makes the UI look a little weird
Also that app.php ... I think the OAuth redirect goes there (whoops). Not a big deal for the staging env. Things should still work at https://tools.wmflabs.org/grantmetrics-test/programs
It's just a testing environment for internal purposes. You of course are welcome to use it to test out new features we're working on, etc. :) but no real events should be ran on that tool. I've added a notice at the top of the page that explains this.
Is the database fully set up? I got the following error on https://tools.wmflabs.org/grantmetrics-test/app.php/programs/test/a/revisions :
The server said: An exception occurred while executing 'SELECT COUNT(id) FROM ( ) a': SQLSTATE: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') a' at line 2
How did you manage to set the Wikis to "All"?!? https://tools.wmflabs.org/grantmetrics-test/programs/test/a That's why you're getting that error, I believe.
Also, app.php is in all URLs.
I accidentally set the OAuth callback to go to /grantmetrics-test/app.php. You can remove the app.php and it won't stay there as you click on links. I could create a new OAuth consumer with the correct callback, but I think better would be to redirect when attempting to browser to app.php.
It seems that if you enter only spaces in the wiki selection box, is says "Result not Found" (with a capital F by the way), but still lets you submit and then it has 'Wikis: All'. Replicated here: https://tools.wmflabs.org/grantmetrics-test/programs/test/Robert%27%29;_DROP_TABLE_programs;--
And I don't think it matters much about the URLs, if it's more bother to change it.