Skip to content

REF-18: extract shared requireGoogleApiKey into googleEnvUtils#376

Merged
khalillabban merged 1 commit intomainfrom
sprint6/refactor/extract_shared_requireGoogleApiKey
Apr 5, 2026
Merged

REF-18: extract shared requireGoogleApiKey into googleEnvUtils#376
khalillabban merged 1 commit intomainfrom
sprint6/refactor/extract_shared_requireGoogleApiKey

Conversation

@philniko
Copy link
Copy Markdown
Collaborator

@philniko philniko commented Apr 5, 2026

GoogleDirectionsService and GooglePlacesService each had their own copy of requireGoogleApiKey() with slightly different error messages. This extracts the function into a new services/googleEnvUtils.ts module and replaces both local copies with an import.

No behavior change, any new Google service that needs the Maps API key now has a single place to import from.

closes #375

@philniko philniko added this to the Sprint 6 milestone Apr 5, 2026
@philniko philniko self-assigned this Apr 5, 2026
@philniko philniko added the refactoring refactoring task label Apr 5, 2026
@github-project-automation github-project-automation Bot moved this to Backlog in Snorting Code Apr 5, 2026
@codecov-commenter
Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Apr 5, 2026

@khalillabban khalillabban self-requested a review April 5, 2026 07:45
@khalillabban khalillabban merged commit 994fab3 into main Apr 5, 2026
3 checks passed
@khalillabban khalillabban deleted the sprint6/refactor/extract_shared_requireGoogleApiKey branch April 5, 2026 07:45
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Snorting Code Apr 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactoring refactoring task

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

REF-18: extract shared requireGoogleApiKey into googleEnvUtils

3 participants