Giter VIP home page Giter VIP logo

silvershop-geocoding's People

Contributors

antonythorpe avatar jedateach avatar thebnl avatar wernerkrauss avatar wilr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

silvershop-geocoding's Issues

Publish new version to avoid duplicate installs of SilverStripe Shop

The most recent published version of this package, 1.2.3, is almost 2 years old and has a dependency on the old "burnbright/silverstripe-shop": "*" which causes a duplicate install of SilverStripe Shop for any module that includes silvershop/silvershop-geocoding as a dependency.

Please publish a new version based on the latest commit to fix this.

Error at the real server

Hello
just uploaded SilverStripe 4.5.2 to the real host (PHP 7.3) and got a server error (if not logged in to Silverstripe admin)

[2020-06-25 17:03:15] error-log.ERROR: Uncaught Exception Error: "Call to undefined method Geocoder\Model\AddressCollection::toArray()" at /home/korjik5/baybuckwheat.co.nz/vendor/silvershop/geocoding/src/Extensions/GeocodedUserInfo.php line 43 {"exception":"[object] (Error(code: 0): Call to undefined method Geocoder\Model\AddressCollection::toArray() at /home/korjik5/baybuckwheat.co.nz/vendor/silvershop/geocoding/src/Extensions/GeocodedUserInfo.php:43)"} []

i had to comment line 43
error line 43

Graceful provider replacement / handling bad providers

FreeGeoIp provider has been unreliable, so I needed to remove it from default list.

We could implement a cache of bad providers. In other words, disable a provider when it it becomes slow/unavailable on subsequent requests. We would need to average failures over a few requests to make the decision on when to turn off a service, as you don't want to disable a service because of a one-off slow request.

Geocodeded data could be fetched when needed, instead of on first request. This will move the issue elsewhere.

We also need logging to tell us when providers fail. This is important to know, so sites can be updated accordingly.

Log failures - quietly by default

If geocoding can't complete for reasons unrelated to code, it's annoying to get lots of exception messages.

We could instead log something quieter, which perhaps ends up in application logs for later analysis.

Add module to scrutinizer

Could you please add the module to scrutinizer? https://scrutinizer-ci.com/g/new. We're keeping track of all modules we use on our contributions dashboard (github-dashing.herokuapp.com), and I've added scrutinizer quality and coverage scores there. Doesn't require any config, just four clicks. You'll have to click "Schedule inspection" for the first run, after that it should kick off automatically on commits.

There's banners you can copy paste into your README if you want. Also, if you feel like it, you could also add me as a collaborator :) There's a "Add collaborators to your repository" option on the homepage.

We're experimenting with a more fine tuned config, including code coverage running on travis, but that's not really to roll out yet (https://github.com/stojg/silverstripe-timeline). Happy to hear feedback and get help of course :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.