-
Notifications
You must be signed in to change notification settings - Fork 23
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
campaign.json updates #765
Comments
@JorgeMartinezG @localjo @Eleonore9 we can use this issue to ask questions or provide suggestions for other modifications |
How will we look up the display name from the osm_id? If that requires an ajax request, maybe we should store both in the json. Something like:
|
@localjo good catch. As discussed I think this can work even though username is editable, for now we will keep it static from the time the user is added. We can look at options to check for updates in future sprints |
I'm working on the new campaign creation flow, which depends on some of these changes. Have we started implementing any part of these changes yet in any of our branches? If I'm understanding correctly, this is what the relevant keys in campaign.json should look like;
The comments in this snippet have some questions that we'll need to discuss. |
The delete campaign function also expects "campaign_viewers": [
{ osm_id: "123456", name: "Jo Sprague" },
{ osm_id: "987654", name: "Russ Biggs" }
] |
I've added the |
Currently the fields we will need to add to campaign.json are
Updating
campaign_managers
key include osm_id instead of display nameAdd
campaign_viewers
for easier querying when deleting projectsadding
features
key which is an array of objects representing each feature type and their total feature count and complete feature count. This will be used to calculate feature completeness more efficientlye.g.:
adding a
contributors
key to track individual osm user for contributor list and detail pages. We will want to include team keys for these as wellThe text was updated successfully, but these errors were encountered: