jangerhard / jangerhard/react-github-showcase
Feature - Support for organizations
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- JavaScript
- Star
- 2
- Fork
- 2
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
**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}) {
...
```
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- graphql, javascript, react
- Lĩnh vực
- api, frontend
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100