Reordering collection of a collection in CP reverses order unexpectedly
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 30/100
Línea de trabajo
Start by reproducing the reported case: an orderable collection with descending direction and max depth 1. Trace the collection reorder flow from the CP list view into the reorder view; the issue does not name files or tests, so locate the relevant entry points in the project. Done means the order stays the same when opening reorder and after saving.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Bug description
A descending collection switches order to ascending when you click reorder and then switches back again on save.
This doesn't actually break the order but leads the user to think it's broken and is causing confusion.
A couple of clients has reported this and one user just spend time manually reversing and 100+ collection as they thought it had gone wrong!
I think this actually what is being described here by @DanielDarrenJones - although I can't see the Loom any more - it isn't just related to a dated collection as @duncanmcclean suggests.
The expected behaviour is the order should stay the same between the list view and reorder view.
How to reproduce
- Have a collection
- Make it orderable
- Set direction to
descending - Set max depth to 1 (not tested with other depths)
- Press
Reorderand the entires becomeascending - Press
Save Orderbecomedescending
Logs
Environment
Environment
Application Name: Foo
Laravel Version: 12.16.0
PHP Version: 8.3.22
Composer Version: 2.8.9
Environment: local
Debug Mode: ENABLED
URL: bm.test
Maintenance Mode: OFF
Timezone: UTC
Locale: en
Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED
Drivers
Broadcasting: log
Cache: file
Database: sqlite
Logs: stack / single
Mail: smtp
Queue: sync
Session: file
Storage
public/storage: NOT LINKED
Statamic
Addons: 0
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 5.56.0
Installation
Fresh statamic/statamic site via CLI
Additional details
No response
- Lenguaje dominante
- PHP
- Estrellas
- 4.9k
- Forks
- 647
- Merge medio
- 1 d 20 h
- PR fusionados (30 d)
- 113
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de statamic/cms
-
preferences
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Make native filesystem directory permissions configurable to support shared POSIX ACL accessAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
accessibility
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
[7.x] Reintroduce parser error for mixed pipe/shorthand modifier syntaxPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoantlers
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día
-
navigations
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
Todos los issues de statamic/cms
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
matomo-org/device-detector#8405 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día
-
sync-en
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
sync-en
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 4 días