[Fixes #14309] Generalize remote service type registration and auth handling#14328
[Fixes #14309] Generalize remote service type registration and auth handling#14328sijandh35 wants to merge 4 commits into
Conversation
There was a problem hiding this comment.
Code Review
This pull request refactors service type handling by introducing a centralized ServiceTypeRegistry and enhances remote resource upload handlers (including COG, FlatGeobuf, 3D Tiles, and WMS) to support authentication configurations (AuthConfig) during validation and import. It also integrates authentication credentials with GDAL configuration options for remote metadata extraction. The review feedback highlights several improvement opportunities: implementing lazy initialization in ServiceTypeRegistry to avoid inefficient re-initialization and loss of dynamic registrations, and adding safety guards in BaseRemoteResourceHandler to prevent potential AttributeErrors when service_url, _exec, or options are None or empty.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #14328 +/- ##
===========================================
+ Coverage 34.71% 74.91% +40.20%
===========================================
Files 982 984 +2
Lines 60496 60721 +225
Branches 8247 8289 +42
===========================================
+ Hits 21002 45492 +24490
+ Misses 38332 13381 -24951
- Partials 1162 1848 +686 🚀 New features to boost your workflow:
|
Fixes #14309
Checklist
For all pull requests:
The following are required only for core and extension modules (they are welcomed, but not required, for contrib modules):
Submitting the PR does not require you to check all items, but by the time it gets merged, they should be either satisfied or inapplicable.