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

Unify FilesList and SharesList #1219

Merged
merged 11 commits into from
Jul 2, 2021
Merged

Unify FilesList and SharesList #1219

merged 11 commits into from
Jul 2, 2021

Conversation

Tbaut
Copy link
Collaborator

@Tbaut Tbaut commented Jul 1, 2021

closes #1218

@Tbaut Tbaut added the Status: Review Needed 👀 Added to PRs when they need more review label Jul 1, 2021
@Tbaut Tbaut requested review from RyRy79261, tanmoyAtb and FSM1 July 1, 2021 14:45
@render
Copy link

render bot commented Jul 1, 2021

@render
Copy link

render bot commented Jul 1, 2021

@github-actions github-actions bot added the Type: Maintenance Added to issues and PRs when a change is for repository maintenance , such as CI or linter changes. label Jul 1, 2021
@@ -301,7 +304,8 @@ const FilesList = () => {
moduleRootPath,
isSearch,
withSurvey,
bucket
bucket,
accessRole
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't we have the accessRole inside bucket (BucketKeyPermission) now ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Totally, I merged dev and removed this prop

switch(accessRole) {
case "owner":
filteredList = [
"delete",
Copy link
Contributor

Choose a reason for hiding this comment

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

could we have something like this

const readerPermissions = ["info", "download"]
const writerPermissions = [...readerPermissions, "move", ....]

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Love the idea, check 952b03e and let me know if that's better.

]
if (!bulkOperations) return

let filteredList: FileOperation[] = [
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe fileOperations a better name ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

agreed, changed.

Copy link
Contributor

@tanmoyAtb tanmoyAtb left a comment

Choose a reason for hiding this comment

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

Working great! 💯
Left somee comments

@Tbaut Tbaut requested a review from tanmoyAtb July 2, 2021 13:20
@Tbaut Tbaut enabled auto-merge (squash) July 2, 2021 13:23
Copy link
Contributor

@tanmoyAtb tanmoyAtb left a comment

Choose a reason for hiding this comment

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

Looking great ! 👍

@Tbaut Tbaut merged commit 1126c9f into dev Jul 2, 2021
@Tbaut Tbaut deleted the mnt/tbaut-refactor-FilesList-1218 branch July 2, 2021 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Review Needed 👀 Added to PRs when they need more review Type: Maintenance Added to issues and PRs when a change is for repository maintenance , such as CI or linter changes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unify ShareList and FileList
4 participants