[PanneauPocketBridge] Use dynamic list of cities
Hi,
I think I spotted an issue on the AbstractBridge
I added some comment why I was forced to copy/paste a core method or maybe I misunderstood the logic.
Feel free to add comments
Pull request artifacts
| Bridge | Context | Status |
|---|---|---|
| PanneauPocket | 1 untitled (current) | ✔️ |
| PanneauPocket | 1 untitled (pr) | ⚠️ WARNING Undefined array key 0 at lib/BridgeAbstract.php line 175⚠️ WARNING foreach() argument must be of type arrayobject, null given at lib/BridgeAbstract.php line 175⚠️ WARNING Attempt to read property "href" on null at bridges/PanneauPocketBridge.php line 32⚠️ WARNING Attempt to read property "plaintext" on null at bridges/PanneauPocketBridge.php line 37⚠️ DEBUG lib/FeedItem.php(118): Expected $uri to be string but got NULL⚠️ (shutdown) 8192: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in bridges/PanneauPocketBridge.php line 38 |
last change: Monday 2023-12-18 19:53:14
I've just tried it, and it works well for me! Thanks
lint
thanks for the contribution flovi.
this pr needs improvement.
-
this pr increases the frontpage size from 1.7M to 2.3M (25%) because of the 13000 options in the list. this not good
-
the bridge does http call in constructor. not good
-
use cache to cache the big list of cities
-
i agree there is a bug in parent method regarding
static::PARAMETERS. if you feel brave can you please fix it so we dont have to copy paste the method. -
i dont really see a need to do work in the constructor
Hi,
For item 1, what do you suggest? For item 2, I don't see other solution to initialize the const cities. For item 4, here is the PR https://github.com/RSS-Bridge/rss-bridge/pull/3858
Thanks for the review
sorry dont have mental energy to followup this one
- rss-bridge might need a new feature to support this. a feature which uses ajax to dynamically autocmplete a long list.
we simply cannot render thousands of <option> elements in the html directly.
-
we could possibly add this PR behind a bridge setting (
config.ini.php) which must be opt-in
feel free to make a new PR