Skip to content

Add user maintenance hooks#3440

Merged
Alkarex merged 1 commit intoFreshRSS:masterfrom
aledeg:enhance/extension-hooks
Feb 17, 2021
Merged

Add user maintenance hooks#3440
Alkarex merged 1 commit intoFreshRSS:masterfrom
aledeg:enhance/extension-hooks

Conversation

@aledeg
Copy link
Copy Markdown
Member

@aledeg aledeg commented Feb 11, 2021

Closes #3398 (partially)

Changes proposed in this pull request:

  • Add user maintenance hooks

How to test the feature manually:

  1. Add an extension using a new hook.
  2. Run the make refresh command.

Pull request checklist:

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

Additional information can be found in the documentation.

The new hook allows to add maintenance extensions at the user level.

The new hook allows to add maintenance extensions at the user level.

See FreshRSS#3398
@aledeg aledeg added Extension 🔌 System care Everything related to system care labels Feb 11, 2021

FreshRSS_Auth::giveAccess();

Minz_ExtensionManager::callHook('freshrss_user_maintenance');
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.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I've tried but it seems that it is not triggered. :/

Copy link
Copy Markdown
Member

@Alkarex Alkarex Feb 11, 2021

Choose a reason for hiding this comment

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

Could you please try with #3443 ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I've tried without success

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.

Have you tested with a system or user extension?

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.

Could you please try again with #3443 ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I tried with a system extension

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

So far, no success either :/

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.

Let's merge here and come back to it when #3443 works

@Alkarex Alkarex added this to the 1.18.0 milestone Feb 11, 2021
Alkarex added a commit to Alkarex/FreshRSS that referenced this pull request Feb 11, 2021
@Alkarex Alkarex mentioned this pull request Feb 11, 2021
@Alkarex Alkarex merged commit 787e8fa into FreshRSS:master Feb 17, 2021
@aledeg aledeg deleted the enhance/extension-hooks branch February 17, 2021 15:46
Alkarex added a commit that referenced this pull request Feb 26, 2021
* Extensions in CLI

#3440 (comment)

* Also user extensions
Alkarex added a commit to Alkarex/FreshRSS that referenced this pull request Mar 30, 2023
Follow-up of FreshRSS#3440

The hook was called before registering all the extensions for the current user
Alkarex added a commit that referenced this pull request Apr 4, 2023
* Fix extension freshrss_user_maintenance in actualize_script
Follow-up of #3440

The hook was called before registering all the extensions for the current user

* PHPStan Level 6 for extensions
And remove 5-year old legacy format of enabled extensions < FreshRSS 1.11.1

* Fix multiple bugs in extensions

* Minor typing

* Don't change signature of methods supposed to be overridden

* PHPStan Level 9 and compatibility Intelliphense

* Set as final the methods not supposed to be overriden
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Extension 🔌 System care Everything related to system care

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature request] Add maintenance hooks

2 participants