Bug report
Steps to Reproduce:
- Go to https://xtools.wmflabs.org/login.
- Click “Allow” button.
- Click “Automated Edits — Analysis of semi-automated and non-automated contributions” button.
- Wait for the page to loading complete and then refresh the page.
Actual Results:
You have been logged out.
Expected Results:
You are still logged in.
Conclusion
Some tools like the AutoEdits index page make an internal API request whihc gets re-reouted to the API server. Both have their own separate caching systems. and that there, my friends, is the problem! They need to be shared. We would have needed to come up with a solution for this soon anyway, as in the future we will offer API endpoints requiring authentication.
Solution
Using Redis would be ideal, but rather than set up our own Redis instance, or rely on Toolforge's, we could instead use MariaDB storage as provided by Trove from Cloud VPS. This could be used to store both session data and the various metrics we collect, all in one place.