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

fix: allow storage implementation to determine writability #3630

Merged
merged 5 commits into from
Jul 27, 2020

Conversation

benbrown
Copy link
Contributor

@benbrown benbrown commented Jul 14, 2020

Description

This allows the storage driver or plugin to determine whether or not a file or folder is writable. This is achieved by extending the stat interface to include isWritable as a field, and to expect that field to be present when calculating this value for use in the client.

This will allow third party storage plugins to determine who and where bot projects can be created using the appropriate internal mechanism. For example, using a logged in user identity to determine if a bot project is accessible.

Task Item

Fixes #3319

Screenshots

This controls where a bot project can be created. It appears in the "new bot" flow.

avuCay4H2X

@benbrown benbrown marked this pull request as ready for review July 14, 2020 19:57
@coveralls
Copy link

coveralls commented Jul 14, 2020

Coverage Status

Coverage remained the same at 57.367% when pulling 49fa464 on benbrown/3319 into 6f69c47 on main.

@cwhitten cwhitten merged commit 063506f into main Jul 27, 2020
@cwhitten cwhitten deleted the benbrown/3319 branch July 27, 2020 21:01
alanlong9278 added a commit that referenced this pull request Jul 28, 2020
* main:
  fix: allow storage implementation to determine writability (#3630)
  fix: fix deploy issue because botproject files structure changed (#3719)
  fix: loop infinitely on publish page when get publish status (#3716)
benbrown pushed a commit to benbrown/BotFramework-Composer that referenced this pull request May 24, 2021
* main:
  fix: allow storage implementation to determine writability (microsoft#3630)
  fix: fix deploy issue because botproject files structure changed (microsoft#3719)
  fix: loop infinitely on publish page when get publish status (microsoft#3716)
benbrown pushed a commit that referenced this pull request Jun 11, 2021
* main:
  fix: allow storage implementation to determine writability (#3630)
  fix: fix deploy issue because botproject files structure changed (#3719)
  fix: loop infinitely on publish page when get publish status (#3716)
lei9444 pushed a commit to lei9444/BotFramework-Composer-1 that referenced this pull request Jun 15, 2021
…#3630)

* Allow the Storage implementation to determine if a folder is writable or not

* Remove legacy fs check on writability

Co-authored-by: Chris Whitten <[email protected]>
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.

[MCS-DE-GO] Extend Storage Plug-In to support custom control of write permissions on folders
3 participants