Skip to content

Expand usage of LimitWikiAccess middleware#937

Merged
AndrewKostka merged 8 commits into
mainfrom
refactor-LimitWikiAccess
Aug 20, 2025
Merged

Expand usage of LimitWikiAccess middleware#937
AndrewKostka merged 8 commits into
mainfrom
refactor-LimitWikiAccess

Conversation

@AndrewKostka
Copy link
Copy Markdown
Contributor

@AndrewKostka AndrewKostka commented May 22, 2025

Bug: T394986

@AndrewKostka AndrewKostka marked this pull request as draft May 22, 2025 08:48
@AndrewKostka AndrewKostka changed the title Refactor LimitWikiAccess middleware Expand usage of LimitWikiAccess middleware May 22, 2025
@AndrewKostka AndrewKostka marked this pull request as ready for review May 22, 2025 14:44
Comment thread app/Http/Middleware/LimitWikiAccess.php Outdated
Comment thread tests/Middleware/LimitWikiAccessText.php
@AndrewKostka AndrewKostka force-pushed the refactor-LimitWikiAccess branch from f4cb4ea to f1c4b8b Compare May 30, 2025 13:07
Copy link
Copy Markdown
Member

@outdooracorn outdooracorn left a comment

Choose a reason for hiding this comment

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

LGTM! Added a commit to fix some minor code quality issues I saw during review. I hope that's okay.

@AndrewKostka AndrewKostka merged commit e4e9856 into main Aug 20, 2025
5 checks passed
@AndrewKostka AndrewKostka deleted the refactor-LimitWikiAccess branch August 20, 2025 08:38
deer-wmde pushed a commit that referenced this pull request Dec 15, 2025
* Refactor LimitWikiAccess middleware

* Add missing test cases prior to refactoring

* Refactor routes to use LimitWikiAccess middleware

* Rename LimitWikiAccessText to LimitWikiAccessTest

* Use RefreshDatabase for LimitWikiAccessTest

* Return 404 for non-existent wikis

* Minor code cleanup during review

* Remove now unused imports
* Add indents to method chain

---------

Co-authored-by: Ollie <oliver.hyde@wikimedia.de>
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.

3 participants