You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linked to #115 - The project owner relation is a polymorphic belongs_to (User & UserGroup). The serialised response returns the link to /owner which is not a valid URL.
We need to:
a) override the href in the serialiser
b) patch restpack-serializer to handle the polymorphic relations (RestPack/restpack_serializer#81)
c) Investigate porting to ActiveModelSerialisers, seems they handle polymorphic relations by default - @edpaget thoughts?
The text was updated successfully, but these errors were encountered:
@camallen I converted all our serializers to AMS in my branch https://github.com/edpaget/Panoptes/tree/ams. I'm not going to be working on it again until next week. There's a bunch of stuff that broke that I still need to resolve.
Linked to #115 - The project owner relation is a polymorphic belongs_to (User & UserGroup). The serialised response returns the link to
/owner
which is not a valid URL.We need to:
a) override the href in the serialiser
b) patch restpack-serializer to handle the polymorphic relations (RestPack/restpack_serializer#81)
c) Investigate porting to ActiveModelSerialisers, seems they handle polymorphic relations by default - @edpaget thoughts?
The text was updated successfully, but these errors were encountered: