Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graphql migration #453

Merged
merged 49 commits into from
Sep 12, 2020
Merged

Graphql migration #453

merged 49 commits into from
Sep 12, 2020

Conversation

JunWei96
Copy link
Contributor

In this PR:

  • Migrated fetch issue/issues api to use graphql.
  • Load time of 110 issues is around 3 seconds.
  • All the polling is done in background, so user will not face any load time during page navigation.

Limitation:

  • Comments are limited to the first 100. Should be fine for now, since we are not supporting commenting.

TODO after merged:

  • Configure dependabot to notify updates to octokit/graphql-schema.

Resolves #428
Resolves #427
Resolves #410

In this PR:
- Migrated fetch issue/issues api to use graphql.
- Load time of 110 issues is around 3 seconds.
- All the polling is done in background, so user will not face any load time during page navigation.
- Updated [developer notes](https://github.com/CATcher-org/CATcher/blob/6263a01fcb97356eb937d28e96a424011e5b2de0/docs/developer-notes.md) on setting up the project with graphql
Copy link
Contributor

@ptvrajsk ptvrajsk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested it with the 4 Phases and it works fine 👍

@anubh-v
Copy link
Contributor

anubh-v commented Sep 10, 2020

I've done a round of testing on the 4 phases, and no issues were identified

@anubh-v anubh-v self-requested a review September 12, 2020 02:54
@JunWei96 JunWei96 merged commit acd3568 into CATcher-org:master Sep 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[GraphQL] Migrate fetchIssue() [GraphQL] Migrate fetchIssues() Too many page reloads
3 participants