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

chore: Upgrade apollo packages to prepare for gateway refactor #128

Merged
merged 24 commits into from
Jan 20, 2023

Conversation

martin-trajanovski
Copy link
Contributor

@martin-trajanovski martin-trajanovski commented Jan 4, 2023

Description

This PR is updating all the apollo packages to latest and moves the backend one step closer to upgrading gateway to version 2.

Motivation and Context

We were using quite old apollo packages and it is good to be up to date and improve functionality around it.

How Has This Been Tested

  • unit tests
  • e2e tests

Fixes

https://jira.esss.lu.se/browse/SWAP-2770

Changes

Changes are mainly fixes after updating apollo packages

@martin-trajanovski martin-trajanovski changed the title Upgrade apollo packages Upgrade apollo packages to prepare for gateway refactor Jan 5, 2023
@martin-trajanovski martin-trajanovski changed the title Upgrade apollo packages to prepare for gateway refactor [WIP]Upgrade apollo packages to prepare for gateway refactor Jan 5, 2023
@martin-trajanovski martin-trajanovski changed the title [WIP]Upgrade apollo packages to prepare for gateway refactor [WIP] Upgrade apollo packages to prepare for gateway refactor Jan 9, 2023
@martin-trajanovski martin-trajanovski changed the title [WIP] Upgrade apollo packages to prepare for gateway refactor Upgrade apollo packages to prepare for gateway refactor Jan 17, 2023
@martin-trajanovski martin-trajanovski changed the title Upgrade apollo packages to prepare for gateway refactor chore: Upgrade apollo packages to prepare for gateway refactor Jan 17, 2023
@martin-trajanovski martin-trajanovski marked this pull request as ready for review January 17, 2023 09:08
@martin-trajanovski martin-trajanovski requested a review from a team as a code owner January 17, 2023 09:08
@martin-trajanovski martin-trajanovski requested review from mutambaraf and jekabs-karklins and removed request for a team January 17, 2023 09:08
@martin-trajanovski martin-trajanovski self-assigned this Jan 17, 2023
});
import { GraphQLScalarType, Kind } from 'graphql';

export type AnswerType = number | string | Date | boolean | number[] | unknown;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is unknown needed here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is needed after update of graphql. Most probably they changed the types and here is the result https://github.com/graphql/graphql-js/blob/main/src/type/definition.ts#L545. It is a bit disappointing because now the AnswerType is considered as unknown and the other types doesn't make much sense anymore.

Copy link
Contributor

@mutambaraf mutambaraf left a comment

Choose a reason for hiding this comment

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

Besides removing commented code looks fine.

@martin-trajanovski martin-trajanovski enabled auto-merge (squash) January 20, 2023 15:21
@martin-trajanovski martin-trajanovski merged commit c40d218 into develop Jan 20, 2023
@martin-trajanovski martin-trajanovski deleted the SWAP-2770-upgrade-apollo-gateway branch January 20, 2023 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants