RFC: state entities, replace globalKey() with .Tag().String()

Dimiter Naydenov dimiter.naydenov at canonical.com
Wed Sep 24 07:51:31 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 24.09.2014 10:46, Tim Penhey wrote:
> On 24/09/14 19:39, Dimiter Naydenov wrote:
>> I'm not opposed to replacing global keys with tags in state, but
>> using only simple _id fields in all collections is impractical in
>> certain cases.
> 
> Don't get me wrong, I'm not suggesting changing the _id fields to
> be more simple.  I understand that they are needed for the watchers
> (at the moment).
> 
> I fact, the _id fields are getting more complex as we prepend the 
> environment uuid to it.  However we are also adding a normal field
> for the EnvUUID so it can be easily queried against.
> 
> Tim
> 

+1, this sounds good to me!

- -- 
Dimiter Naydenov <dimiter.naydenov at canonical.com>
juju-core team
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJUIngDAAoJENzxV2TbLzHwcwAH/iGJbsaVRQcF326W+R+1JIA/
Hlzo/srbTXulrI029aw8JYjIhXnzvlzvYpaOZvE9trdH1izr0lcSd/m3kcJIv4Bq
bXCNZDJlSrudV6E3DQKqBSWyCM7HRUEUa498MGcNBkmPxgQwwdFddV62YCyqT4R7
T/pgU5/cNrh73QL6C0xoFJOy9NL5LXYHM8cURBB2RmhSuHj7I8QUk3+/DRxL/Tc5
cIjzjhj6t6Y5DOtvgsXJK4Hx3DsaOSw04lyW+hWvy5PfZPk6Lj4VJFYfhHx93SMG
RF3ObX2ArF26m2insrv6S2du9adyoh2OGZA9CeCyDKE9BOtvy4zW7ljH25EvlJQ=
=995A
-----END PGP SIGNATURE-----



More information about the Juju-dev mailing list