Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [orion-dev] Site Mappings FriendlyPath

I think you should drop this field or define that it must be equal to
the git Name field.

As it is there are too many fields that are kinda but not quite
identifiers. Id, Name, FriendlyPath, Location, ContentLocation.

Apparently the canonical ID is ContentLocation (sometimes spelled Location).

Given ContentLocation, you can look up the git record and pick Name for UI.

That means that Id is redundant and confusing or it can be derived by
algorithm from ContentLocation.

jjb

On Tue, Feb 14, 2012 at 9:40 AM, Mark Macdonald <mamacdon@xxxxxxxxx> wrote:
> No, you don't need to specify that field. It's for display only [1].
> I will update the docs.
>
>
> Mark
>
>
> [1] 'FriendlyPath' stores the workspace path being mapped with a
> user-readable project name (eg. "/Purple" rather than "/A"). Usually the
> readable name can just be looked up from the project ID, except when you've
> deleted a folder that used to be part of your site-- since the project no
> longer exists, you'd need the readable name to see that "/Purple" (not "/A")
> is missing. This case is, however, broken.
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=371520
>
> On Tue, Feb 14, 2012 at 12:27 AM, John J Barton
> <johnjbarton@xxxxxxxxxxxxxxx> wrote:
>>
>> In the debugger I can see one more field in the Site.Mapppings than is
>> documented:
>>   FriendlyPath: "/Purple"
>>
>> Do I need to specify it when adding a mapping? If yes, what does it mean?
>>
>> Thanks,
>> jjb
>> _______________________________________________
>> orion-dev mailing list
>> orion-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/orion-dev
>
>
>
> _______________________________________________
> orion-dev mailing list
> orion-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/orion-dev
>


Back to the top