jangerhard / jangerhard/react-github-showcase
Feature - Support for organizations
- Vorherrschende Sprache
- JavaScript
- Sterne
- 2
- Forks
- 2
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
**Describe the solution you'd like**
Support for organizations and not just users. Requires a different GraphQL call, but it is doable.
Requires a different prop when using the component, and therefore we risk that neither name nor organization is added, so adequate testing is needed.
**Additional context**
It should be very similar to existing call, except user is switched out with organization.
```
query someQuery($org: String!, $numRepositories: Int!, $numCommits: Int!) {
organization(login: $org){
repositories(first: $numRepositories, orderBy: {field: UPDATED_AT, direction: DESC}) {
...
```
Beitragsleitfaden
Rechercherichtung
Start by locating the existing user GraphQL call and the component prop that supplies the user, then compare it with the organization(login: $org) query shown here. Done means the component supports organizations as well as users and tests cover both inputs, including the case where neither name nor organization is provided.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- graphql, javascript, react
- Bereich
- api, frontend
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100