-
Notifications
You must be signed in to change notification settings - Fork 91
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
Owner and editors edition through the command line #524
Comments
Wouldn't it be better to include the owners from SQL/LDAP/... like we do for subscribers? |
We already can. |
Providing Sympa::Request handler at first seems better. It may be useful for the other components than command line (e.g. SOAP: See #526). |
Yes, definitely. That's the way to go. |
OK. The Request Handler is needed to treat this. Three operations accessible to users :
Range : either a single list or a virtual host Parameters: the kind of role to edit and its accompanying optional details (gecos, visibility, etc.) The idea is to reuse other command line option (I would certainly rename vhost to robot, by the way). |
Hi @dverdin, Alternative solutionIf you seek a quick solution, you'd be better to consider using dump files. Previously administrators edited config file to change owners/moderators directly. Instead, with current version, they may do
Contents of |
Hi @ikedas , That questions the pertinence of my proposal. If the primary problem has a solution, it might be pointless to develop it. Then again, there is the correlated issue with SOAP/REST API. And for it, we need the Request Handler, that could be reused for the command line. So I'll think I'll still do it, following your proposal of a Request Handler. But it's good to knwo there is short term solution - that could perfectly remain the long term solution. Thanks, Soji! |
…er editor or owner. Used only in a test file. The aim of this commit is to validate I'm using Request::Handler the right way.
…ist admin, either editor or owner. Used only in a test file. The aim of this commit is to validate I'm using Request::Handler the right way.
Dear all, |
Aaaaaaand I forgot to put a link towards the commit... |
I think BTW, you'd be better to work on cleaner branch on your fork. |
Thanks for your comment @ikedas ! |
|
That's certainly a possibility. |
Dear all, I'll keep working on this basis. |
Expected Behavior
A lot of administrators have built scripts to mass edit config files, especially for owners provisioning.
Current Behavior
These scripts are broken as of Sympa 6.2.34 due to the fact that editors and owners are now located in the database only. These are the only list parameters having such an exception.
Possible Solution
I plan to add options to sympa.pl to manage list adminsitrators. That way, these scripts will keep on working, simply by replacing the sed or whatever command the admins were using by the relevant sympa.pl command.
These options would make usage of the new Sympa code and use the new primitives to add / replace / delete adminstrators.
Actually, this would even be an improvement to previous Sympa versions because such options would have been very usefull before, for example when somebody leaves an institution and her replacement needs to take over the leaver's list.
Here is the intended interface I want to provide:
sympa.pl --add-admin --list= --vhost= --email=an@email --role=<owner|editor> --visibility= --profile=<privileged|normal> --reception_mode=<reception_mode> --gecos
sympa.pl --delete-admin --list= --vhost= --email=an@email --role=<owner|editor>
sympa.pl --replace-admin --list= --vhost= --previous_admin=an@email --new_admin=an.other@email
In each case, the "last modified by" list parameter would contain "listmaster@domain.tld" email.
What do you think? I could do this easily and quickly using the current codebase.
Context
I'm in contact with a lot of listmasters through the lists and a lot complained about the lost functionnality, while agreeing the vanishing of the cache problem was very cool.
The text was updated successfully, but these errors were encountered: