-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Meaningful button review field migration #3762
Conversation
panel, | ||
bibKeys + " " + | ||
Localization.lang("has/have both a 'Comment' and a 'Review' field.") + "\n" + | ||
Localization.lang("Since the 'Review' field was deprecated in JabRef 4.2, these two fields are about to be merged into the 'Comment' field.") + "\n" + | ||
Localization.lang("The conflicting fields of these entries will be merged into the 'Comment' field."), | ||
Localization.lang("Review Field Migration"), JOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE); | ||
Localization.lang("Review Field Migration"), JOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE, null, options, options[0]); |
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.
Maybe not a "Warning message", in fact it's an information message. The user can't do anything about it.
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.
Well, infact it's a bit more important than just a simple notification, but I'd be open if others agree with you I'ts gonna be changed.
@@ -20,7 +20,7 @@ public void performAction(BasePanel basePanel, ParserResult parserResult) { | |||
|
|||
migration.performMigration(parserResult); | |||
List<BibEntry> conflicts = MergeReviewIntoCommentMigration.collectConflicts(parserResult); | |||
if (new MergeReviewIntoCommentConfirmationDialog(basePanel).askUserForMerge(conflicts)) { | |||
if (!conflicts.isEmpty() && new MergeReviewIntoCommentConfirmationDialog(basePanel).askUserForMerge(conflicts)) { |
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.
I think, this makes it not better. Now, JabRef migrates WITHOUT ANY notification. The old way was better. It showed that something was migrated.
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.
Well, then lets discuss this again: The rationale behind #3658 was that the warning should be displayed iff there is BOTH a comment and and review field present and perform the migration silently nonetheless.
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.
I'm happy with the current solution (i.e., only show when fields are merged and use warning icon).
Oh, JabRef should inform that something happend. Otherwise, it is not
clear, why there is a star. JabRef currently does not have the power to
show what it has changed... This is strange in the case of save actions,
but this can be explained.
IMHO consistency in the UI is an important feature. In the case of pdf/ps
fields, we show a popup. I can agree that we do not support "no migration"
and prevent users of creating bibtex entries with "comment". However, the
tool itself should communicate that it changed the database!
…On Feb 21, 2018 7:40 PM, "Tobias Diez" ***@***.***> wrote:
***@***.**** approved this pull request.
I'm happy with the current solution (i.e., only show when fields are
merged and use warning icon).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3762 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABTafvyUW7Vdo8wSLxzL43f1zCrikmhlks5tXGMFgaJpZM4SN53y>
.
|
Fixes koppor#312.
Sorry, the PR quality of #3658 was really not so good.