Description
This extension checks to see if a logged in editor qualifies for access to The Wikipedia Library by checking their account age and global edit count. The first time they become eligible, it sends them a notification about it.
Preview environment
https://en.wikipedia.beta.wmflabs.org/wiki/Main_Page
This has been deployed to beta cluster. It is currently configured to notify editors when they reach 100 edits with an account that is at least one day old.
Which code to review
https://gerrit.wikimedia.org/r/admin/repos/mediawiki/extensions/TheWikipediaLibrary
Performance assessment
Please initiate the performance assessment by answering the below:
- What work has been done to ensure the best possible performance of the feature?
- None, will update with details when we have done so.
- What are likely to be the weak areas (e.g. bottlenecks) of the code in terms of performance?
- We're doing an extra read + write to global preferences on save in a pretty common case. This was originally sending duplicate notifications on beta do to silent failures to read/write global prefs, and this workaround ensures that we only send if we're really sure that globalprefs is working correctly.
- Are there potential optimisations that haven't been performed yet?
- We could potentially do a more efficient globalprefs check if we were ever able to reproduce the duplicate notifications outside of beta
- Please list which performance measurements are in place for the feature and/or what you've measured ad-hoc so far. If you are unsure what to measure, ask the Performance Team for advice: performance-team@wikimedia.org.
- We have emailed the performance team as recommended, but have not heard back yet