Skip to content
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

Improve detection of map provider with missing Api key #4760

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ddrury
Copy link
Contributor

@ddrury ddrury commented Feb 19, 2023

fixs #4758 (now closed)

Applies to map providers that are enabled and require an api key but the key has been omitted.

For users without Admin permissions, previously for the offending provider an exception was raised which blocked access to all the maps. Now the offending provider is silently omitted from the list of available providers and an entry in the error log is made.

For Admin users an exception is raised with a link to the offending providers configuration page. (same as previously)

@codecov
Copy link

codecov bot commented Feb 19, 2023

Codecov Report

Merging #4760 (4f480aa) into main (407d63e) will increase coverage by 0.00%.
The diff coverage is 0.00%.

@@            Coverage Diff            @@
##               main    #4760   +/-   ##
=========================================
  Coverage     30.94%   30.94%           
+ Complexity    11357    11354    -3     
=========================================
  Files          1173     1173           
  Lines         47873    47865    -8     
=========================================
  Hits          14812    14812           
+ Misses        33061    33053    -8     
Impacted Files Coverage Δ
app/Module/BingMaps.php 0.00% <ø> (ø)
app/Module/GoogleMaps.php 0.00% <ø> (ø)
app/Module/HereMaps.php 0.00% <ø> (ø)
app/Module/MapBox.php 0.00% <ø> (ø)
app/Module/ModuleMapProviderTrait.php 0.00% <0.00%> (ø)
app/Services/LeafletJsService.php 0.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@ddrury ddrury changed the title Improve detection of missing Api key Improve detection of map provider with missing Api key Feb 19, 2023
@ddrury ddrury force-pushed the Fix_map_providers branch 3 times, most recently from 6179f5b to 90c2acb Compare February 20, 2023 14:46
@ddrury ddrury force-pushed the Fix_map_providers branch 4 times, most recently from e5e11d0 to 9a0d645 Compare February 20, 2023 16:54
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.

None yet

1 participant