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

Recipes no more sorted by "id" by default on main window using 1.1.0rc2 #107

Open
pled opened this issue Jun 16, 2022 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@pled
Copy link

pled commented Jun 16, 2022

When using gourmand 1.0.0, on the main window, recipes are by default sorted by recipes id (although "id" column is not displayed).
Then you scan sort by alphabetical order clicking on title colum (there is an arrow on the right):
title

You have three choices and you can "loop" across them:

  • not sorted (which is sorted by "id" actually) (no arrow)
  • sorted in alphabetical ordrer (arrow)
  • sorted in reverse alphabetical order (arrow)

Now using 1.1.0rc2 version, the "not sorted" choice is no more managed as before.
title1

  • At startup, recipes are by default sorted alphabetically (with no arrow displayed)
  • Once you start clicking on title column, and when you are back to "not sorted" (ie no arrow displayed), it then keeps the reverse alphabetical order.

Steps to Reproduce

  1. Open main window
  2. Click on title column and observe recipes order displayed.
  3. There is no more "sorted by id" way to display recipes.

Expected Behavior

As title column has 3 states (sorted arrow down, sorted arrow up, not sorted), there should be 3 ways to sort recipes, and sorted by id is a good option for "not sorted" IMO.
With 1.1.0rc2, the "no arrow" display is not consistent : at startup it is alphabetical order, and once you "loop", it is reverse alphabetical order.

Current Behavior

With version 1.0.0, that was useful to have by default recipes sorted by id (even if this was not mentioned explicitly). That allows you to quickly move to latest recipes you have created.
With version 1.1.0rc2, this is no more possible, only alphabetical order is possible. A new recipe created is automatically sorted, which makes impossible to move to latest recipes, which was a useful option with previous versions.

Possible Solution

Either restore previous default order, or add an option in the below window to display "id" column, so that we can sort recipes based on "id".
Capture d’écran du 2022-06-16 11-32-50

Environment

  • Operating System: Ubuntu 22.04 or Debian 12 Bookworm
  • Version or commit id: 1.1.0rc2
  • Installed as Flatpak or Python package?: flatpak
@Zimbelstern
Copy link
Contributor

To be honest, I've never understood why the recipes were sorted by an invisible and in some way arbitrary property. I would prefer your suggestion to add the id column to the UI or – IMHO the more elegant solution – to introduce a property like the creation date or use last_modified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants