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

Bugfix/Enable editing of labels with shortcut keys #396



Copy link

c-w commented Oct 11, 2019

As reported in #379, it's currently not possible to edit a label that has a shortcut key set. This is because in the LabelSerializer we're checking if any other label has the same prefix or suffix key as the serialized label:

However, if we're editing a label and not changing its prefix or suffix key, the check will always retrieve the currently edited label as a conflict. The solution to this problem implemented in this pull request is to exclude the currently edited label from the check.

Resolves #379

@c-w c-w force-pushed the CatalystCode:bugfix/edit-label-with-shortcut branch 2 times, most recently from 1a466a3 to f195929 Oct 11, 2019
@c-w c-w force-pushed the CatalystCode:bugfix/edit-label-with-shortcut branch from f195929 to 8222ea6 Oct 19, 2019
@Hironsan Hironsan merged commit 34dfe21 into doccano:master Oct 29, 2019
2 checks passed
2 checks passed
Codacy/PR Quality Review Up to standards. A positive pull request.
Travis CI - Pull Request Build Passed
@c-w c-w deleted the CatalystCode:bugfix/edit-label-with-shortcut branch Oct 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.