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

[No-Jira] Upgrade Apollo Server 4 #1242

Merged
merged 12 commits into from
Jan 9, 2025
Merged

Conversation

caleballdrin
Copy link
Contributor

Description

Upgrade to Apollo Server 4

Checklist:

  • I have given my PR a title with the format "MPDX-(JIRA#) (summary sentence max 80 chars)"
  • I have applied the appropriate labels. (Add the label "On Staging" to get the branch automatically merged into staging.)
  • I have requested a review from another person on the project

@caleballdrin caleballdrin self-assigned this Dec 19, 2024
@caleballdrin caleballdrin added the Preview Environment Add this label to create an Amplify Preview label Dec 19, 2024
@caleballdrin caleballdrin changed the title Upgrade Apollo Server 4 [No-Jira] Upgrade Apollo Server 4 Dec 19, 2024
Copy link
Contributor

Preview branch generated at https://upgrade-apollo-server-v4.d3dytjb8adxkk5.amplifyapp.com

Copy link
Contributor

github-actions bot commented Dec 19, 2024

Bundle sizes [mpdx-react]

Compared against 21a6276

No significant changes found

Copy link
Contributor

@dr-bizz dr-bizz left a comment

Choose a reason for hiding this comment

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

Thank you for being willing to take this on! This needed to happen.
We should wait to push this live until the new year when everyone is back. I would hate for people to be called away from family to fix an error.

On a quick review, you should remove the old packages. They're also comments in the graphql-rest.page.ts page that are related to these packages, which need to be removed.

apollo-server-micro
apollo-datasource-rest

You could use the depcheck NPM package to find others that aren't used.

Copy link
Contributor

@canac canac left a comment

Choose a reason for hiding this comment

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

This looks pretty good in my basic testing! In addition to removing the packages Daniel mentioned, you also need to run yarn and commit the changes it makes.

pages/api/graphql-rest.page.ts Outdated Show resolved Hide resolved
pages/api/graphql-rest.page.ts Outdated Show resolved Hide resolved
pages/api/graphql-rest.page.ts Outdated Show resolved Hide resolved
@canac
Copy link
Contributor

canac commented Dec 20, 2024

On a quick review, you should remove the old packages.

apollo-server-micro apollo-datasource-rest

You could use the depcheck NPM package to find others that aren't used.

You should also be able to remove micro because it is a peer dependency of apollo-server-micro and won't be needed after removing apollo-server-micro.

@caleballdrin
Copy link
Contributor Author

you also need to run yarn and commit the changes it makes.

@canac I ran yarn and there aren't any changes to commit.

@caleballdrin caleballdrin requested review from dr-bizz and canac January 2, 2025 23:35
Copy link
Contributor

@dr-bizz dr-bizz left a comment

Choose a reason for hiding this comment

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

This is looking Great! I've reviewed some of the delete requests and they are working.

Thank you for removing the old dependencies and upgrading Apollo.

pages/api/graphql-rest.page.ts Outdated Show resolved Hide resolved
@dr-bizz
Copy link
Contributor

dr-bizz commented Jan 6, 2025

I would also wait to get Caleb's review, and then when you deploy it, ensure you are around for the following 4-6 hours to ensure nothing breaks.

Copy link
Contributor

@canac canac left a comment

Choose a reason for hiding this comment

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

I'm not seeing the warnings anymore in the console. Great work with this!

@caleballdrin caleballdrin force-pushed the upgrade-apollo-server-v4 branch from 3918291 to 2f08704 Compare January 8, 2025 18:41
package.json Outdated Show resolved Hide resolved
@caleballdrin caleballdrin force-pushed the upgrade-apollo-server-v4 branch from 2f08704 to 3c94d91 Compare January 8, 2025 19:12
@canac
Copy link
Contributor

canac commented Jan 8, 2025

This is good to go as far as I'm concerned!

@caleballdrin caleballdrin force-pushed the upgrade-apollo-server-v4 branch from 1a5dd7c to fa7974a Compare January 8, 2025 23:41
@caleballdrin caleballdrin merged commit ff0441a into main Jan 9, 2025
19 checks passed
@caleballdrin caleballdrin deleted the upgrade-apollo-server-v4 branch January 9, 2025 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Preview Environment Add this label to create an Amplify Preview
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants