| Message ID | 20181016031844.30857-1-archlinux@thecybershadow.net |
|---|---|
| Headers | show
Return-Path: <aur-dev-bounces@archlinux.org> Delivered-To: patchwork@archlinux.org Received: from apollo.archlinux.org (localhost [127.0.0.1]) by apollo.archlinux.org (Postfix) with ESMTP id 62C50793332C for <patchwork@archlinux.org>; Tue, 16 Oct 2018 03:19:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on apollo X-Spam-Level: X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00=-1, MAILING_LIST_MULTI=-1,RCVD_IN_DNSWL_MED=-2.3 autolearn=ham autolearn_force=no version=3.4.2 X-Spam-BL-Results: <dns:1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.7.8.0.6.0.6.1.0.8.f.4.0.1.0.a.2.list.dnswl.org> [127.0.9.2] Received: from orion.archlinux.org (orion.archlinux.org [IPv6:2a01:4f8:160:6087::1]) by apollo.archlinux.org (Postfix) with ESMTPS for <patchwork@archlinux.org>; Tue, 16 Oct 2018 03:19:10 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id 6606FE264213B; Tue, 16 Oct 2018 03:19:09 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [5.9.250.164]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by orion.archlinux.org (Postfix) with ESMTPS; Tue, 16 Oct 2018 03:19:09 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id 9C1FD280EC; Tue, 16 Oct 2018 03:19:07 +0000 (UTC) Authentication-Results: luna.archlinux.org; dkim=none Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id 2B506260AC for <aur-dev@lists.archlinux.org>; Tue, 16 Oct 2018 03:19:05 +0000 (UTC) Received: from orion.archlinux.org (orion.archlinux.org [IPv6:2a01:4f8:160:6087::1]) by luna.archlinux.org (Postfix) with ESMTPS for <aur-dev@lists.archlinux.org>; Tue, 16 Oct 2018 03:19:05 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id DBA34E2642125 for <aur-dev@archlinux.org>; Tue, 16 Oct 2018 03:19:00 +0000 (UTC) Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by orion.archlinux.org (Postfix) with ESMTPS for <aur-dev@archlinux.org>; Tue, 16 Oct 2018 03:19:00 +0000 (UTC) Received: by mail-wr1-f48.google.com with SMTP id a13-v6so23616159wrt.5 for <aur-dev@archlinux.org>; Mon, 15 Oct 2018 20:19:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6/icN8LbFUHm3PS9z3TAUyQtU3A7W8Ef4W0ubSJeK08=; b=UdwxJafKyp0dkszcg8S/j3/vB6Xc3JT5yOr3Y8CcO+3eCcKiZyLUKv2QBB987nCKbE 5pjs1QI/hs+Z8JQIf2wM6o0XOkeNWNZuqk1CwUNsgDaacI/b/2fWhpArUeydmijUwWWT TNS0FlssrY9erSsYa1fbl/bvokjzIDqRttCGlF98/AH3//QeiotjNDRsX+6OtK7L1HLV By72euLNi5vylY1PxH8fYnc7ZFpwb2VOeIvo/6AntfWSnGVV38QmjrLTWtFwIqtye7Xt L7liQH/o+doFF0uQQ2Vr+2gGBp4S4tEHHNK4gRjlEPnoK8Y3z/Z3j0xdWWUtw/dApvzG 5AAw== X-Gm-Message-State: ABuFfogFTDO/o8izbI6kPMSyBswdgNaZ8EZIvyFQCcrZchkauIM29Z/S v4vJY6pLRVZemPpR7Caz/6OEUVJxb7g= X-Google-Smtp-Source: ACcGV60rRtuRNZJdMbnoaipFIn0zMapedVQftB5jLtjMoeMKV5FuOhdc37TGf8dvCI5SSwuOHtWrSQ== X-Received: by 2002:adf:9792:: with SMTP id s18-v6mr17716618wrb.283.1539659940135; Mon, 15 Oct 2018 20:19:00 -0700 (PDT) Received: from home.thecybershadow.net ([89.28.117.31]) by smtp.gmail.com with ESMTPSA id 140-v6sm14723704wmx.34.2018.10.15.20.18.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Oct 2018 20:18:59 -0700 (PDT) From: Vladimir Panteleev <archlinux@thecybershadow.net> To: aur-dev@archlinux.org Subject: [PATCH 0/2] Mention users' relationship to packages in comment notifications Date: Tue, 16 Oct 2018 03:18:42 +0000 Message-Id: <20181016031844.30857-1-archlinux@thecybershadow.net> X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: aur-dev@archlinux.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Arch User Repository \(AUR\) Development" <aur-dev.archlinux.org> List-Unsubscribe: <https://lists.archlinux.org/options/aur-dev>, <mailto:aur-dev-request@archlinux.org?subject=unsubscribe> List-Archive: <https://lists.archlinux.org/pipermail/aur-dev/> List-Post: <mailto:aur-dev@archlinux.org> List-Help: <mailto:aur-dev-request@archlinux.org?subject=help> List-Subscribe: <https://lists.archlinux.org/listinfo/aur-dev>, <mailto:aur-dev-request@archlinux.org?subject=subscribe> Errors-To: aur-dev-bounces@archlinux.org Sender: "aur-dev" <aur-dev-bounces@archlinux.org> |
| Series |
Mention users' relationship to packages in comment notifications
|
expand
|
Generally, it's useful to distinguish actionable vs. non-actionable notifications. When receiving a comment notification on a package a user maintains, it can be easy to miss it in a flood of comment notifications for packages the user merely follows. To this end, this patch series adds code to mention the user's relationship to the package when sending a comment notification email. Comments: - I'm not too happy about how intrusive the changes in the first refactoring comment are. Using a Python dictionary instead of introducing a new class would have allowed to avoid declaring the new classes, but that's not where the bulk of changes is. Much of the diff is cluttered from rewrapping to fit within 80 columns. Open to suggestions. - We could also do this for other notification types, but the comment notification is by far the most common one, so I've implemented this only for comment notifications for now. Should we decide otherwise, it is doable without introducing or updating translatable strings. - I'm not including .pot changes, as I've been told this is not being done simultaneously with changes that affect it; though, I've checked the diff after `make update-pot` and it looks okay to me. Vladimir Panteleev (2): notify.py: Encapsulate individual message recipient into a new class notify.py: Mention users' relationship to packages in comment notifications aurweb/scripts/notify.py | 216 ++++++++++++++++++++++++++------------- test/t2500-notify.sh | 150 +++++++++++++++++++++++++++ 2 files changed, 293 insertions(+), 73 deletions(-)