OpenUpSA/wazimap-ng

The profile admin should be able to choose which attributes will be visible in the point tooltip

Opened this issue · 0 comments

As an Admin I want to select which attributes are visible on a tooltip

Issue

https://trello.com/c/sPXiFLMN/588-the-profile-admin-should-be-able-to-choose-which-attributes-will-be-visible-in-the-point-tooltip

MVP

For a Profile Collections in the Admin interface I have a JSON field where I list all the attributes.

The result should be in the api/v1/profile/<profile-id>/points/themes/ endpoint.

The serializer is this one:

class ProfileCategorySerializer(serializers.ModelSerializer):

  • test for the serializer before the change
  • test for the serializer after the change.
  • test for the model

2nd Phase (if possible)

I want so select which attributes from the locations for that Collection.
Display all the data keys from the Collection Locations and let the admin select which to show
Use the same JSON field for the API.

In some cases not all attributes are relevant - in the screenshot you will see a lot of information, not all is needed for a particular location