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

Board: 1265: Make Card Actions extensible #1319

Merged
merged 2 commits into from
Apr 8, 2022
Merged

Board: 1265: Make Card Actions extensible #1319

merged 2 commits into from
Apr 8, 2022

Conversation

annano
Copy link
Contributor

@annano annano commented Apr 7, 2022

No description provided.

@annano annano changed the title 1265: Make Card Actions extensible Board: 1265: Make Card Actions extensible Apr 7, 2022
Signed-off-by: Anna No <anna.no@xored.com>
}
]
export const getCardActions = async (client: Client) => {
return await client.findAll(board.class.CardAction, {});
Copy link
Member

Choose a reason for hiding this comment

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

Why you need this? You can use it directy

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

let actionGroups: { label: IntlString; actions: CardAction[] }[] = []

getCardActions(client).then((result) => {
result.forEach(async (action) => {
Copy link
Member

Choose a reason for hiding this comment

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

It will not work, because .forEach doesn't await inner func. You should use for of or any another loop and await all promises. Currently sort may work incorrect

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

Copy link
Member

@BykhovDenis BykhovDenis left a comment

Choose a reason for hiding this comment

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

Please fix this getCardActions(client).then((result) => { result.forEach(async (action) => {

Signed-off-by: Anna No <anna.no@xored.com>
@annano annano requested a review from BykhovDenis April 7, 2022 15:10
@haiodo haiodo merged commit a1e557a into main Apr 8, 2022
@haiodo haiodo deleted the feature-1265 branch April 8, 2022 03:08
budaeva pushed a commit that referenced this pull request Apr 13, 2022
Signed-off-by: Anna No <anna.no@xored.com>
Signed-off-by: budaeva <irina.budaeva@xored.com>
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.

3 participants