Skip to content

Conversation

yakovmanshin
Copy link
Contributor

@yakovmanshin yakovmanshin commented Oct 2, 2024

  • Combined the two nearly identical Functions.callFunction(…) methods into one
  • Updated Functions.urlWithName(_:) to return an actual URL; renamed the method to functionURL(for:)
  • Refactored HTTPSCallable to store a function’s actual URL
  • Removed HTTPSCallable.EndpointType
  • Updated tests

Copy link
Member

@ncooke3 ncooke3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @yakovmanshin! Leaving a few minor comments...

* Combined the two nearly identical `Functions.callFunction(…)` methods into one
* Updated `Functions.urlWithName(_:)` to return an actual `URL`; renamed the method to `functionURL(for:)`
* Refactored `HTTPSCallable` to store a function’s actual URL
* Removed `HTTPSCallable.EndpointType`
* Updated tests
@yakovmanshin yakovmanshin changed the title Functions.Endpoint Refactored Duplicate Methods in Functions Oct 3, 2024
@yakovmanshin yakovmanshin requested a review from ncooke3 October 3, 2024 11:14
Copy link
Member

@ncooke3 ncooke3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ncooke3 ncooke3 merged commit 995c933 into firebase:main Oct 3, 2024
40 checks passed
@yakovmanshin yakovmanshin deleted the functions-endpoint branch October 3, 2024 20:08
@firebase firebase locked and limited conversation to collaborators Nov 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants