Skip to content

In RHS, display whether there are linked pull requests to issues, and if there are linked issues for pull requests #271

Open

Description

@mickmister

It would be good to know when looking at Your Assignments if there is a submitted pull request that fixes an issue. That way the user can filter out issues that have already been addressed by an open pull request when looking at assigned tasks.

I'm not sure if this is something we already have access to given the requests we are making to GitHub's API. If this feature requires more API requests that we are not already making, I'm inclined to say this feature is not worth implementing.

Activity

  1. added
    Help Wanted
    Up For Grabs
    Good First Issue
    Type/Enhancement
    on May 14, 2020
  2. removed
    Up For Grabs
    on Jul 13, 2021
  3. sanjaydemansol commented on Jul 31, 2021

    @sanjaydemansol
    Contributor

    4/5, I think its not worth implementing, it will need additional API requests.
    We are fetching data from Link.
    We may get that data if assign same PR to current user, not doing that would lead to unexpected behavior.

  4. mickmister commented on Aug 2, 2021

    @mickmister
    ContributorAuthor

    @sanjaydemansol Thanks for looking into the issue. Do you think this would be feasible using the GraphQL service being used in this PR #404?

  5. sanjaydemansol commented on Aug 26, 2021

    @sanjaydemansol
    Contributor

    Yeah, it should be, in GraphQL. I will look into that.

  6. sanjaydemansol commented on Dec 27, 2021

    @sanjaydemansol
    Contributor

    Hi @mickmister , I looked into it. 2/5 It is possible via Graphql.
    Here is an example I have prepared where, we have fetched title to referenced PR.

    {
      search(first: 3, type: ISSUE, query: "user:sanjaydemansol is:open") {
        issueCount
        pageInfo {
          hasNextPage
          endCursor
        }
        edges {
          node {
            ... on Issue {
              createdAt
              title
              url
              number
              timelineItems(last: 2) {
                edges {
                  node {
                    ... on ConnectedEvent {
                      subject {
                        ... on PullRequest {
                          title
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
    
  7. hanzei commented on Jan 4, 2022

    @hanzei
    Contributor

    @sanjaydemansol The query doesn't quite seem right. E.g. it gives me https://github.com/hanzei/plugin-test/issues/3 as a result.

  8. hanzei commented on Jan 4, 2022

    @hanzei
    Contributor

    @sanjaydemansol If you want to get into graphql, wrapping up #404 might be a good starting point.

  9. mickmister commented on Jan 10, 2022

    @mickmister
    ContributorAuthor

    @sanjaydemansol If you want to get into graphql, wrapping up #404 might be a good starting point.

    @hanzei Yes that PR should probably be merged before any other work is using GraphQL, as the PR introduces a robust checking of the plugin settings etc. to construct the GraphQL queries properly.

    We should only implement and maintain one solution to GraphQL, so 2/5 it makes the most sense to complete and merge that PR first and foremost.

  10. added
    Up For Grabs
    on Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Difficulty/1:EasyGood First IssueHacktoberfestHelp WantedTech/GoTech/ReactJSType/EnhancementUp For Grabs

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions