Re: Custom sortation for file browser

Lists: pgsql-www
From: Christophe Pettus <xof(at)thebuild(dot)com>
To: PostgreSQL WWW <pgsql-www(at)postgresql(dot)org>
Subject: Custom sortation for file browser
Date: 2017-10-05 17:02:28
Message-ID: 2A423A3F-0DF0-4822-821D-52E03BE7D05A@thebuild.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-www

We probably want some kind of custom sortation for the file browser page at /ftp/source/, so v10 is not the last entry...

--
-- Christophe Pettus
xof(at)thebuild(dot)com


From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Christophe Pettus <xof(at)thebuild(dot)com>
Cc: PostgreSQL WWW <pgsql-www(at)postgresql(dot)org>
Subject: Re: Custom sortation for file browser
Date: 2017-10-06 08:16:56
Message-ID: CABUevEyMH+gs=C1qc35EuThxhAEAXp948qcdOGUXMDQ2bNUVqA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-www

On Thu, Oct 5, 2017 at 7:02 PM, Christophe Pettus <xof(at)thebuild(dot)com> wrote:

> We probably want some kind of custom sortation for the file browser page
> at /ftp/source/, so v10 is not the last entry...
>

The file browser currently just sorts by filesystem order. I agree that it
probably wouldn't hurt to do something about that, but it affects other
directories as well (such as the binaries and the snapshots. Also a bunch
of directories in the repo subdirectories, but I'm not sure we care about
those), and they don't use the same naming conventions. So we need
something that's more flexible than a quick-fix (which is why this hasn't
already been done).

--
Magnus Hagander
Me: https://www.hagander.net/ <http://www.hagander.net/>
Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>


From: Stefan Kaltenbrunner <stefan(at)kaltenbrunner(dot)cc>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: Christophe Pettus <xof(at)thebuild(dot)com>, PostgreSQL WWW <pgsql-www(at)postgresql(dot)org>
Subject: Re: Custom sortation for file browser
Date: 2017-10-09 19:23:17
Message-ID: 193ddf45-9de6-f868-d1ea-7b874720dc64@kaltenbrunner.cc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-www

On 10/06/2017 10:16 AM, Magnus Hagander wrote:
>
>
> On Thu, Oct 5, 2017 at 7:02 PM, Christophe Pettus <xof(at)thebuild(dot)com
> <mailto:xof(at)thebuild(dot)com>> wrote:
>
> We probably want some kind of custom sortation for the file browser
> page at /ftp/source/
> </ftp/source/>, so v10 is not the last
> entry...
>
>
> The file browser currently just sorts by filesystem order. I agree that
> it probably wouldn't hurt to do something about that, but it affects
> other directories as well (such as the binaries and the snapshots. Also
> a bunch of directories in the repo subdirectories, but I'm not sure we
> care about those), and they don't use the same naming conventions. So we
> need something that's more flexible than a quick-fix (which is why this
> hasn't already been done).

this would also be much less of an issue (for the /source/ version at
least) if we didnt actually display 320+ different "versions" on the
same page, thats just insane :(
This would for example be much easier if we like had one-directory per
major version or even split into "current" and "historical/unsupported/..."

Stefan


From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Stefan Kaltenbrunner <stefan(at)kaltenbrunner(dot)cc>
Cc: Christophe Pettus <xof(at)thebuild(dot)com>, PostgreSQL WWW <pgsql-www(at)postgresql(dot)org>
Subject: Re: Custom sortation for file browser
Date: 2017-10-10 14:28:46
Message-ID: CABUevEz6+O5XRM4D9rheM0C_+jV1L76F+3zAxs+woRRrQ=2zRQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-www

On Mon, Oct 9, 2017 at 9:23 PM, Stefan Kaltenbrunner <
stefan(at)kaltenbrunner(dot)cc> wrote:

> On 10/06/2017 10:16 AM, Magnus Hagander wrote:
>
>>
>>
>> On Thu, Oct 5, 2017 at 7:02 PM, Christophe Pettus <xof(at)thebuild(dot)com
>> <mailto:xof(at)thebuild(dot)com>> wrote:
>>
>> We probably want some kind of custom sortation for the file browser
>> page at /ftp/source/
>> </ftp/source/>, so v10 is not the last
>> entry...
>>
>>
>> The file browser currently just sorts by filesystem order. I agree that
>> it probably wouldn't hurt to do something about that, but it affects other
>> directories as well (such as the binaries and the snapshots. Also a bunch
>> of directories in the repo subdirectories, but I'm not sure we care about
>> those), and they don't use the same naming conventions. So we need
>> something that's more flexible than a quick-fix (which is why this hasn't
>> already been done).
>>
>
> this would also be much less of an issue (for the /source/ version at
> least) if we didnt actually display 320+ different "versions" on the same
> page, thats just insane :(
> This would for example be much easier if we like had one-directory per
> major version or even split into "current" and "historical/unsupported/..."

That's true, but I'm not sure we can realistically change that now. There
are many people and systems with scripts that rely on that, AFAIK.

--
Magnus Hagander
Me: https://www.hagander.net/ <http://www.hagander.net/>
Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>


From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Stefan Kaltenbrunner <stefan(at)kaltenbrunner(dot)cc>
Cc: Christophe Pettus <xof(at)thebuild(dot)com>, PostgreSQL WWW <pgsql-www(at)postgresql(dot)org>
Subject: Re: Custom sortation for file browser
Date: 2017-10-13 13:58:23
Message-ID: CABUevEz4jM7cZA8u_bhj8N-b3a9FthrRL3f4W9DfZPA8NMGCbg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-www

On Tue, Oct 10, 2017 at 4:28 PM, Magnus Hagander <magnus(at)hagander(dot)net>
wrote:

>
>
> On Mon, Oct 9, 2017 at 9:23 PM, Stefan Kaltenbrunner <
> stefan(at)kaltenbrunner(dot)cc> wrote:
>
>> On 10/06/2017 10:16 AM, Magnus Hagander wrote:
>>
>>>
>>>
>>> On Thu, Oct 5, 2017 at 7:02 PM, Christophe Pettus <xof(at)thebuild(dot)com
>>> <mailto:xof(at)thebuild(dot)com>> wrote:
>>>
>>> We probably want some kind of custom sortation for the file browser
>>> page at /ftp/source/
>>> </ftp/source/>, so v10 is not the last
>>> entry...
>>>
>>>
>>> The file browser currently just sorts by filesystem order. I agree that
>>> it probably wouldn't hurt to do something about that, but it affects other
>>> directories as well (such as the binaries and the snapshots. Also a bunch
>>> of directories in the repo subdirectories, but I'm not sure we care about
>>> those), and they don't use the same naming conventions. So we need
>>> something that's more flexible than a quick-fix (which is why this hasn't
>>> already been done).
>>>
>>
>> this would also be much less of an issue (for the /source/ version at
>> least) if we didnt actually display 320+ different "versions" on the same
>> page, thats just insane :(
>> This would for example be much easier if we like had one-directory per
>> major version or even split into "current" and "historical/unsupported/..."
>
>
> That's true, but I'm not sure we can realistically change that now. There
> are many people and systems with scripts that rely on that, AFAIK.
>
>
Turns out there was already quite an ugly hack to deal with this, so I just
made it a bit more ugly. Once the caches expire I believe sorting should be
correct.

--
Magnus Hagander
Me: https://www.hagander.net/ <http://www.hagander.net/>
Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>