jangerhard / jangerhard/react-github-showcase
Feature - Support for organizations
- 主要言語
- JavaScript
- スター
- 2
- フォーク
- 2
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
**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}) {
...
```
コントリビューションガイド
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- graphql, javascript, react
- 領域
- api, frontend
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100