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 <qingchengqiushuang@gmail.com>
Co-authored-by: Joey Orlando <joey.orlando@grafana.com>
This commit is contained in:
teslaedison 2024-03-14 23:36:00 +08:00 committed by GitHub
parent 91e6bec06b
commit 335d7a8f7f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View file

@ -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.
> <br/><br/>
> The **(Legacy)** webhook is no longer editable due to changes to the internal representation. If you need to edit it

View file

@ -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",

View file

@ -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(

View file

@ -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"):