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

FIX: reword whitelist to allowlist #430

Merged
merged 3 commits into from Jul 14, 2020
Merged

FIX: reword whitelist to allowlist #430

merged 3 commits into from Jul 14, 2020

Conversation

lis2
Copy link
Contributor

@lis2 lis2 commented Jul 7, 2020

The version was bumped to 2.0.0 as this change is not backward compatible

Copy link
Member

@arpitjalan arpitjalan left a comment

Choose a reason for hiding this comment

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

Looks good. 👍

Copy link
Contributor

@CvX CvX left a comment

Choose a reason for hiding this comment

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

Can we take this opportunity and instead of doing just find-and-replace rename stuff so it reads better? E.g.

"get away with just allowlisting the URL in" ➡️ "get away with just allowing the URL in"
self.default_allowlist ➡️ self.default_allowed_domains
self.twitter_label_allowlist ➡️ self.allowed_twitter_labels
etc etc

Copy link
Contributor

@eviltrout eviltrout left a comment

Choose a reason for hiding this comment

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

This is a breaking change right - which is OK I just want to make sure we're all on the same page.

For example Discourse has references to WhitelistedGenericOnebox - I assume we'll get around this by using a version bump and upgrading Discourse at the same time as the gem?

@lis2
Copy link
Contributor Author

lis2 commented Jul 8, 2020

@eviltrout yes, that is exactly the plan. I started working on a similar change for Discourse and noticed that I need to change that gem first.

@lis2 lis2 merged commit c27aebc into discourse:master Jul 14, 2020
@lis2 lis2 deleted the allowlist branch July 14, 2020 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants