HSLdevcom / HSLdevcom/digitransit-ui

Where is the main graphQL component/fragment?

Open
#4,770 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
267
Forks
145
Avg merge
1d 15h
Merged PRs (30d)
75

Description

I need some help on data fetching...
My goal is to update the GraphQL structures to add some fields in the query so that I
can read new data added from OTP to Digitransit. I can't understand where is the 'main' graphQL/fragment because there are so many JS with fragments/relay and don't know the relations between all these to mod the code.
Any suggestions? I tried to set many breakpoints in Chromes inspector but it goes too deep in the libraries and you don't understand the sequence of the callstack. Can someone help me? Thanks in advance!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the JavaScript GraphQL fragments and Relay relationships mentioned in the issue, rather than relying on browser breakpoints. Identify the main query or fragment used for the relevant data, then confirm which fields must be added to expose the new OTP data.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, javascript
Domain
api, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.