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

Remove the redirect FilterList on migration #1109

Merged
merged 2 commits into from
Oct 1, 2023

Conversation

ChrisLovering
Copy link
Member

@ChrisLovering ChrisLovering commented Sep 19, 2023

Closes #1110 Closes BOT-3FA

This redirect filter list does not have any filters, nor does it have a bot implementation.
It is something that we were working on, but has been stalled for a while.

The presence of this filter list also causes the bot to warn on startup due to it finding a filter list with no implementation.
This commit removes the FilterList, which can be added back if/when we support this filter type in bot.

An export of this filter list prior to deletion can be found on this notion page (for those with access).

@netlify
Copy link

netlify bot commented Sep 19, 2023

Deploy Preview for pydis-static ready!

Name Link
🔨 Latest commit e74ce94
🔍 Latest deploy log https://app.netlify.com/sites/pydis-static/deploys/6519cec6d675f00008f9e08d
😎 Deploy Preview https://deploy-preview-1109--pydis-static.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

This redirect filter list does not have any filters, nor does it have a bot implementation.
It is something that we were working on, but has been stalled for a while.

The presence of this filter list also causes the bot to warn on startup due to it finding a filter list with no implementation.
This commit removes the FilterList, which can be added back if/when we support this filter type in bot.
@ChrisLovering ChrisLovering force-pushed the remove-the-redirect-filter-list branch from afe6c93 to be6b698 Compare September 19, 2023 10:34
@coveralls
Copy link

coveralls commented Sep 19, 2023

Coverage Status

coverage: 100.0%. remained the same when pulling e74ce94 on remove-the-redirect-filter-list into 4a5eb3e on main.



def forward(apps: Apps, _: BaseDatabaseSchemaEditor) -> None:
apps.get_model("api", "FilterList").objects.filter(name="redirect").delete()
Copy link
Member Author

@ChrisLovering ChrisLovering Sep 19, 2023

Choose a reason for hiding this comment

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

api.Filter has on_delete set to cascade set on the filter_list_id foreign key, so deleting the FilterList will delete the Filters for that list automatically.

Copy link
Member

@jchristgit jchristgit left a comment

Choose a reason for hiding this comment

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

Sentry blocks me from signing in ("Your client does not have permission to get URL /auth/sso/ from this server.") but I believe this is good.

Copy link
Member

@Xithrius Xithrius left a comment

Choose a reason for hiding this comment

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

lgtm

@Xithrius Xithrius enabled auto-merge October 1, 2023 19:55
@Xithrius Xithrius merged commit 5532c83 into main Oct 1, 2023
9 checks passed
@Xithrius Xithrius deleted the remove-the-redirect-filter-list branch October 1, 2023 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A filter list named redirect was loaded from the database, but no matching class.
4 participants