Add RSS feed checker timer (#534) #592
No reviewers
Labels
No labels
blocked
duplicate
high priority
needs
approval
needs
criteria
needs
estimate
needs
tests
question
step
doing
step
review
step
testing
step
todo
step
uat
type
admin
type
alert
type
bug
type
change
type
defect
type
dependencies
type
development
type
documentation
type
epic
type
idea
type
incident
type
investigation
type
spike
type
story
type
tests
won't fix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
RabbitLabs/vylbot-app!592
Loading…
Reference in a new issue
No description provided.
Delete branch "cursor/534-rss-feed-checker-timer"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Implements the scheduled RSS feed checker for #534.
Changes
src/timers/RssTimer.ts— cron*/15 * * * *(Europe/London) loads allRssFeedrows, fetches each feed, posts new items oldest-first, updatesLastFetchedItemGuidafter each successful postAppLoggerand send a danger embed to the feed channelsrc/client/client.tssrc/helpers/AppLogger.ts(minimal logger; AC requiresAppLoggerand none existed yet)tests/timers/RssTimer.test.tsVerification
yarn buildPASSyarn testPASS (8 suites / 97 tests)Notes
feature/epic-528-rss-feeds(RSS code is not onrelease/3.4.0yet), same pattern as #583 / #584 / #531Please review and merge when ready. Do not auto-close the ticket from this PR.
@ -0,0 +1,17 @@/**I don't like this, please remove this file. We will do proper logging in a future story
@ -0,0 +89,4 @@}}async function resolveSendableChannel(Let's put this into its own new helper class, ChannelHelper or something, so we can reuse it if we need to.
Are there any other places in the project this could be used? Highlight these to me on the ticket.
@ -0,0 +103,4 @@return channel;}function buildItemEmbed(feedTitle: string | undefined, item: RssFeedItem): EmbedBuilder {Let's put this function into RssFeedHelper, so we can reuse it another time, let's say if we ever do a manual send command for example.