Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove references to SlackMessage._channel_id #5325

Merged
merged 4 commits into from
Dec 6, 2024

Conversation

joeyorlando
Copy link
Contributor

@joeyorlando joeyorlando commented Dec 4, 2024

What this PR does

Checklist

  • Unit, integration, and e2e (if applicable) tests updated
  • Documentation added (or pr:no public docs PR label added if not required)
  • 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.

@joeyorlando joeyorlando added pr:no public docs Added to a PR that does not require public documentation updates release:ignore PR will not be added to release notes labels Dec 4, 2024
@joeyorlando joeyorlando requested a review from a team as a code owner December 4, 2024 12:06
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't believe this is needed anymore? (was removing engine/engine/management/commands/batch_migrate_slack_message_channel.py and decided to remove this as well)

@joeyorlando joeyorlando changed the title chore: remove references to SlackMessage._channel_id + remove AlertGroup.prevent_posting_alerts chore: remove references to SlackMessage._channel_id Dec 4, 2024
@@ -417,6 +417,10 @@ def status(self) -> int:
)

prevent_posting_alerts = models.BooleanField(default=False)
"""
TODO: this column is no longer used, drop it in a subsequent PR/release
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hesitant to do this operation in this PR, clean-up for another day 🙂

Comment on lines +16 to +22
operations = [
common.migrations.remove_field.RemoveFieldDB(
model_name="SlackMessage",
name="active_update_task_id",
remove_state_migration=("slack", "0008_remove_slackmessage_active_update_task_id_state"),
),
]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is instant (on a prod clone):

mysql> ALTER TABLE slack_slackmessage DROP COLUMN active_update_task_id;
Query OK, 0 rows affected (0.80 sec)
Records: 0  Duplicates: 0  Warnings: 0

Copy link
Member

@vstpme vstpme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@joeyorlando joeyorlando merged commit 3977c6e into dev Dec 6, 2024
26 checks passed
@joeyorlando joeyorlando deleted the jorlando/slack_channel_cleanup branch December 6, 2024 14:28
joeyorlando added a commit that referenced this pull request Dec 6, 2024
…on` fields (#5340)

# What this PR does

Follow-up cleanup PR for #5325
(and #5330)

## 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] 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:no public docs Added to a PR that does not require public documentation updates release:ignore PR will not be added to release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants