improve-imported-entries#14999
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
User description
I converted "imported entries" to all lower case - and at some files, I had two groups
This PR fixes that by being case-insensitive when checking for precense.
This refs #14998
Steps to test
Mandatory checks
CHANGELOG.mdin a way that is understandable for the average user (if change is visible to the user)PR Type
Bug fix, Enhancement
Description
Make "Imported entries" group detection case-insensitive
Improve whitespace handling in group name validation
Prevent duplicate groups with different casing
Diagram Walkthrough
File Walkthrough
ImportHandler.java
Make group name comparison case-insensitivejabgui/src/main/java/org/jabref/gui/externalfiles/ImportHandler.java
equals()toequalsIgnoreCase()when comparing group namescase differences
GroupTreeViewModel.java
Case-insensitive group existence checkjabgui/src/main/java/org/jabref/gui/groups/GroupTreeViewModel.java
equals()toequalsIgnoreCase()when checking group existencedifferent casing
WebSearchTabViewModel.java
Improve whitespace handling in group namesjabgui/src/main/java/org/jabref/gui/preferences/websearch/WebSearchTabViewModel.java
trim().isEmpty()instead of checking forleading spaces
trim()to group name before storing to normalize whitespaceCHANGELOG.md
Document case-insensitive group checkingCHANGELOG.md