Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Add model(s) to persist embed config #1299

Closed
jwalgran opened this issue Apr 1, 2021 · 0 comments
Closed

Add model(s) to persist embed config #1299

jwalgran opened this issue Apr 1, 2021 · 0 comments
Assignees
Labels
task 004 Enable contributors to embed a map displaying only the facilities with which they are associated in
Milestone

Comments

@jwalgran
Copy link
Contributor

jwalgran commented Apr 1, 2021

Overview

The embed config is complex and will grow over time as we add features. Rather than serialize to the query string, store the config in the database and link it to the contributor.

Describe the solution you'd like

  • Add EmbedConfig
    • Add nullable embed_config OneToOne FK to the Contributor model.
    • Fields
      • Width, height strings
      • color string nullable
      • font string nullable
      • show other contributor information bool default false
  • Add EmbedFields
    • unique_together on embedconfig id and order
    • FK to EmbedConfig
    • column_name string
    • display_name string
    • visible bool default false
    • order number
  • Add CRUD APIs for embed config
    • For EmbedFields delete all existing then create new rows for the updated list
    • Use as much automatic DRF functionality as possible
@jwalgran jwalgran added the task 004 Enable contributors to embed a map displaying only the facilities with which they are associated in label Apr 1, 2021
@TaiWilkin TaiWilkin self-assigned this Apr 5, 2021
@dboyer dboyer added this to the 2021 Q2 milestone Jul 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
task 004 Enable contributors to embed a map displaying only the facilities with which they are associated in
Projects
None yet
Development

No branches or pull requests

4 participants