From a7aca068e282e258dc9223ba1152ef7521f4fcb9 Mon Sep 17 00:00:00 2001 From: James White Date: Mon, 1 Nov 2021 10:22:35 +0000 Subject: [PATCH 1/2] Remove unused statuspageio dependency - It appears to be unused and the upstream project is seemingly unmaintained - It also blocks installs when using versions of setuptools > 57.5.0 due to the same issue described in: https://github.com/tikitu/jsmin/issues/33 --- setup.py | 1 - 1 file changed, 1 deletion(-) diff --git a/setup.py b/setup.py index 04dddc39..e391f3fe 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,6 @@ "markdown2>=2.3.7", "python-slugify>=1.2.6", "slackclient>=1.3,<2", - "statuspageio>=0.0.1", ] # allow setup.py to be run from any path From a4d4dbb9d3094dcbe875005d62eeb3c608a57c1c Mon Sep 17 00:00:00 2001 From: Jorge Pedroso Date: Wed, 21 May 2025 14:35:06 +0300 Subject: [PATCH 2/2] Change date-time format in channel name The `time_string` generated for the incident channel name is now `YYYY-mm-dd-HH-MM-SS`. For example, this will result in `#inc-2025-05-09-12-09-04`. Channel names now include the year and are easier to sort by name/date since it now uses numeric representation instead of short name for the month. --- response/slack/models/comms_channel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/response/slack/models/comms_channel.py b/response/slack/models/comms_channel.py index ca11fb3a..c91c4558 100644 --- a/response/slack/models/comms_channel.py +++ b/response/slack/models/comms_channel.py @@ -17,7 +17,7 @@ def create_comms_channel(self, incident): """ Creates a comms channel in slack, and saves a reference to it in the DB """ - time_string = datetime.now().strftime("%b-%-e-%H-%M-%S") + time_string = datetime.now().strftime("%Y-%m-%d-%H-%M-%S") name = f"inc-{time_string}".lower() try: