-
-
Notifications
You must be signed in to change notification settings - Fork 61
Cast subject page to a Title if it isn't one #827
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cast subject page to a Title if it isn't one #827
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
Downstream task: https://issue-tracker.miraheze.org/T14342
ContentParseParams::getPage returns a PageReference.
This fixes:
Summary by CodeRabbit