Skip to content

Conversation

@FrederikBolding
Copy link
Member

@FrederikBolding FrederikBolding commented Nov 21, 2024

Fixes an oversight where preinstalled Snaps would not emit snapInstalled and snapUpdated. This would cause lifecycle hooks among other things to not work. This PR also adds a preinstalled flag to the events, this will be necessary to not collect metrics for installation/update of preinstalled Snaps.

Additionally, this PR fixes an oversight where preinstalled Snaps could have the manual update flow triggered. For now, we disallow this behaviour.

Progresses #2899

@FrederikBolding FrederikBolding requested a review from a team as a code owner November 21, 2024 10:01
@codecov
Copy link

codecov bot commented Nov 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.48%. Comparing base (406f7a2) to head (e67b8a5).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2900   +/-   ##
=======================================
  Coverage   94.48%   94.48%           
=======================================
  Files         486      486           
  Lines       10399    10405    +6     
  Branches     1594     1597    +3     
=======================================
+ Hits         9825     9831    +6     
  Misses        574      574           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

@FrederikBolding FrederikBolding merged commit 126990b into main Nov 21, 2024
166 checks passed
@FrederikBolding FrederikBolding deleted the fb/emit-events-for-preinstalled-snaps branch November 21, 2024 10:31
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.

3 participants