Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correctly determine channel for APIs with dependencies. #48

Merged
merged 1 commit into from
Mar 6, 2023

Conversation

oliverdunk
Copy link
Member

When considering dependencies, we were incorrectly choosing the "most released" channel as the channel an API became available. This was causing some issues as, for example, action.openPopup is still restricted to dev but it has a dependency of the action key in the manifest which has existed in stable for a while.

Fixing this should make the openPopup API correctly appear as restricted to dev, and also fix some other similar issues across the generated types.

I ran the tool and compared the generated types with the last published version of this package. There are only a dozen or so lines changed and the changes look reasonable, matching up to the versioning information I was able to find looking at when those APIs become available in the Chromium source.

When considering dependencies, we were incorrectly choosing the
"most released" channel as the channel an API became available.
This was causing some issues as, for example, action.openPopup
is still restricted to dev but it has a dependency of the action
key in the manifest which has existed in stable for a while.

Fixing this should make the openPopup API correctly appear as
restricted to dev, and also fix some other similar issues across
the generated types.
@oliverdunk
Copy link
Member Author

This relates to GoogleChrome/developer.chrome.com#2602. It should be fixed once this change propagates through but I'm not going to link the two so we can keep the DCC PR open until we've confirmed.

@codecov
Copy link

codecov bot commented Mar 6, 2023

Codecov Report

Patch coverage: 37.03% and project coverage change: +0.01 🎉

Comparison is base (47ad02c) 35.60% compared to head (f8d7f38) 35.61%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #48      +/-   ##
==========================================
+ Coverage   35.60%   35.61%   +0.01%     
==========================================
  Files          21       21              
  Lines        3991     4015      +24     
  Branches      185      185              
==========================================
+ Hits         1421     1430       +9     
- Misses       2570     2585      +15     
Impacted Files Coverage Δ
tools/lib/channel.js 60.00% <36.00%> (-10.59%) ⬇️
tools/override.js 23.20% <50.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@sebastianbenz sebastianbenz left a comment

Choose a reason for hiding this comment

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

LGTM

@oliverdunk oliverdunk merged commit 98aee76 into main Mar 6, 2023
@oliverdunk oliverdunk deleted the od/channel-fix branch March 6, 2023 13: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.

2 participants