Skip to content

Hotfix: Rewrite logic for acquiring RSS target channels - #1090

Merged
ankitsmt211 merged 1 commit into
Together-Java:developfrom
christolis:hotfix/rss-config
May 12, 2024
Merged

Hotfix: Rewrite logic for acquiring RSS target channels#1090
ankitsmt211 merged 1 commit into
Together-Java:developfrom
christolis:hotfix/rss-config

Conversation

@christolis

Copy link
Copy Markdown
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

@xserts xserts left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Great job!

@ankitsmt211 ankitsmt211 left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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