1. 17 May, 2018 3 commits
    • Lukas Fleischer's avatar
      Localize notification emails · f7a57c82
      Lukas Fleischer authored
      
      
      Add support for translating notification emails and send localized
      notifications, based on the user's language preferences. Also, update
      the translations Makefile to add strings from the notification script
      to the message catalog.
      
      Implements FS#31850.
      Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <lfleischer@archlinux.org>
      f7a57c82
    • Lukas Fleischer's avatar
      Refactor the notification script · f3b4c5c6
      Lukas Fleischer authored
      
      
      Reimplement most of the notification script logic. Create a separate
      class for each notification type. Each class provides methods for
      generating the list of recipients, the message subject, the message
      body, the references to add at the end of the message and the message
      headers. Additionally, a method for sending notification emails is
      provided.
      
      One major benefit of the new implementation is that both the generation
      of recipients and message contents are much more flexible. For example,
      it is now easily possible to make user-specific adjustments to every
      single notification of a batch.
      Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <lfleischer@archlinux.org>
      f3b4c5c6
    • Lukas Fleischer's avatar
      t2500: Add test cases for all notifications · fec253a6
      Lukas Fleischer authored
      
      
      Check that for all kinds of notifications, the generated messages match
      what we expect.
      Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <lfleischer@archlinux.org>
      fec253a6
  2. 16 May, 2018 1 commit
  3. 12 May, 2018 4 commits
  4. 11 May, 2018 1 commit
    • Eli Schwartz's avatar
      Use a link to accept orphan requests · 0ffa0679
      Eli Schwartz authored and Lukas Fleischer's avatar Lukas Fleischer committed
      
      
      Currently, a form is used instead of a link. This forwards to a
      confirmation page, and currently drops the "via" parameter in the
      process.
      
      As a result, accepted orphan requests usually show:
      
          Request #XXXXXX has been accepted automatically by the Arch User
          Repository package request system:
      
          The user YYYYYYY disowned the package.
      
      This is wrong, and should show (will show, if you manually add it or use
      the close button instead of the accept button):
      
          Request #XXXXXX has been rejected by YYYYYYY [1]:
      
      Fixes FS#56606.
      Signed-off-by: Eli Schwartz's avatarEli Schwartz <eschwartz@archlinux.org>
      Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <lfleischer@archlinux.org>
      0ffa0679
  5. 10 May, 2018 2 commits
  6. 22 Apr, 2018 1 commit
    • Eli Schwartz's avatar
      config: allow reading both the defaults file and the modified config · 97c5bcec
      Eli Schwartz authored and Lukas Fleischer's avatar Lukas Fleischer committed
      
      
      In the process, rename config.proto to config.defaults (because that is
      what it is now).
      
      Also use dict.get('key', default_value) when querying os.environ, rather
      than an if block, as it is more pythonic/readable/concise, and reduces
      the number of dict lookups.
      
      This change allows aurweb configuration to be done via either:
      - copying config.defaults to config and modifying values
      - creating a new config only containing modified values, next to a
        config.defaults containing unmodified values
      
      The motivation for this change is to enable ansible configuration in our
      flagship deployment by storing only changed values, and deferring to
      config.defaults otherwise.
      
      A side benefit is, it is easier to see what has changed by inspecting
      only the site configuration file.
      
      If a config.defaults file does not exist next to $AUR_CONFIG or in
      $AUR_CONFIG_DEFAULTS, it is ignored and *all* values are expected to
      live in the modified config file.
      Signed-off-by: Eli Schwartz's avatarEli Schwartz <eschwartz@archlinux.org>
      Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <lfleischer@archlinux.org>
      97c5bcec
  7. 08 Apr, 2018 1 commit
  8. 21 Mar, 2018 1 commit
  9. 20 Mar, 2018 1 commit
  10. 14 Mar, 2018 2 commits
  11. 13 Mar, 2018 1 commit
  12. 10 Mar, 2018 2 commits
  13. 24 Feb, 2018 4 commits
  14. 26 Jan, 2018 1 commit
  15. 21 Jan, 2018 1 commit
  16. 23 Dec, 2017 1 commit
  17. 03 Dec, 2017 3 commits
  18. 02 Dec, 2017 1 commit
  19. 28 Nov, 2017 2 commits
  20. 08 Nov, 2017 1 commit
  21. 07 Nov, 2017 1 commit
  22. 06 Nov, 2017 1 commit
  23. 05 Nov, 2017 4 commits