From 335d7a8f7f312c5e2951f24778565cc89566d593 Mon Sep 17 00:00:00 2001 From: teslaedison <156734008+teslaedison@users.noreply.github.com> Date: Thu, 14 Mar 2024 23:36:00 +0800 Subject: [PATCH] chore: fix some comments (#4055) # What this PR does Fix typos in comments ## Checklist - [ ] Unit, integration, and e2e (if applicable) tests updated - [x] Documentation added (or `pr:no public docs` PR label added if not required) - [x] Added the relevant release notes label (see labels prefixed w/ `release:`). These labels dictate how your PR will show up in the autogenerated release notes. Signed-off-by: teslaedison Co-authored-by: Joey Orlando --- docs/sources/configure/outgoing-webhooks/index.md | 2 +- engine/apps/social_auth/backends.py | 2 +- engine/common/custom_celery_tasks/dedicated_queue_retry_task.py | 2 +- engine/common/utils.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/sources/configure/outgoing-webhooks/index.md b/docs/sources/configure/outgoing-webhooks/index.md index 21029315..1af5effd 100644 --- a/docs/sources/configure/outgoing-webhooks/index.md +++ b/docs/sources/configure/outgoing-webhooks/index.md @@ -20,7 +20,7 @@ aliases: # Outgoing Webhooks > ⚠️ A note about **(Legacy)** webhooks: Webhooks that were created before version **v1.3.11** are marked as -> **(Legacy)**. Do not worry! They are still connected to their respective escalation chains and will continue to to +> **(Legacy)**. Do not worry! They are still connected to their respective escalation chains and will continue to > execute as they always have. >

> The **(Legacy)** webhook is no longer editable due to changes to the internal representation. If you need to edit it diff --git a/engine/apps/social_auth/backends.py b/engine/apps/social_auth/backends.py index 1606b1b4..0e515b6e 100644 --- a/engine/apps/social_auth/backends.py +++ b/engine/apps/social_auth/backends.py @@ -11,7 +11,7 @@ from apps.auth_token.models import SlackAuthToken USER_SCOPE = ["channels:read", "identify", "chat:write", "users.profile:read", "users:read", "users:read.email"] # Scopes for slack bot token. -# Is is prime token we are using for most requests to Slack api. +# It is prime token we are using for most requests to Slack api. # Changing these scopes requires confirmation in Slack app settings. BOT_SCOPE = [ "app_mentions:read", diff --git a/engine/common/custom_celery_tasks/dedicated_queue_retry_task.py b/engine/common/custom_celery_tasks/dedicated_queue_retry_task.py index 35e551a7..8c151144 100644 --- a/engine/common/custom_celery_tasks/dedicated_queue_retry_task.py +++ b/engine/common/custom_celery_tasks/dedicated_queue_retry_task.py @@ -11,7 +11,7 @@ logger = logger = get_task_logger(__name__) class DedicatedQueueRetryTask(LogExceptionOnFailureTask): """ Custom task sends all retried task to the dedicated retry queue. - Is is needed to not to overload regular (high, medium, low) queues with retried tasks. + It is needed to not to overload regular (high, medium, low) queues with retried tasks. """ def retry( diff --git a/engine/common/utils.py b/engine/common/utils.py index 3eeaeccf..3350b08d 100644 --- a/engine/common/utils.py +++ b/engine/common/utils.py @@ -167,7 +167,7 @@ def isoformat_with_tz_suffix(value): Default python datetime.isoformat() return tz offset like +00:00 instead of military tz suffix (e.g.Z for UTC)". On the other hand DRF returns datetime with military tz suffix. This utility function exists to return consistent datetime string in api. - Is is copied from DRF DateTimeField.to_representation + It is copied from DRF DateTimeField.to_representation """ value = value.isoformat() if value.endswith("+00:00"):