Skip to content

Customizable action list#20

Merged
jeffw16 merged 2 commits intomainfrom
jeffw16/customizable-action-list
Mar 28, 2026
Merged

Customizable action list#20
jeffw16 merged 2 commits intomainfrom
jeffw16/customizable-action-list

Conversation

@jeffw16
Copy link
Copy Markdown
Member

@jeffw16 jeffw16 commented Mar 27, 2026

Closes #14

Copilot AI review requested due to automatic review settings March 27, 2026 23:01
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new configuration option to make which action= requests are blocked for anonymous users configurable, replacing the previously hardcoded action=history restriction.

Changes:

  • Add CrawlerProtectedActions config (default ["history"]) and bump extension version to 1.3.0.
  • Update CrawlerProtectionService::checkPerformAction() to consult the configured protected actions via a new isProtectedAction() helper.
  • Extend unit tests to cover configured actions, empty configuration, and case-insensitive matching.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
includes/CrawlerProtectionService.php Introduces CrawlerProtectedActions option and action-matching helper used by checkPerformAction().
tests/phpunit/unit/CrawlerProtectionServiceTest.php Updates service construction and adds tests for configurable protected actions behavior.
extension.json Registers CrawlerProtectedActions with default value and bumps extension version.

@jeffw16 jeffw16 merged commit ca5f8e9 into main Mar 28, 2026
14 checks passed
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.

2 participants