Skip to content

gerrit-230285-10 #2127

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

gerrit-230285-10 #2127

wants to merge 2 commits into from

Conversation

magul
Copy link
Owner

@magul magul commented Jan 9, 2018

No description provided.

xqt added 2 commits January 9, 2018 15:03
- Creating a user class with autoblock ID fails with InvalidTitle when a
  namespace identifier is given in front of the ID. It works without that
  preleading namespaces.
- This patch solves that issue and is needed handling BlockEvents in a
  proper way.
- A more general solution with a different Autoblock class proposed by
  b4f0bdd may come later.
- tests added

Bug: T108515
Change-Id: I6de75bea5c3287cca04700b230fdec881189f32c
- derive BlockEntry from UserTargetLogEntry to get a User class with
  page() method
- create User class directly from data['title'] instead of the superclass
  method in UserTargetLogEntry. Otherwise you'll get an InvalidTitle for
  autoblocked IDs because the User constuctor is able to handle this whereas
  the Page constructor isn't
- use revised page() method to setup isAutoblockRemoval property.
  It also takes care about KeyError and returns None in that case.
- tests changed

Bug: T78152
Change-Id: Icaf80ed270b2fa8ffa6f2519539a47313cabc7a2
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.

2 participants