-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 confirmation for 'Copy to' with cross-reference status #12493
Conversation
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.
JUnit tests are failing. In the area "Some checks were not successful", locate "Tests / Unit tests (pull_request)" and click on "Details". This brings you to the test output.
You can then run these tests in IntelliJ to reproduce the failing tests locally. We offer a quick test running howto in the section Final build system checks in our setup guide.
@@ -61,8 +61,10 @@ public void execute() { | |||
|
|||
if (includeCrossReferences) { | |||
copyEntriesWithCrossRef(selectedEntries, targetDatabaseContext); | |||
dialogService.notify(Localization.lang("Entry copied successfully, including cross-reference.")); |
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.
Please change to "entries" and "references".
(Tip - Here is how I, as a newcomer, would gather context - selectedEntries
above is a list, and the name is plural as well. The function name also hints at the same. So it cannot be a single entry. I would go one level further and ctrl + click on the function to see what it's doing).
} else { | ||
copyEntriesWithoutCrossRef(selectedEntries, targetDatabaseContext); | ||
dialogService.notify(Localization.lang("Entry copied successfully, no cross-reference included.")); |
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.
Same as above
Entry\ copied\ successfully,\ including\ cross-reference.=Entry copied successfully, including cross-reference. | ||
Entry\ copied\ successfully,\ no\ cross-reference\ included.=Entry copied successfully, no cross-reference included. |
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.
Change accordingly. Also, change the second line to "...without cross-references."
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.
Thanks for the feedback! I will make sure to read functions carefully next time..
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.
JUnit tests are failing. In the area "Some checks were not successful", locate "Tests / Unit tests (pull_request)" and click on "Details". This brings you to the test output.
You can then run these tests in IntelliJ to reproduce the failing tests locally. We offer a quick test running howto in the section Final build system checks in our setup guide.
fixes #12486
Add confirmation message after using "Copy to" option, also show whether the cross-reference entry was copied or not.
Mandatory checks
CHANGELOG.md
described in a way that is understandable for the average user (if change is visible to the user)Copy to with cross-reference included
![bandicam 2025-02-12 15-19-03-300 - frame at 0m18s](https://private-user-images.githubusercontent.com/146931429/412450394-4294e696-9281-4a12-beb8-1bebb4268cc2.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5ODY2NDQsIm5iZiI6MTczOTk4NjM0NCwicGF0aCI6Ii8xNDY5MzE0MjkvNDEyNDUwMzk0LTQyOTRlNjk2LTkyODEtNGExMi1iZWI4LTFiZWJiNDI2OGNjMi5qcGc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxOVQxNzMyMjRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lMmZkMDBmMTJmYWE0MWY5N2JiZTRkMjc4YTkwZWFhZDNiNmM0NDNjZWJhMzk2MDRhYWEzMjA3NjZmOWZmNTRjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.jNTamHdKKCm4HcJQgFUqk2ON6LIXTRHYi0jVNy3_C2U)
![bandicam 2025-02-12 15-19-03-300 - frame at 0m8s](https://private-user-images.githubusercontent.com/146931429/412450898-5bd3a3a4-65a6-4883-9a57-f12d3120bd60.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5ODY2NDQsIm5iZiI6MTczOTk4NjM0NCwicGF0aCI6Ii8xNDY5MzE0MjkvNDEyNDUwODk4LTViZDNhM2E0LTY1YTYtNDg4My05YTU3LWYxMmQzMTIwYmQ2MC5qcGc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxOVQxNzMyMjRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lNDkyNmM1MWIzNWU5OTI1NzE0YjczZjNiYzNmODU3OTEzZjU2YWU2MjA3MTJiMDc1NTE1MTAwNzA3NzI2YzhkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.xIllSRCEDAFwPMuca2TxbgpkZDj55qyUXsxEMRYpiTs)
Copy to with cross-reference excluded