{"id":19723531,"url":"https://github.com/remind101/negapollo-ts-bug-squash","last_synced_at":"2026-06-09T04:31:53.472Z","repository":{"id":66329067,"uuid":"313676327","full_name":"remind101/negapollo-ts-bug-squash","owner":"remind101","description":null,"archived":false,"fork":false,"pushed_at":"2020-11-18T00:37:31.000Z","size":188,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":7,"default_branch":"fe-bug-squash","last_synced_at":"2025-02-28T00:55:30.326Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/remind101.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-17T16:22:24.000Z","updated_at":"2020-11-18T00:37:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"26560026-8431-404f-9408-57cc373c4e3b","html_url":"https://github.com/remind101/negapollo-ts-bug-squash","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/remind101/negapollo-ts-bug-squash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remind101%2Fnegapollo-ts-bug-squash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remind101%2Fnegapollo-ts-bug-squash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remind101%2Fnegapollo-ts-bug-squash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remind101%2Fnegapollo-ts-bug-squash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/remind101","download_url":"https://codeload.github.com/remind101/negapollo-ts-bug-squash/tar.gz/refs/heads/fe-bug-squash","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remind101%2Fnegapollo-ts-bug-squash/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34092253,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T23:22:31.577Z","updated_at":"2026-06-09T04:31:53.444Z","avatar_url":"https://github.com/remind101.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# r101-negapollo: TypeScript Bug Squash\n\n\u003cimg width=\"761\" alt=\"Screen Shot 2020-11-17 at 9 22 38 AM\" src=\"https://user-images.githubusercontent.com/5973981/99424742-e53bea00-28b6-11eb-9a81-34b0a9428345.png\"\u003e\n\n\n`r101-negapollo` is a proxy that routes all queries to `r101-apollo`, our GraphQL service, and makes a second request to a dark-launched query when needed. In this specific case, the dark launch query is made when the query string matches `nonV2ClassById`. `r101-negapollo` also has diffing logic to log if the responses of the current query and the dark-launched query were a match or a mismatch.\n\n### Example Use Case\nIf we wanted to make a change to make a query more performant, we could use `r101-negapollo` and its diffing functionality to ensure that our new query worked as expected and returned the exact same data as our old query - without actually rolling it out and running the risk of returning bad data to our users.\n\n# Your Goal: Squash The Bug!\n\n\u003c TBD - More details about the bug go here \u003e\n\n### Getting Started\n1. Install the dependencies and run the dev server.\n```\nyarn install \u0026\u0026 yarn dev\n```\n\n2. Install [httpie](https://httpie.io/docs#installation). If you have `homebrew`, you can run the following:\n```\nbrew install httpie\n````\n\n3. Go to https://www.classchirp.com and log in with the credentials provided by your interviewer. Make note of your auth token and CSRF token. :sparkles:\n\n4. Make your first request!\n\n```\n# The class ID in this request is correct for the account we've set up!\n\nhttp -v POST http://localhost:8081/graphql 'Cookie:auth_token=\u003cINSERT_AUTH_TOKEN_HERE\u003e;csrf_token=\u003cINSERT_CSRF_TOKEN_HERE\u003e;\nclient_uuid=8b3eab46-deba-4f11-aa3f-9f7f78f8398c' Accept-Encoding:text x-csrf-token:\u003cINSERT_CSRF_TOKEN_HERE\u003e\nquery=\"query=\"{ nonV2ClassById(id: 242461) { className, classCode, joinUrl } }\"\"\n```\n\n5. Check the server logs. As long as you see \u003c TBD - desired log line \u003e, you're good to go - happy bug squashing! :bug: :beetle:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremind101%2Fnegapollo-ts-bug-squash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fremind101%2Fnegapollo-ts-bug-squash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremind101%2Fnegapollo-ts-bug-squash/lists"}