fix(storage-resize-images): add missing recordStartEvent call#2546
fix(storage-resize-images): add missing recordStartEvent call#2546tad3j wants to merge 1 commit intofirebase:nextfrom
Conversation
HassanBahati
left a comment
There was a problem hiding this comment.
Hi @tad3j, thank you for working on this Pull Request 👏
Can you please make the changed below;
- Please update CHANGELOG.md to reflect what has changed.
- Please bump the extension version in extension.yaml
- Can you please move the event trigger to generateResizedImage function
Cheers!
e02bd62 to
abb9f75
Compare
Hey @HassanBahati . Updated md and yml files as requested and moved event call to parent function. Notice that I also changed the argument (only passing object without sending name twice) and added await. |
|
Btw, with change above onStart event fires even if |
|
Hey @tad3j that's a good point. The description of this particular event in the extension.yaml implies it is fired every time the function executes, but this is probably less useful here. We will double check with the Firebase Extensions team to get their opinion on this. I can think of three options:
|
My use-case is cleanup before resize: |
Fixes issue #2545