Skip to content

Reset and Import for GroupsPreferences#14572

Merged
calixtus merged 18 commits into
JabRef:mainfrom
Shreyasdone:fix-for-issue-14408
Dec 12, 2025
Merged

Reset and Import for GroupsPreferences#14572
calixtus merged 18 commits into
JabRef:mainfrom
Shreyasdone:fix-for-issue-14408

Conversation

@Shreyasdone

@Shreyasdone Shreyasdone commented Dec 11, 2025

Copy link
Copy Markdown
Contributor

Closes #14408

Mandatory checks

  • I own the copyright of the code submitted and I license it under the MIT license
  • [/] I manually tested my changes in running JabRef (always required)
  • [/] I added JUnit tests for changes (if applicable)
  • [/] I added screenshots in the PR description (if change is visible to the user)
  • [/] I described the change in CHANGELOG.md in a way that is understandable for the average user (if change is visible to the user)
  • I checked the user documentation: Is the information available and up to date? If not, I created an issue at https://github.com/JabRef/user-documentation/issues or, even better, I submitted a pull request updating file(s) in https://github.com/JabRef/user-documentation/tree/main/en.

@github-actions github-actions Bot added the status: changes-required Pull requests that are not yet complete label Dec 11, 2025
@github-actions github-actions Bot removed the status: changes-required Pull requests that are not yet complete label Dec 11, 2025
@Shreyasdone

Copy link
Copy Markdown
Contributor Author

Hi @calixtus can you please review and merge my pr?

@calixtus

Copy link
Copy Markdown
Member

I think you forgot to remove the default values from the defaults map.

@koppor koppor added the status: changes-required Pull requests that are not yet complete label Dec 12, 2025

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please undo changes here

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have please check there are no actual changes

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you tell what is the change that i need to undo here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a new line that i removed?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did it using GitHub UI.

you needed to use the file from main - git checkout main -- ...path... would be the solution.

Comment thread CHANGELOG.md Outdated
@github-actions github-actions Bot added status: changes-required Pull requests that are not yet complete and removed status: changes-required Pull requests that are not yet complete labels Dec 12, 2025
@JabRef JabRef deleted a comment from jabref-machine Dec 12, 2025
Comment on lines +49 to +54
false,
false,
false,
false,
false,
GroupHierarchyType.INDEPENDENT

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where are the comments?

OK, maybe, you did not see, but I really wonder

Screenshot from the issue decsription

image

@github-actions github-actions Bot removed the status: changes-required Pull requests that are not yet complete label Dec 12, 2025
@koppor koppor added the status: changes-required Pull requests that are not yet complete label Dec 12, 2025
koppor
koppor previously requested changes Dec 12, 2025
Comment on lines +49 to +54
true, // Default view mode intersection
true, // Default view mode filter
false, // Default view mode invert
true, // Default auto assign group
true, // Default display group content
GroupHierarchyType.INDEPENDENT // Default hierarchical context

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why the indent is off

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is was because of intelij's feature of displaying the variables name before the value its because of that sorry let me correct it

@github-actions github-actions Bot removed the status: changes-required Pull requests that are not yet complete label Dec 12, 2025
@Shreyasdone

Copy link
Copy Markdown
Contributor Author

Hi @calixtus, @koppor kindly review the PR

@calixtus calixtus changed the title Refactor GroupsPreferences to support default constructor and setAll method. Reset and Import for GroupsPreferences Dec 12, 2025
@github-actions github-actions Bot added the good first issue An issue intended for project-newcomers. Varies in difficulty. label Dec 12, 2025
@calixtus calixtus enabled auto-merge December 12, 2025 23:18
@calixtus calixtus added this pull request to the merge queue Dec 12, 2025
Merged via the queue into JabRef:main with commit bcc19bb Dec 12, 2025
57 checks passed
Siedlerchr added a commit that referenced this pull request Dec 14, 2025
* upstream/main: (23 commits)
  Chore(deps): Bump org.mockito:mockito-core in /jablib (#14611)
  Chore(deps): Bump actions/download-artifact from 6 to 7 (#14605)
  Chore(deps): Bump com.squareup.okio:okio-jvm in /versions (#14613)
  Chore(deps): Bump DavidAnson/markdownlint-cli2-action from 21 to 22 (#14607)
  Chore(deps): Bump org.mockito:mockito-core in /versions (#14615)
  New translations jabref_en.properties (Italian) (#14596)
  Reset and Import for GroupsPreferences (#14572)
  Enable parallel tests (#14571)
  Copy over label in all cases
  Also allow adding label
  Fix workflow (#14586)
  Unassign issues on stale (#14585)
  Increase max assignments from 1 to 2
  Reduce time for initial PR to 14 days (#14580)
  New Crowdin updates (#14579)
  chore(deps): update dependency org.eclipse.jgit:org.eclipse.jgit.pgm to v7.5.0.202512021534-r (#14577)
  Fix stale closing
  Try to fix commenting on closed PRs
  Add 15 non-standard BibLaTeX entry types with .withType() method (#14534)
  New Crowdin updates (#14570)
  ...
Siva-Sai22 pushed a commit to Siva-Sai22/jabref that referenced this pull request Dec 19, 2025
* Added all the necessary methods to both files

* Remove newlines

Removed unnecessary line break in preference loading method.

* Refactor GroupsPreferences to support default constructor and setAll method.

* Remove closing component tag from Project.xml

* Fix formatting in Project.xml code style settings

* Fix code scheme closing tag in Project.xml

* Fix missing newline at end of Project.xml

* Fix missing newline at end of Project.xml

* Removed unnecessary lines

* Discard changes to .idea/codeStyles/Project.xml

* Removed Default values for the Map

* Added Comments to GroupsPreferences. Corrected formatting in JabRefCliPreferences

* Format constructor parameters for readability

* Change GroupsPreferences constructor to private

---------

Co-authored-by: Carl Christian Snethlage <50491877+calixtus@users.noreply.github.com>
Co-authored-by: Oliver Kopp <kopp.dev@gmail.com>
@Shreyasdone Shreyasdone deleted the fix-for-issue-14408 branch December 20, 2025 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: preferences good first issue An issue intended for project-newcomers. Varies in difficulty.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable resetting of GroupsPreferences

3 participants