-
-
Notifications
You must be signed in to change notification settings - Fork 210
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
[2.3 beta] Publish table no longer retains chosen column sorting #977
Comments
Inspecting this further, Symphony is persisting the value to the database. But seems to be getting muddled up somewhere. No idea what changed with this logic so not best placed to begin regression hunting, sorry! |
@nickdunn: does the following commit work for you? simoneeconomo@60aef93 |
Two regressions:
|
Right, when I updated the sorting logic I must have missed these things, sorry! May I ask if |
The previous behaviour was that
I still prefer old behaviour, keeping this out of the querystring. The UI should make this obvious enough. If it doesn't, this is a UI problem (I logged a bug saying the contrast of the selected column was not enough). I think it should be reverted to 2.2.5 behaviour. |
Fair enough, if that's not urgent I'll personally prepare a pull request by the end of this week. |
While having a query string gives visibility, it's really not useful to anyone as it uses the There's a couple of considerations for The
Which would be easy but... With our new approach to sorting, we don't have the equivalent columns in the database to remember a sort value which means that sorts won't persist across views (not pagination, I mean leaving the entries table and then returning to it later). I think this is poor UX, so we'll need to find a solution. One possible idea is to have a global sorting table that remembers the sort order for all of our sortable table views (Publish, Pages, Datasources, Events and Utilities now). A further improvement could be remembering the sort order on a per author basis. |
Why has sorting drastically changed, and why is there no longer a database column for this? Pretty sure I saw this in the beta, an integer changing in the sections table when I clicked the heading. What changed exactly? |
Reading your comment again, I presume the persisting of column sort was removed when the Ds/Events stuff was introduced, so that all views were the same? In which case I think the Sections functionality exactly as it was in 2.2 should be applied to the new views (clean urls, persistent column), rather than removing it from the existing sections views. |
I'm not sure about what @brendo meant with his comment, but the two columns called If you look at my commit, I'm using those columns to reintroduce the persistence of sorting options across sessions. |
…lement `unsort` functionality. RE: #977
Ok the above commit implements The URL's are still 'messy', and as @eKoeS said, making Sections persistent is easy because we have database columns. Datasource and events do not have such columns, and given our long term goal of moving schema into the filesystem (or at least given the option to choose), I don't think this will be possible. That said, I think we can make use of the config to store these values for Datasources and Events :) New keys, |
That's nice :)
In a future release it would be nice to move them to the filesystem as well. We have migrations for such a thing. :) |
Exactly :) |
So, if the goal is to switch back to 2.2.x behaviour, I can take care of this by:
|
Yep, thanks Simone :) |
Question: should these keys be created in the config file upon saving a new section or upon sorting its entries for the first time? |
I'd say sorting for the first time. If they don't exist when rendering the page then the default should be used (ID or date, desc). This keeps the config clean, only storing config if its's needed. |
Makes sense. Next question would be: if |
The only way to revert to the default is to apply |
Yes, that's what I would suggest too. |
…ymphony main config file)
Reopening for a reminder to drop the |
I am using the default workspace, viewing the Articles table.
Date
heading, Symphony correctly sortsThe main difference I noted is that in previous versions, clicking a column header would load the URL with the
?sort=...
parameter, and Symphony would then redirect back to the clean URL once the option had been persisted to the database. Ths redirect no longer occurs, and the choice is only active so long as thesort
param is in the URL. Once it is removed, the default sorting is used.So I don't think this is being persisted to the database any longer.
The text was updated successfully, but these errors were encountered: