Hello everyone,
I ran across an issue that caused me a little bit of a headache and I am not sure whether I ran into a bug or intended behavior.
I have been using the python api to add map annotations to user's images. I am using an admin account to do that, so the map annotations are 'owned' and linked by the service account. This seems okay, as the annotations are visible to the user even if the service account is not in their group. You can see how this looks for the public data at https://images.jax.org.
My problem is this--if I have map annotations linked to images, and these images are owned by a given user and one of their groups, when I then move those images (by moving their parent datasets and projects) to a different user and group, the map annotations become unlinked to the images. The map annotations themselves still appear in an hql query and show they are owned by the original, not the target, group.
For example, I had a project with several datasets that I moved to the Public user in the Public group by the CLI chown/chgrp. I just gave the Project ID and no additional options. Everything moved as I intended, the image descriptions and everything were unchanged, but the map annotations all disappeared (seemingly orphaned in the DB, so I just deleted them and re-annotated).
Is there a problem with my workflow? Are map annotations supposed to move along with Images when you move them to another user/group?