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

Add a confidential field to policies #4643

Merged
merged 5 commits into from
Dec 20, 2024

Conversation

yanndago
Copy link
Collaborator

  • Add a new confidential field to features
  • This new field makes it impossible to:
    • access the feature via direct url
    • find the feature using search
    • See the feature in the release notes
  • The only users who can see a confidential feature are admins, owners of a google.com and chromium.org account, feature owners, editors and creators.

type: 'checkbox',
label: 'Confidential',
initial: false,
help_text: html `This is a confidential feature that should not be publicly
Copy link
Collaborator

Choose a reason for hiding this comment

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

It would be more clear if this explained who could view the feature. E.g., "@google.com accounts, @chromium.org accounts, the feature owners, and editors."

return not feature.confidential or can_view_confidential_feature(user, feature)

def can_view_confidential_feature(user, feature):
''' Check if the user is an owner, editor, spec mentor, or creator
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: all our other docstrings use three double-quotes.

internals/feature_helpers.py Outdated Show resolved Hide resolved
internals/search.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@jrobbins jrobbins left a comment

Choose a reason for hiding this comment

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

LGTM, but there is still the nit about a docstring using single quotes.

@yanndago yanndago merged commit 6e98711 into GoogleChrome:main Dec 20, 2024
7 checks passed
@yanndago yanndago deleted the confidentiality branch December 20, 2024 15:25
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