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

Introduce a --enterprise flag #5340

Merged
merged 1 commit into from
Jun 14, 2024
Merged

Introduce a --enterprise flag #5340

merged 1 commit into from
Jun 14, 2024

Conversation

willdurand
Copy link
Member

@willdurand willdurand commented Jun 13, 2024

Fixes #5341


Add a new CLI flag to control the checks for enterprise add-ons.

@willdurand willdurand requested a review from rpl June 13, 2024 14:26
@willdurand willdurand force-pushed the enterprise-flag branch 4 times, most recently from 45cf20a to 864f407 Compare June 13, 2024 14:33
src/messages/manifestjson.js Outdated Show resolved Hide resolved
src/parsers/manifestjson.js Outdated Show resolved Hide resolved
Copy link

codecov bot commented Jun 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.75%. Comparing base (7cb36f3) to head (989609a).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5340   +/-   ##
=======================================
  Coverage   98.75%   98.75%           
=======================================
  Files          51       51           
  Lines        2896     2902    +6     
  Branches      887      890    +3     
=======================================
+ Hits         2860     2866    +6     
  Misses         36       36           

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

Copy link
Member

@rpl rpl left a comment

Choose a reason for hiding this comment

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

@willdurand looks pretty good to me, I have just one thought (well, maybe two packed into one :-P) about explicitly state in this new ADMIN_INSTALL_ONLY_REQUIRED linting error where the property is supposed to be set (mainly for when the error is reported for the property being required but not set at all, or set in the wrong part of the manifest).

Marking as request changes to signal this is currently pending on double-checking if that thought is something we should be covering in this PR before merging it.

src/messages/manifestjson.js Outdated Show resolved Hide resolved
@willdurand willdurand merged commit 625435c into master Jun 14, 2024
5 checks passed
@willdurand willdurand deleted the enterprise-flag branch June 14, 2024 11:07
export const ADMIN_INSTALL_ONLY_REQUIRED = {
code: 'ADMIN_INSTALL_ONLY_REQUIRED',
message: i18n._(`"/browser_specific_settings/gecko/admin_install_only"
property must be set to "true"."`),
Copy link
Contributor

Choose a reason for hiding this comment

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

There's an extra " at the end

Copy link
Member Author

Choose a reason for hiding this comment

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

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.

Introduce a --enterprise flag
4 participants