Re: Proposed addition to code review guidelines

2016-07-25 Thread Menno Smits
+1. This seems like an obvious addition to the checklist.

On 20 July 2016 at 14:26, Tim Penhey  wrote:

> Hi folks,
>
> With model migration entering the world as a first class citizen, we need
> to ensure that all fields and documents added to state have appropriate
> migrations done for them.
>
> In particular when adding a field it is likely that the
> state/migrations_internal_test.go will have a failing test as it checks the
> public fields of the documents.
>
> We should add a code review check that ensures that no fields are added to
> that test without the appropriate additions to state/migration_export.go
> and state/migration_import.go otherwise it is just a lie, and the migration
> result will not reflect the new database state.
>
> Tim
>
> --
> Juju-dev mailing list
> Juju-dev@lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/juju-dev
>
-- 
Juju-dev mailing list
Juju-dev@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev


Proposed addition to code review guidelines

2016-07-19 Thread Tim Penhey

Hi folks,

With model migration entering the world as a first class citizen, we 
need to ensure that all fields and documents added to state have 
appropriate migrations done for them.


In particular when adding a field it is likely that the 
state/migrations_internal_test.go will have a failing test as it checks 
the public fields of the documents.


We should add a code review check that ensures that no fields are added 
to that test without the appropriate additions to 
state/migration_export.go and state/migration_import.go otherwise it is 
just a lie, and the migration result will not reflect the new database 
state.


Tim

--
Juju-dev mailing list
Juju-dev@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev