# What this PR does **Shift Swap Requests** https://www.loom.com/share/860c3337b338412cbd2ac4024260f3e8?sid=3d91b558-b4de-4351-8b45-8a99b7302346 **Other** - Drastically improve the typing in the `slack` Django app, and several other models/functions that were consumed by logic within the `slack` Django app (ex. setting `RelatedManager` type hints on various models) https://www.loom.com/share/da6b9984519c48d59a45d3c93c08d7dc ## Checklist - [x] Unit, integration, and e2e (if applicable) tests updated - [x] Documentation added (or `pr:no public docs` PR label added if not required) - [x] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not required)
17 lines
466 B
Python
17 lines
466 B
Python
import datetime
|
|
|
|
from apps.slack.types import Block
|
|
|
|
SLACK_BOT_ID = "USLACKBOT"
|
|
SLACK_INVALID_AUTH_RESPONSE = "no_enough_permissions_to_retrieve"
|
|
PLACEHOLDER = "Placeholder"
|
|
|
|
SLACK_WRONG_TEAM_NAMES = [SLACK_INVALID_AUTH_RESPONSE, PLACEHOLDER]
|
|
|
|
SLACK_RATE_LIMIT_TIMEOUT = datetime.timedelta(minutes=5)
|
|
SLACK_RATE_LIMIT_DELAY = 10
|
|
CACHE_UPDATE_INCIDENT_SLACK_MESSAGE_LIFETIME = 60 * 10
|
|
|
|
PRIVATE_METADATA_MAX_LENGTH = 3000
|
|
|
|
DIVIDER: Block.Divider = {"type": "divider"}
|