jangerhard / jangerhard/react-github-showcase

Feature - Support for organizations

Ouverte
#18 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
enhancement
Langage dominant
JavaScript
Étoiles
2
Forks
2
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

**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}) {
...
```

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
graphql, javascript, react
Domaine
api, frontend
Type d'issue
Fonctionnalité
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.