Skip to content

fix: route icon upload by app type in updateIcon#506

Open
srtaalej wants to merge 2 commits intomainfrom
ale-update-icon
Open

fix: route icon upload by app type in updateIcon#506
srtaalej wants to merge 2 commits intomainfrom
ale-update-icon

Conversation

@srtaalej
Copy link
Copy Markdown
Contributor

Summary

This PR fixes updateIcon to route icon uploads by app type instead of toggling on the experiment flag alone

Test plan

  • go test ./internal/pkg/apps/ -run Install passes
  • Hosted app deploys without experiment: icon uploads via apps.hosted.icon
  • Bolt app with -e set-icon: icon uploads via apps.icon.set
  • Bolt app without experiment: icon upload silently skipped

Requirements

@srtaalej srtaalej self-assigned this Apr 20, 2026
@srtaalej srtaalej requested a review from a team as a code owner April 20, 2026 16:03
@srtaalej srtaalej added the semver:patch Use on pull requests to describe the release version increment label Apr 20, 2026
@srtaalej srtaalej marked this pull request as draft April 20, 2026 16:03
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 20, 2026

Codecov Report

❌ Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 71.17%. Comparing base (8f76df9) to head (26dddee).

Files with missing lines Patch % Lines
internal/pkg/apps/install.go 0.00% 6 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #506   +/-   ##
=======================================
  Coverage   71.16%   71.17%           
=======================================
  Files         222      222           
  Lines       18684    18686    +2     
=======================================
+ Hits        13296    13299    +3     
- Misses       4204     4205    +1     
+ Partials     1184     1182    -2     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@srtaalej srtaalej marked this pull request as ready for review April 20, 2026 17:08
Copy link
Copy Markdown
Member

@zimeg zimeg left a comment

Choose a reason for hiding this comment

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

@srtaalej I left a comment if we want to continue supporting the apps.hosted.icon after the experiment concludes. It's unclear to me if we should continue to support paths that reference this method right now 🔭

Comment on lines -662 to 666
if clients.Config.WithExperimentOn(experiment.SetIcon) {
if isHosted {
_, err = clients.API().Icon(ctx, clients.Fs, token, appID, iconPath)
} else if clients.Config.WithExperimentOn(experiment.SetIcon) {
_, err = clients.API().IconSet(ctx, clients.Fs, token, appID, iconPath)
} else {
_, err = clients.API().Icon(ctx, clients.Fs, token, appID, iconPath)
return nil
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🪬 question: Are we hoping to have all uploads use apps.icon.set? I find this works as expected for hosted apps at the moment and am unsure that we need to change this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver:patch Use on pull requests to describe the release version increment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants