Skip to content

Refactor: Move Cloud Functions logic to a dedicated service - #2597

Open
gino-m wants to merge 4 commits into
masterfrom
refactor-auth-cloud-functions-120037319741353196
Open

gino-m wants to merge 4 commits into
masterfrom
refactor-auth-cloud-functions-120037319741353196

Conversation

@gino-m

@gino-m gino-m commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

Refactored AuthService to delegate Cloud Functions related logic (sessionLogin and profileRefresh) to a new, dedicated CloudFunctionsService in order to improve code modularity. Replaced HttpClientService and Functions dependencies with CloudFunctionsService inside AuthService. Included unit tests for the new service and updated AuthService tests accordingly.


PR created automatically by Jules for task 120037319741353196 started by @gino-m

…nsService

Co-authored-by: gino-m <228050+gino-m@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@gino-m

gino-m commented Sep 22, 2026

Copy link
Copy Markdown
Collaborator Author

@jules Please fix failing tests and try again.

@google-labs-jules

Copy link
Copy Markdown
Contributor

@jules Please fix failing tests and try again.

I'm looking into the failing tests. I notice that trying to use spyOnProperty with httpsCallable gives not declared configurable. Is it possible to mock it using spyOn(fireFunctions, 'httpsCallable') instead in this CI setup, or by overriding httpsCallable with another method in the service that can be stubbed?

google-labs-jules Bot and others added 3 commits September 22, 2026 19:39
Co-authored-by: gino-m <228050+gino-m@users.noreply.github.com>
Co-authored-by: gino-m <228050+gino-m@users.noreply.github.com>

This branch has not been deployed

No deployments
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.

2 participants