Cast subject page to a Title if it isn't one#827
Cast subject page to a Title if it isn't one#827JeroenDeDauw merged 3 commits intoProfessionalWiki:masterfrom
Conversation
|
Warning Rate limit exceeded@SomeMWDev has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 2 minutes and 13 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughNormalize the page reference when storing GeoJSON by converting non-Title page refs to a Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Pre-merge checks and finishing touches✅ Passed checks (3 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
src/GeoJsonPages/GeoJsonContentHandler.php(2 hunks)
🧰 Additional context used
🧬 Code graph analysis (1)
src/GeoJsonPages/GeoJsonContentHandler.php (1)
src/MapsFactory.php (2)
MapsFactory(51-284)newSemanticGeoJsonStore(238-245)
This fixes "TypeError: Maps\MapsFactory::newSemanticGeoJsonStore(): Argument ProfessionalWiki#2 ($subjectPage) must be of type MediaWiki\Title\Title, MediaWiki\Page\PageIdentityValue given" Raise MW requirement to 1.41.
f05a117 to
35ed08b
Compare
|
Raised the MW requirement to 1.41 since |
|
Better to bump to MW 43 right away then, since every time we increase the needed MW version, we need a major release https://github.com/ProfessionalWiki/Maps/blob/master/INSTALL.md |
1.40-1.42 have been EOL for a while. Also remove redundant PHP requirement, since MW 1.43 requires PHP 8.
27b2a26 to
71c63df
Compare
Done, also removed the redundant PHP requirement and updated the CI config. |
* Cast subject page to a Title if it isn't one This fixes "TypeError: Maps\MapsFactory::newSemanticGeoJsonStore(): Argument ProfessionalWiki#2 ($subjectPage) must be of type MediaWiki\Title\Title, MediaWiki\Page\PageIdentityValue given" Raise MW requirement to 1.41. * Raise MW requirement to 1.43 1.40-1.42 have been EOL for a while. Also remove redundant PHP requirement, since MW 1.43 requires PHP 8. * Only run CI on MW 1.43, 1.44 and master
Downstream task: https://issue-tracker.miraheze.org/T14342
ContentParseParams::getPage returns a PageReference.
This fixes:
Summary by CodeRabbit