Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: display pledged groups on hub map in separate layer #127

Merged
merged 1 commit into from
Sep 30, 2024

Conversation

joaquimds
Copy link

@joaquimds joaquimds commented Sep 16, 2024

Description

Splits out group pledges into a separate data source, so they can be displayed
separately on the map.

Motivation and Context

https://linear.app/commonknowledge/issue/CC-197/display-group-pledge-sign-ups-on-the-map

How Can It Be Tested?

  1. Create a new AirTable for the group pledges. Make sure it has the following columns:
  • EMAIL
  • POSTCODE
  • FNAME
  • LNAME
  • GROUP_NAME
  • GROUP_URL
  • GROUP_SOCIAL
  • HEARD_FROM
  • MAP_CONSENT
  1. Create a new data source for this AirTable. Set up the mappings:
  • POSTCODE => postcode
  • GROUP_NAME => title
  • GROUP_URL => publicUrl
  • GROUP_SOCIAL => socialUrl
  • MAP_CONSENT => can display point
  • EMAIL => email

How Will This Be Deployed?

Standard deployment, then a new data source will need to be set up for Climate Coalition.

In the database, this data source will need can_display_details_publicly and can_display_points_publicly set to true:

UPDATE hub_externaldatasource SET can_display_details_publicly=True, can_display_points_publicly=True
  WHERE id='the-new-data-source-id'

and added to the Hub Data config in wagtail:

  {
    "id": "the-new-data-source-id",
    "name": "Groups",
    "type": "groups",
    "source": "the-new-data-source-id",
    "geom_field": "point",
    "icon_image": "tcc-canvassing"
  }

Finally, the Member Form block in puck will need its settings updated. The Group Data Source needs to be set to the new data source that has just been created above ^.

@commonknowledge-bot commonknowledge-bot requested a deployment to feat/display-pledged-groups-on-hub - meep-database PR #127 September 16, 2024 18:23 — with Render Abandoned
@joaquimds joaquimds force-pushed the feat/display-pledged-groups-on-hub branch from 1e0f4b2 to f2e2d09 Compare September 16, 2024 18:27
@joaquimds joaquimds merged commit af1a528 into main Sep 30, 2024
2 of 3 checks passed
@joaquimds joaquimds deleted the feat/display-pledged-groups-on-hub branch September 30, 2024 13:26
Copy link

sentry-io bot commented Sep 30, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

Did you find this useful? React with a 👍 or 👎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants