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

Modify/Add phrase message and the modification failed phrase should not be removed. #75

Closed
alwayschoco opened this issue Mar 16, 2016 · 1 comment · Fixed by #149
Closed

Comments

@alwayschoco
Copy link

When I modify a existing phrase, the message shows "Add new phrase successful" rather than "Modify a phrase successful" .

I add a new phrase 耶(一ㄝ)
e

And then I modify it to 一ㄝˋ, but the message above shows "Add new phrase 耶(一ㄝˋ) successful" .
r

I think it should be some modify message like "Modify phrase 耶(一ㄝ) to 耶(一ㄝˋ) successful" because I didn't add any new phrase into phrase list.

Besides, if Add failed, the message should be "Add new phrase 耶(一ㄝ) failed" while if Modification failed, the message should be "Modify phrase 耶(一ㄝ) to 耶(一ㄝˋ) failed" instead of "Remove 1 phrase successful", and the original phrase before modification should not be removed. (in this example , the phrase 耶(一ㄝ) should exists in list)

@alwayschoco alwayschoco changed the title Modify phrase message Modify/Add phrase message and the modification failed phrase should not be removed. Mar 17, 2016
@david50407
Copy link
Member

Because we are re-using add and remove function in modify implementation, see #109 (comment) .
But you're right, it shouldn't remove the old phrase while failing add new phrase.

jeffreyhc pushed a commit to jeffreyhc/chewing-editor that referenced this issue Mar 26, 2016
The phrase can be preserved when the "add" step in "modify" is failed.
jeffreyhc pushed a commit to jeffreyhc/chewing-editor that referenced this issue Mar 26, 2016
The phrase can be preserved when the "add" step in "modify" is failed.

After a new phrase is added, the selection of the original phrase in
chewing-editor seems to be reset, then the remove() in UserphaseView
will lost the remove target.
So I check the modified phrase add to the database successfully or not,
If the adding is fail, then re-add the original phrase.

Resolves: chewing#75
See also: chewing#109
jeffreyhc pushed a commit to jeffreyhc/chewing-editor that referenced this issue Mar 27, 2016
The phrase can be preserved when the "add" step in "modify" is failed.

After a new phrase is added, the selection of the original phrase in
chewing-editor seems to be reset, then the remove() in UserphaseView
will lost the remove target.
So I check the modified phrase add to the database successfully or not,
If the adding is fail, then re-add the original phrase.

Resolves: chewing#75
See also: chewing#109
jeffreyhc pushed a commit to jeffreyhc/chewing-editor that referenced this issue Mar 28, 2016
The phrase can be preserved when the "add" step in "modify" is failed.

After a new phrase is added, the selection of the original phrase in
chewing-editor seems to be reset, then the remove() in UserphaseView
will lost the remove target.
So I check the modified phrase add to the database successfully or not,
If the adding is fail, then re-add the original phrase.

Resolves: chewing#75
See also: chewing#109
jeffreyhc pushed a commit to jeffreyhc/chewing-editor that referenced this issue Apr 1, 2016
The phrase can be preserved when the "add" step in "modify" is failed.

After a new phrase is added, the selection of the original phrase in
chewing-editor seems to be reset, then the remove() in UserphaseView
will lost the remove target.
So I check the modified phrase add to the database successfully or not,
If the adding is fail, then re-add the original phrase.

Resolves: chewing#75
See also: chewing#109
jeffreyhc pushed a commit to jeffreyhc/chewing-editor that referenced this issue Apr 4, 2016
The phrase can be preserved when the "add" step in "modify" is failed.

After a new phrase is added, the selection of the original phrase in
chewing-editor seems to be reset, then the remove() in UserphaseView
will lost the remove target.
So I check the modified phrase add to the database successfully or not,
If the adding is fail, then re-add the original phrase.

Resolves: chewing#75
See also: chewing#109
jeffreyhc pushed a commit to jeffreyhc/chewing-editor that referenced this issue Apr 9, 2016
Close chewing#75

The phrase can be preserved when the "add" step in "modify" is failed.
After a new phrase is added, the selection of the original phrase in
chewing-editor seems to be reset, then the remove() in UserphaseView
will lost the remove target.
So I check the modified phrase add to the database successfully or not,
If the adding is fail, then re-add the original phrase.

See also: chewing#109
jeffreyhc pushed a commit to jeffreyhc/chewing-editor that referenced this issue Apr 9, 2016
Close chewing#75

The phrase can be preserved when the "add" step in "modify" is failed.
After a new phrase is added, the selection of the original phrase in
chewing-editor seems to be reset, then the remove() in UserphaseView
will lost the remove target.
So I check the modified phrase add to the database successfully or not,
If the adding is fail, then re-add the original phrase.

See also: chewing#109
jeffreyhc pushed a commit to jeffreyhc/chewing-editor that referenced this issue Apr 9, 2016
Close chewing#75
The phrase can be preserved when the "add" step in "modify" is failed.
After a new phrase is added, the selection of the original phrase in
chewing-editor seems to be reset, then the remove() in UserphaseView
will lost the remove target.
So I check the modified phrase add to the database successfully or not,
If the adding is fail, then re-add the original phrase.
See also: chewing#109
jeffreyhc pushed a commit to jeffreyhc/chewing-editor that referenced this issue Apr 9, 2016
Close chewing#75
The phrase can be preserved when the "add" step in "modify" is failed.
After a new phrase is added, the selection of the original phrase in
chewing-editor seems to be reset, then the remove() in UserphaseView
will lost the remove target.
So I check the modified phrase add to the database successfully or not,
If the adding is fail, then re-add the original phrase.
See also: chewing#109
jeffreyhc pushed a commit to jeffreyhc/chewing-editor that referenced this issue Apr 10, 2016
Close chewing#75
The phrase can be preserved when the "add" step in "modify" is failed.
After a new phrase is added, the selection of the original phrase in
chewing-editor seems to be reset, then the remove() in UserphaseView
will lost the remove target.
So I check the modified phrase add to the database successfully or not,
If the adding is fail, then re-add the original phrase.
See also: chewing#109
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 a pull request may close this issue.

2 participants