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: add allowed_content_curation flag to feed config #2123

Merged
merged 7 commits into from
Aug 13, 2024

Conversation

rebelchris
Copy link
Contributor

Add allowed_content_curations config if user has any blocked items.
Also noticed we didn't even have a test for blocked_content_curations so added one that covers both cases now.

AS-505 #done

@rebelchris rebelchris requested a review from idoshamun August 9, 2024 08:29
@rebelchris rebelchris requested review from capJavert and a team as code owners August 9, 2024 08:29
src/integrations/feed/configs.ts Outdated Show resolved Hide resolved
@rebelchris rebelchris requested a review from capJavert August 9, 2024 10:19
filters.blockedContentCuration?.length &&
opts.includeBlockedContentCuration
) {
if (filters.blockedContentCuration?.length && opts.includeContentCuration) {
baseConfig.blocked_content_curations = filters.blockedContentCuration;
Copy link
Member

Choose a reason for hiding this comment

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

I think we don't need this anymore now

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What about the lofn provider? (And maybe the one that uses the digest?)

@vpol you probably know best, can we remove it?

Copy link
Contributor

@vpol vpol Aug 13, 2024

Choose a reason for hiding this comment

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

lofn does not use/parse any of the filters at all.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

And with your fix nothing else uses the old format right so removing it is fine? 🙏

Copy link
Contributor

Choose a reason for hiding this comment

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

we still support it on the feed side, but if you are not going to use it - it's ok.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed :)

@rebelchris rebelchris requested review from idoshamun and vpol August 13, 2024 09:23
@rebelchris rebelchris merged commit 5923413 into main Aug 13, 2024
8 checks passed
@rebelchris rebelchris deleted the AS-505-allowed_content_curation branch August 13, 2024 12:01
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.

5 participants