Skip to content

Add optional feed argument to actualize_script.php - #9182

Closed
jtracey wants to merge 2 commits into
FreshRSS:edgefrom
jtracey:actualize-arg
Closed

jtracey wants to merge 2 commits into
FreshRSS:edgefrom
jtracey:actualize-arg

Conversation

@jtracey

@jtracey jtracey commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Changes proposed in this pull request:

Adds an optional argument to the script to allow updating a particular feed, instead of all of them. This makes it easier to update specific feeds via cron and other local utilities. (My personal motivation is to add a bit of privacy to updates so they aren't as obviously linked, but this is also useful for other reasons, e.g. if you have too many feeds to feasibly update at once.)

How to test the feature manually:

  1. apply patch
  2. look up currently valid feed ID
  3. call actualize_script.php 123

Pull request checklist:

  • clear commit messages
  • code manually tested
  • unit tests written (optional if too hard)
  • documentation updated

I'll update the documentation if I get the go-ahead on this being desirable, and can add a test if requested and not too difficult.

@Frenzie

Frenzie commented Aug 8, 2026

Copy link
Copy Markdown
Member

As far as the ID goes is that the reaching the exact same code under the hood as ?c=feed&a=actualize&id=27?

@Inverle Inverle added the CLI Command line interfaces in ./cli label Aug 8, 2026
@Inverle Inverle added this to the 1.30.0 milestone Aug 8, 2026

@Alkarex Alkarex 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.

Hum, I am not sure this makes sense for this script, which is used to refresh all users.
Instead, I suggest you add this new parameter to https://github.com/FreshRSS/FreshRSS/blob/edge/cli/actualize-user.php

@Frenzie

Frenzie commented Aug 9, 2026

Copy link
Copy Markdown
Member

But then you'd have to worry about which user it belongs to. I don't think that makes sense within the confines of what OP said they wanted to do since then you'd have to collect all the users first as boilerplate in order to achieve the same end result. :-)

@Alkarex

Alkarex commented Aug 9, 2026

Copy link
Copy Markdown
Member

But then you'd have to worry about which user it belongs to. I don't think that makes sense within the confines of what OP said they wanted to do since then you'd have to collect all the users first as boilerplate in order to achieve the same end result. :-)

But feed ID only makes sense for a given user

@Frenzie

Frenzie commented Aug 9, 2026

Copy link
Copy Markdown
Member

Fair enough, but then I think they might be looking for something slightly different?

@Inverle Inverle modified the milestones: 1.30.0, 1.31.0 Sep 8, 2026
@jtracey

jtracey commented Sep 18, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the suggestion, closing in favor of #9319.

@jtracey jtracey closed this Sep 18, 2026
Alkarex added a commit that referenced this pull request Sep 19, 2026
* Add optional feed argument to actualize-user.php

Ports the change in #9182 from actualize_script.php to actualize-user.php, as suggested.

Adds an optional argument to the script to allow updating a particular feed, instead of all of them. This makes it easier to update specific feeds via cron and other local utilities. (My personal motivation is to add a bit of privacy to updates so they aren't as obviously linked, but this is also useful for other reasons, e.g. if you have too many feeds to feasibly update at once.)

* Doc + minor type check preference

---------

Co-authored-by: Alexandre Alapetite <[email protected]>
@Alkarex Alkarex modified the milestones: 1.31.0, 1.30.1 Sep 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLI Command line interfaces in ./cli

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants