On 19 July 2013 18:19, GESCONSULTOR - Óscar Bou <[email protected]>wrote:

>
>
> Despite clicking on "Administration - install demo fixtures", no fixtures
> seem to be loaded into the database. The log does not show any insert.
>  Despite that, I was able to create some entities and I've tested that. Not
> sure if I've done something wrong or is there something not commiting,
> flushing, etc.
>
>
Thanks for noticing that; fixed that this morning, and committed.

If you look at the fixtures, you'll see that some of them are composite, eg
[1], [2].  For reasons that are too boring to describe, these should be
installed using FixturesInstallerDelegate (see [3], also [2]).  But to use
it outside of the initial bootstrapping, one must use the "withOverride()"
method.  This was missing.

(The reason I hadn't noticed is that always run in-memory with the Eclipse
launch script [4] that automatically loads fixtures during boostrapping,
[4]).



> Just some notes taken while testing related to behavior:
>
>
> Thanks for these notes, all valid.  As I say there's still plenty more to
do.

The reason that this stuff is to some extent unfinished is that we mostly
put the data in either using fixtures or using a migration script.  Jeroen
has been working on the migration of the existing data from the very
beginning, and he uses the Restful Objects viewer to call the methods in
the Api service [5].  So quite a lot of the CRUD behaviour is only
partially implemented; the main bit that is fully implemented is the core
"calculation engine" of invoices from Lease/LeaseItem/LeaseTerms.

Cheers
Dan



> Assets - New Property
>         • Area, City and Country are required fields and are the creation
> action does not have them as parameters, so they are created in an
> inconsistent state. As no Countries have been installed by the fixture, no
> further changes can be made on the Asset fields.
>         • On Person, when clicking on the "Add Registration" action the
> action dialog does not appear. Seems there's just a page refresh.
>         • Lock action seems to not prevent from editing.
>
> Other - New Charge:
>         • The action parameter has no name.
>
> Accounts:
>         • There is no "New Accounts" action on the main menu. Despite they
> can be created from each Party, perhaps it will be interesting to have a
> menu option also.
>
>
> Regards,
>
> Oscar
>
>

[1]
https://github.com/estatio/estatio/blob/master/fixture/src/main/java/org/estatio/fixture/EstatioFixture.java
[2]
https://github.com/estatio/estatio/blob/master/fixture/src/main/java/org/estatio/fixture/EstatioRefDataObjectsFixture.java
[3]
https://github.com/estatio/estatio/blob/master/webapp/src/main/java/org/estatio/webapp/services/admin/EstatioAdministrationService.java
[4]
https://github.com/estatio/estatio/blob/master/webapp/ide/eclipse/launch/estatio-webapp-with-jdo-fixtures.launch
[5]
https://github.com/estatio/estatio/blob/master/dom/src/main/java/org/estatio/api/Api.java

Reply via email to