Skip to content

Hotfix: Rewrite logic for acquiring RSS target channels #1090

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

Merged
merged 1 commit into from
May 12, 2024

Conversation

christolis
Copy link
Member

This commit attempts to change the way a text channel list for RSS feeds gets generated, as it would originally not consider any channels that matched the fallback channel pattern and it would constantly log a warning that would clutter the log channels and skip sending any RSS posts as a result.

The method which is responsible for finding the text channels from a given RSS feed configuration now focuses on collecting a list of text channels that match the target channel pattern from the configuration, and if no channels are found, the same collection attempt happens with the fallback channel pattern. In case an empty list is still yielded, a now-improved and more accurate warning message gets logged.

This commit attempts to change the way a text channel list for RSS feeds
gets generated, as it would originally not consider any channels that
matched the fallback channel pattern and it would constantly log a
warning that would clutter the log channels and skip sending any RSS
posts as a result.

The method which is responsible for finding the text channels from a
given RSS feed configuration now focuses on collecting a list of text
channels that match the target channel pattern from the configuration,
and if no channels are found, the same collection attempt happens with
the fallback channel pattern. In case an empty list is still yielded, a
now-improved and more accurate warning message gets logged.
@christolis christolis requested a review from ankitsmt211 April 16, 2024 15:58
@christolis christolis requested a review from a team as a code owner April 16, 2024 15:58
Copy link

@Serters Serters left a comment

Choose a reason for hiding this comment

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

Great job!

Copy link
Member

@ankitsmt211 ankitsmt211 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

@ankitsmt211
Copy link
Member

going to sudo merge this, PR is roughly an old month at this point.

@ankitsmt211 ankitsmt211 merged commit 4e7b9b6 into Together-Java:develop May 12, 2024
@ankitsmt211 ankitsmt211 mentioned this pull request May 15, 2024
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.

3 participants