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

Refactoring requests more #81

Merged
merged 17 commits into from
Oct 12, 2017

Conversation

ikedas
Copy link
Member

@ikedas ikedas commented Oct 6, 2017

This is a continuation of refactorings done by PR #26, #30, #33, #65. In this PR, following handlers are introduced:

  • decl to decline held requests. On WWSympa, decl_add and decl_del (formerly ignoresub and ignoresig).
  • move_list to move or copy list, formerly rename_list and copy_list on WWSympa.

And, "sympa.pl --rename_list" and "sympa.pl --import" also uses request handlers.

Fixed bugs:

  • [bug] Content of several tables and spools were not updated when list was renamed: exclusion_table, notification_table, digest spool, topic spool, outgoing (bulk) spool.

  • [bug] Couldn't rename/copy to list with the same name and other domaain.

  • [bug] If list_check_smtp is disabled, a list can be renamed or copied to the list with system address, <sympa@domain> or <listmaster@domain>.

  • [bug] If digest spool contains garbage, Sympa::Spool::Digest::Collection->next may crash.

Known bug:

  • move_list handler is still unsolid: If it is executed during message delivery, some messages may be lost or renaming may abort. Further improvements are desirable.

…_list) to be integrated to Sympa::Request framework.
…ries.

This also fixes following bug:

[bug] digest spool was not renamed when list was renamed.
… to the list with system address, <sympa@domain> or <listmaster@domain>.
@ikedas ikedas added this to the 6.2.24 milestone Oct 6, 2017
@racke
Copy link
Contributor

racke commented Oct 6, 2017

With a better database schema, list renames would be automatically reflected in the db by foreign keys/trigger.

@ikedas
Copy link
Member Author

ikedas commented Oct 12, 2017

With a better database schema, list renames would be automatically reflected in the db by foreign keys/trigger.

It's interesting point. When we move to ORM instead of current home-made database management, it would be considered.

@ikedas ikedas merged commit 64ca1e9 into sympa-community:sympa-6.2 Oct 12, 2017
@ikedas ikedas deleted the refactoring_requests_more branch October 12, 2017 01:47
@ikedas ikedas mentioned this pull request Oct 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants