MLH-Fellowship / FellowshipWrapup

A showcase of all your work done during the MLH Fellowship
MIT License
6 stars 0 forks source link

Improved queries for 2.0 release #39

Closed IamCathal closed 4 years ago

IamCathal commented 4 years ago

Improved existing queries and added in a new one or two. Docs for the new endpoints can be found in schema.md or here. These changes will be breaking but the existing system is already breaking itself :)

After OAuth is setup we can work towards some more pod specific queries but for the moment this is what we can do

IamCathal commented 4 years ago

The pullrequests struct is meant to to show off your merged PRs with all details about them etc.

The mergedvsnonmergedprs is seperate as I wanted to keep it simple. To parse this on the frontend you can just iterate through all nodes and increcment a counter for merged and non merged to display the stats at the end like we had in V1. Below:

RepoContribs is a set (not a list because no repo comes up twice unlike pullrequests) of all repos contributed towards. It can be a nice stat/section to say I contributed to x projects and here they are with a card for each showing it's details

gmelodie commented 4 years ago

I guess these last discussions would be nice to have but are not mandatory (the functionality overall works). So I'll be merging this :)