-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add "create card instance" command #2180
Conversation
}, | ||
}, | ||
}; | ||
await this.cardService.createFromSerialized(doc.data, doc); |
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 should really be using the CardResource to make cards, not the CardService directly (it would be great if we could deprecate this so others don't fall into this trap). When you make a card with the CardService directly that means that the card will not be part of the identity map and will not receive live updates, as well as other realy bad side effects.
f577894
to
4cc0114
Compare
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.
Result of team review: hold off on this PR, review with @ef4
Open for comments regarding usage of card-resource in a command in this way to create a card. If this is not a good idea, maybe this PR is no longer relevant.