-
Notifications
You must be signed in to change notification settings - Fork 4
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
Exclude users by Tag name or ID #9
Conversation
|
See #6 (comment) |
@will-moore Looks great, but could I please request a concrete username printout ^^^ ? |
Ooops - I was actually excluding the wrong IDs before (Tag IDs instead of Experimenter IDs).
|
Sorry for coming a bit late with this: I think that the |
I can make the Or I could hard-code a Tag name, e.g. "NO DELETE" and the script would fail if it didn't find that Tag (or if no users were linked to it)? This is a similar approach we use in If you want to allow a user to choose a different |
I like this. How would the user tell the script that there are no users to exclude anymore ? Maybe pass
NO DELETE could be a tagset and the specific tags under it would have names such as UniversityX ? The usecase here is different than the "favourite" images. The specific tag names would allow more flexibility, and carry some meaning for the user (such as "UniversityX" is not protected anymore, whereas "ProjectK-LabBlah" is the one to be careful of).
Yes, I would like to allow that, but rather as a set of "NO DELETE" tags where the single tag names carry info about "why" to protect these users. Feel free to simplify if necessary, thanks. |
for more information, see https://pre-commit.ci
@pwalczysko That should be working:
|
Few comments:
|
Yes, this sounds logical, but I have following problem with it: The usernames are picked by the remote users, not by the runner of the script or by the tagger of the Experimenters. They will not be bearing too much info - very often they are sounding like gibberish to the runner of the script (metadata encoded by a third-party into the name :)). The remote users will also unfortunately create more accounts with similar names, only one of which should be protected. Whereas the Tags are being chosen by the runner of the script or by the tagger, and will more clearly denote the reason for which the particular user is being protected in a way which is understandable by this Team. |
For this use case, I agree completely. But for a quick usage: I've run the script in dry-run mode, see that the first to be removed user should be protected (for whatever reason), then I would like to be able to quickly |
Aha, as an additional, optional flag ? I like that... What do you think @will-moore ? |
Makes sense. I guess we should support excluding more than 1 user, and support ID and omeName as IDs? |
for more information, see https://pre-commit.ci
OK added support for |
Happy with this, thank you @will-moore. The main usage I have in mind is in the example below, but also tested the
The only request would be: Could I please get the output of the form as below please ? The
This means to get the new output in line with the pre-existing output, and adding the First and Last Name to it, this is:
|
Done |
Looks great, thanks a lot @will-moore Please if you could merge will-moore#1 ? Just one small typo fix. After that, ready to merge fmpov. |
Remove redundant inverted comma
Thanks @pwalczysko |
I can see that deploying this on the demo server would take a change in this line Which would assume a new release on PyPI. What would be the steps to achieve that ? I suppose to push a tag here in this repo, and do a release ? Possibly I would just need the permissions on this repo to do that ? But the PyPi, no idea... |
Fixes #8.
Use
--exclude-tag
with Tag ID or Name to exclude members linked to Tag from cleanupe.g. testing on merge-ci
cc @pwalczysko @joshmoore