Closed fingeririna closed 1 year ago
Example for the new sort item. Data on INT at 2022.09.28, unkown sort is applied, used for the AC2 example list:
If the user return from the detail view of an ad the last sort criteria should be used att refresh or when the last sort page was showing up results.
This is a new request documented by Daniel and Asida in the meeting at 11th oct 2022.
Sereno, 23.12.2022: Testing done, test document done, Test passed / ok
Story: As a user I want to sort search resalts by price or posted time in order to get increasing or dekreasing list of ads according search criteria.
DoR:
Acceptance criteria:
[x] AC1: Dropdown with following sort criteria is available on the page with search results: EN: Highest price, Lowest price, Most recent, Oldest (most reduced). --> DGU: place is also a sort criteria for sort up/down direction DE: Teuerste, Günstigste, Älteste, Neueste, Ort alphab aufsteigend, Ort albabeb absteigend
[ ] AC2: Default: most recent. --> DGU changed at 2022.09.28: the default today is unknown. The default ist place ascending This is the default value for initial show results. Example with data of 2022.09.28 on INT environment (picture is placed in the comments): All ad in order Geneve Genf Kreuzlingen Solothurn Thusis Worblaufen
[x] AC3: Sort by the highest price show the ad with highest price as a first one and futher decreasing to the ad with lowest price (for request "max rent" should be use, no value = 0)
[x] AC4: Sort by the lowest price show the ad with lowest price as a first one and futher increasing to the ad with highest price
[x] AC5: Sort by the most recent show the last published (newest) ad as a first one and futher decreasing to the ad a latest publish date
[x] AC6: Sort by the oldest show at latest point of time published ad as a first one and futher increasing to the last published ad (newest)
[x] AC7: When the user setting "language" is german, then the elements in the dropdown list are titled in german vs. when english then titled in english.
DoD:
Check how the fields for search and creation are added to the forms - subcategory_field, field and field_options tables in the database(maybe add a sortable column and sortable_options?).