I agree with Andrey. It should be saved as part of the project. It
doesn't make any sense to have a project-specific piece of information
stored in preferences. If you copy your project to another machine,
you lose the information. If you delete the project, the information
remains in preferences even though the project is gone.
You should mark it as ignored if you don't want to put it in your SCM
or if the noise bothers you.
On Thu, Dec 3, 2009 at 9:03 AM, Andrus Adamchik <andru..bjectstyle.org> wrote:
> I agree with the premise, but I had bad experience with other ORM tools
> years ago that would save the layout together with the project, and then a
> single unintended mouse move results in making the project "dirty" and
> creates an underlying SCM change. IMO that was a distraction and created
> constant commit noise.
>
> So essentially managing a pretty layout is a parallel task to the main task
> of creating a model, and I don't want it to become a distraction. So maybe
> we can make it a project property (persist-layout: true|false (default))? If
> true, it will store the XML together with the project, if false, it will
> store it in local preferences?
>
> Andrus
>
>
> On Dec 3, 2009, at 3:47 PM, Andrey Razumovsky wrote:
>>
>> 2009/12/3 Andrus Adamchik <andru..bjectstyle.org>
>>
>>>
>>> On Dec 3, 2009, at 3:31 PM, Andrus Adamchik wrote:
>>>
>>> * saving graphs info as <domain_name>.graph.xml (and restoring). Note
>>> that
>>>>>
>>>>> this file will not be used in classic Cayenne runtime
>>>>>
>>>>
>>> I think this can be tied to preferences and saved in ~/.cayenne/. Saving
>>> it
>>> in the project tree has SCM implications.
>>>
>>>
>> I thought of that..
>> Lets take your example. You've got an enormous project, so no layout can
>> place entities without intersections. You spend half a day to organize it
>> well.. Then what? How can other members of the team see your changes? It
>> is
>> even better when graph is in SCM - it is not a big file, and allows
>> everyone
>> to see it. Graph file is XML, so SVN should merge it correctly. The only
>> thing you need is exclude it from packaged version of your project (if you
>> want).
>>
>> At last resort you can add graph files to something like svn:ignore
>
>
This archive was generated by hypermail 2.0.0 : Thu Dec 03 2009 - 09:23:43 EST