You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the master of a case is the only account that can be used to determine what contributions are probably G5'able. However, it's possible for an account that is not the oldest account to have the earliest block in the case.
This is especially apparent when a new SPI case is created, and a checkuser finds an account that has an earlier block that may or may not be the oldest too. If it's the oldest the case can be moved, but otherwise a checkuser will only be able to use the block on the master which may be seconds old as the master may have been unblocked until said checkuser finished running the check.
Solutions:
The tool gets the block dates for all accounts that are not in archived cases, or if not API call heavy, all accounts in the archive too. It then chooses the account with the earliest block date and then uses that for the G5 calculation. The block dates should take into account that modifications to the block create a new block timestamp but do not reset the counter for the time blocked.
The tool should allow the user to select an account after generating a list of accounts and then once an account is selected performs the above but for one account.
The text was updated successfully, but these errors were encountered:
This is turning out to be more complicated than I originally thought. I already have a Wiki.mutli_user_blocks() which should be a drop-in replacement for Wiki.user_blocks() in G5View. The problem is, it uses asyncio which isn't supported in the unittest.mock library from Python 3.7. There's an AsyncMock class which was added in Python 3.8 which I think is what I need.
Toolforge does support a python3.9 container. I've been meaning to upgrade to that for a while, for other reasons. So, this might be a good excuse to bite that bullet.
Well, this became an adventure. I remember that I once tried to move to Python 3.9, and now I've been reminded of just how painful that is in Toolforge, at least for the workflow I've been using.
It turns out, there's a backport of AsyncMock so I installed that. It appeared to be working, but I was getting async_to_sync was passed a non-async-marked callable warnings which I didn't want to ignore. But then it turns out, those warnings are probably bogus after all.
Currently the master of a case is the only account that can be used to determine what contributions are probably G5'able. However, it's possible for an account that is not the oldest account to have the earliest block in the case.
This is especially apparent when a new SPI case is created, and a checkuser finds an account that has an earlier block that may or may not be the oldest too. If it's the oldest the case can be moved, but otherwise a checkuser will only be able to use the block on the master which may be seconds old as the master may have been unblocked until said checkuser finished running the check.
Solutions:
The text was updated successfully, but these errors were encountered: