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

[js-repo-migration] Address affected PRs #141

Open
19 of 27 tasks
abernix opened this issue Sep 10, 2020 · 0 comments
Open
19 of 27 tasks

[js-repo-migration] Address affected PRs #141

abernix opened this issue Sep 10, 2020 · 0 comments
Assignees

Comments

@abernix
Copy link
Member

abernix commented Sep 10, 2020

Follows up: #134

As noted in #134, we'll need to bring PRs over from the apollo-server repository that, if approved and merged, would need to land here in this federation repository since the code will no longer exist in the apollo-server repository.

I will help usher these over using some git-foo, but there might be some asks of contributors to re-open their PRs on this repository. I will try to make that as painless as possible and take on the additional burden myself as necessary to make sure the contributions are not lost. Of course, we will still need to review those PRs and determine if they're aligned with the project roadmap and direction, but I hope that conversation can continue - mainly - on this new home for federation-related concerns.

Affected PRs

This is the list from #134, and this copy should become the source for tracking the progress. I am including the details about how I acquired this list originally here for completeness.

I queried all PRs (on the apollo-server repository) affected by the move executed in #134 using a query against the GitHub API (hidden in the expando here for brevity reasons; expand at your own curiosity).

The GraphQL query and the `jq` filter to run on its results

Please note there are two pages to this list, but only 100 can be fetched at a time. Use the connections cursor to get the next page.

Query

{
  prSearch: search(type: ISSUE, first: 100, query: "repo:apollographql/apollo-server is:pr is:open") {
    issueCount
    edges {
      node {
        ... on PullRequest {
          id
          number
          title
          url
          changedFiles
          files(first: 100) {
            pageInfo {
              startCursor
              hasNextPage
            }
            nodes {
              ... on PullRequestChangedFile {
                path
              }
            }
          }
        }
      }
    }
  }
}

jq filter on the results (both pages of them, separately)

cat output_of_above |
  jq '
    [
      .data.prSearch.edges[].node |
      select(
        .files.nodes[].path |
        test("apollo-(gateway|federation)")
      ) |
      { url, title }
    ] |
    unique_by(.url)
  '

Running that query yields the following candidates for review. Again, some of these are worth addressing in the near term and some of them might not be aligned with our current roadmap and could wait until later (or might need to be re-applied in Rust as the query planner itself is now written in Rust).

Needs further action (not closed yet)

Keep checking in on (closed on AS, make sure they get re-opened here.)

Already re-landed

Not re-landing / resolved otherwise

Affected, but not important to address directly (dependency updates only)

These are just dependency updates. Since we have Dependabot on this repository now, these should get re-opened by a similar process over here in federation-land. (Worth noting, however, that both of these needed special handling. On the plus side, it's great they can be handled outside of the scope of the Apollo Server repository where we needed to wait until Apollo Server 3.0 to bump them!)

Therefore, I've marked these as done (e.g., [x]), intentionally.

Assignees: @abernix

@abernix abernix self-assigned this Sep 10, 2020
@abernix abernix changed the title [JS repo migration]: Address affected PRs [js-repo-migration] Address affected PRs Sep 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant