Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdds location field to Group and SchoolActionStat types #263
Conversation
|
Looks good! |
| @@ -214,8 +214,10 @@ const typeDefs = gql` | |||
| goal: Int | |||
| "The group city." | |||
| city: String | |||
| "The group location." | |||
| location(format: LocationFormat = ISO_FORMAT): String | |||
This comment has been minimized.
This comment has been minimized.
DFurnes
Aug 3, 2020
Member
Right now, we handle this format argument on posts by deciding which Rogue property to return for this field. Since we don't have a locationName on stats (computed here for posts), we should probably omit this format argument.
This comment has been minimized.
This comment has been minimized.
DFurnes
Aug 3, 2020
Member
If we are planning to add that on the ActionStat resource in Rogue though, I'm fine to keep! (And, longer term, I wonder if this ISO-to-human conversion is something we can just handle in GraphQL for simplicity...)
This comment has been minimized.
This comment has been minimized.
aaronschachter
Aug 3, 2020
Author
Member
Thanks for catching this -- I'll remove. Didn't realize there was a location_name property at all, and then
ISO to human in GraphQL sounds like the way to go -- I figured that adding ISO support to schools would just be done within GraphQL so we don't have to alter our Great Schools import (which is simply just importing their raw data)
Co-authored-by: David Furnes <[email protected]>
aaronschachter commentedJul 31, 2020
•
edited
What's this PR do?
This pull request adds support for the
locationfields and filters added to the Group and ActionStat resources in DoSomething/rogue#1082.Example request:
Example response:
How should this be reviewed?
Any background context you want to provide?
We'll eventually drop the
statecolumn from thegroupstable once Rogue and Phoenix are updated to querylocationper the discussions in DoSomething/rogue#1079 (comment)Relevant tickets
References Pivotal #174021616.
Checklist