-
Notifications
You must be signed in to change notification settings - Fork 34
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
Review workflow UI improvements. #319
Conversation
…gin." This reverts commit 99b9a47.
r=? @leplatrem |
I think you forgot to add the tests file. Good news is that CI is not gonna break :) |
Ah sorry for that, pushed in b4aadb3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r+ with leftover and optional nits :)
setData() {}, | ||
}; | ||
bucket = {collection() {return collection;}}; | ||
setClient({bucket() {return bucket;}}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: maybe put all that in a fakeClient
variable shared with all tests?
const {id: userId} = user; | ||
console.log(bucketState); | ||
const {groups} = bucketState; | ||
const editorGroup = groups.find(g => g.id === groupName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: editorGroup
→ group
return false; | ||
} | ||
const {signer={}} = capabilities; | ||
const {[groupkey]: defaultGroupName} = signer; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could even do this in one line without intermediary capabilities
and signer
variables :) #PerlFTW
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean
const {serverInfo: {capabilities: {signer: {[groupKey]: defaultGroupName}={}}}} = sessionState;
LOLNOPE 😬
const {[groupkey]: defaultGroupName} = signer; | ||
const {[groupkey]: groupName=defaultGroupName} = source; | ||
const {id: userId} = user; | ||
console.log(bucketState); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leftover
This fixes #317 and other issues. WiP.