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

feature: customizable first sorting option #3309

Merged
merged 3 commits into from
Oct 7, 2024

Conversation

adrianthedev
Copy link
Collaborator

@adrianthedev adrianthedev commented Oct 5, 2024

Description

Fixes #3260

Me working on this feature:
https://www.loom.com/share/da337fcece7f42b9ab61d96a75e65df0

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works

Screenshots & recording

Manual review steps

  1. Enable the configuration with config.first_sorting_option = :asc in the intializer
  2. Got to the index view
  3. sort a column
  4. observe that the sequence is asc, desc, then reset

Manual reviewer: please leave a comment with output from the test if that's the case.

Copy link

codeclimate bot commented Oct 5, 2024

Code Climate has analyzed commit 8ad2c76 and detected 0 issues on this pull request.

View more on Code Climate.

@adrianthedev
Copy link
Collaborator Author

@Paul-Bob, please add tests 😅🙏

Copy link
Contributor

@Paul-Bob Paul-Bob left a comment

Choose a reason for hiding this comment

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

LGTM

@Paul-Bob
Copy link
Contributor

Paul-Bob commented Oct 7, 2024

@adrianthedev already added the tests

@Paul-Bob Paul-Bob assigned adrianthedev and unassigned Paul-Bob Oct 7, 2024
@adrianthedev
Copy link
Collaborator Author

Awesome! Thank you @Paul-Bob!

@adrianthedev adrianthedev merged commit fbecba9 into main Oct 7, 2024
22 checks passed
@adrianthedev adrianthedev deleted the feature/customizable-first-sorting-option branch October 7, 2024 21:49
Copy link
Contributor

github-actions bot commented Oct 7, 2024

This PR has been merged into main. The functionality will be available in the next release.

Please check the release guide for more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

default sort_direction ASC when clicking column
2 participants