On Fri, 5 Jun 2020 at 02:31, Sam Ruby <ru...@intertwingly.net> wrote:
>
> On Thu, Jun 4, 2020 at 9:11 PM Craig Russell <apache....@gmail.com> wrote:
> >
> > On branch master:
> >
> > I've tested my own profile but looking at others like psteitz it doesn't 
> > look like everything is working.
> >
> > I found my own emeritus-requests-received and it looks fine.
> >
> > But the display is wrong for psteitz. There should be a display for 
> > Emeritus Reinstated. I might have mixed up a "-" and "_" again.
> >
> > Can someone take a look?
>
> https://github.com/apache/whimsy/blob/694e96b80ca07251b14ca61fb5e46d8a4e4e9d6b/lib/whimsy/asf/documents.rb#L111
>
> At line 113, name is "phil-steitz"
> At line 117, file is "phil-steitz-2012-05-24.txt"

I think this can be solved once the format of the disambiguating
suffix is agreed.
The matching algorithm can then strip the suffix when doing matching.

Alternatively, if duplicates are handled by using a directory, then
the suffices only need to be added when adding a second document.
In that case, the existing documents would need to have their suffixes removed.

Whilst using a directory to handle further docs is more work if a
subsequent document arrives, it does make it a bit easier to display
the docs as the server automatically provides the directory listing.

Maybe we should consider always using a directory per person?

There would still need to be a disambiguating suffix to handle
duplicates, but that could be added when the document is first filed.

> > Thanks,
> > Craig
> >
> > Craig L Russell
> > c...@apache.org
>
> - Sam Ruby

Reply via email to