Skip to content
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

sympa.pl: Adding a new option --add, and expand --add and --del options #1251

Merged
merged 15 commits into from
Nov 16, 2021

Conversation

ikedas
Copy link
Member

@ikedas ikedas commented Oct 14, 2021

  • sympa.pl: Adding a new option --add. The option --import was deprecated.
  • New list parameters default_owner_options & default_editor_options to control default attributes of owner & moderators (Editing the attributes of an owner inclusion #989)
  • sympa.pl: --add can take a --role option (either member, owner or editor) to add these users to the list.
  • --del may handle owners and moderators, too.

This PR depends on #911 & #1247.

@ikedas ikedas added this to the 6.2.68 milestone Oct 14, 2021
@ikedas ikedas marked this pull request as ready for review October 14, 2021 07:27
@racke
Copy link
Contributor

racke commented Oct 14, 2021

Additions and improvements of the CLI are always welcome 👍

Now Sympa::List::add_list_member and Sympa::List::add_list_admin use stash.
…tions to control default attributes of owner & moderators (sympa-community#989)

sympa.pl: --add can take a --role option
… as owner_include & editor_include do (sympa-community#989).

Parameters to specify defaults (profile, reception & visibility) in *_include parameters may be optional and values in corresponding default_*_options parameters will be used as the defaults.
  - Changed calling convention of delete_list_member() & delete_list_admin()
  - delete_list_*() may report error via "stash" when the email doesn't exist.
@ikedas ikedas force-pushed the add+del-commands branch 3 times, most recently from 43c087c to d37b43c Compare November 12, 2021 07:29
@ikedas ikedas added the ready A PR is waiting to be merged. Close to be solved label Nov 12, 2021
@ikedas ikedas merged commit 3803f0f into sympa-community:sympa-6.2 Nov 16, 2021
@ikedas ikedas deleted the add+del-commands branch November 16, 2021 07:23
@ikedas ikedas mentioned this pull request Dec 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ready A PR is waiting to be merged. Close to be solved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants