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

feat(runtime/permissions): prompt fallback #9376

Merged
merged 31 commits into from
Apr 12, 2021

Conversation

crowlKats
Copy link
Member

@crowlKats crowlKats commented Feb 2, 2021

This commit adds --prompt flag that changes behavior of permission
checking to displaying interactive prompt instead of failing on missing
permissions.

Based on #9367
Closes #3811

Base automatically changed from master to main February 19, 2021 14:59
runtime/permissions.rs Outdated Show resolved Hide resolved
runtime/permissions.rs Outdated Show resolved Hide resolved
@kt3k
Copy link
Member

kt3k commented Apr 10, 2021

As far as I tested with 56a7ee6 this looks good to me 👍

It might be better to add unit test of prompt-enabled permissions using set_prompt_result utility (something similar to fn test_request()

@kt3k kt3k mentioned this pull request Apr 11, 2021
Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

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

LGTM

@kt3k kt3k mentioned this pull request Apr 11, 2021
Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

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

LGTM, thank you @crowlKats for seeing this through!

Copy link
Collaborator

@nayeemrmn nayeemrmn left a comment

Choose a reason for hiding this comment

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

Sorry for the late review!

runtime/permissions.rs Outdated Show resolved Hide resolved
runtime/permissions.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@nayeemrmn nayeemrmn left a comment

Choose a reason for hiding this comment

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

LGTM

@kt3k
Copy link
Member

kt3k commented Apr 12, 2021

Thank you, Crowl. Nice feature to have!

@kt3k kt3k merged commit fefe93c into denoland:main Apr 12, 2021
@crowlKats crowlKats deleted the permission_prompt_fallback branch April 12, 2021 09:57
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.

discussion: Bring back permission prompt behind a flag
4 participants