Skip to content

Add rss trigger#18

Open
zewelor wants to merge 1 commit into
mainfrom
add_rss_trigger
Open

Add rss trigger#18
zewelor wants to merge 1 commit into
mainfrom
add_rss_trigger

Conversation

@zewelor

@zewelor zewelor commented Mar 21, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@zewelor

zewelor commented Mar 30, 2026

Copy link
Copy Markdown
Contributor Author

@codex

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c822f183df

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread lib/r3x/triggers/rss.rb
include Concerns::ChangeDetecting

validates :url, presence: true
validates_with Validators::Url, url_field: :url

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Use an ActiveModel validator for RSS URL checks

validates_with Validators::Url, url_field: :url wires R3x::Validators::Url into ActiveModel, but that class is a utility with only .validate! and does not implement the ActiveModel::Validator interface (validate(record) with option-aware initialization). In practice this causes RSS trigger validation/loading to fail when trigger :rss is declared, so workflows using this new trigger cannot be registered reliably.

Useful? React with 👍 / 👎.

Comment thread lib/r3x/triggers/rss.rb
Comment on lines +9 to +10
validates :url, presence: true
validates_with Validators::Url, url_field: :url

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Validate cron on the RSS trigger before registration

This trigger is marked CronSchedulable and stores cron in options, but it never validates cron presence or format. That lets invalid/blank cron values pass DSL validation and only fail later when recurring tasks are created from trigger.cron, which breaks the expected fail-fast configuration behavior for schedulable triggers.

Useful? React with 👍 / 👎.

@zewelor zewelor force-pushed the main branch 3 times, most recently from 8561c04 to 801b7e6 Compare April 28, 2026 07:37
@zewelor zewelor force-pushed the main branch 7 times, most recently from c47ea07 to ef8244c Compare June 12, 2026 14:25
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.

1 participant