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

Fix strawberry-graphql union error. #1441

Merged
merged 5 commits into from
Jul 11, 2023
Merged

Conversation

rashidakanchwala
Copy link
Contributor

@rashidakanchwala rashidakanchwala commented Jul 11, 2023

Description

Strawberry-graphql made a recent change to the way it handles strawberry.union. This change is considered breaking because users who have the latest kedro-viz but haven't updated their strawberry-graphql package will encounter the following error:

TypeError: union() missing 1 required positional argument: 'types'

To fix this we have bumped strawberry-graphql dependency package to be at least version 0.192.

Development notes

QA notes

Checklist

  • Read the contributing guidelines
  • Opened this PR as a 'Draft Pull Request' if it is work-in-progress
  • Updated the documentation to reflect the code changes
  • Added new entries to the RELEASE.md file
  • Added tests to cover my changes

@tynandebold
Copy link
Member

Did we introduce this with a recent version bump or is it another issue stemming from the strawberry-graphql package?

@rashidakanchwala rashidakanchwala requested review from tynandebold and removed request for tynandebold and yetudada July 11, 2023 09:43
@rashidakanchwala
Copy link
Contributor Author

rashidakanchwala commented Jul 11, 2023

@tynandebold - yeah we upgraded mypy 1.0 and so unpinned the strawberry-version which was previously pinned to only 0.180 and lower. Also updated to the latest recommended way of doing strawberry.union in the previous PR due to strawberry-graphql deprecation warnings.

Copy link
Member

@astrojuanlu astrojuanlu left a comment

Choose a reason for hiding this comment

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

LGTM!

RELEASE.md Outdated Show resolved Hide resolved
@rashidakanchwala rashidakanchwala merged commit 234c29f into main Jul 11, 2023
Copy link
Member

@merelcht merelcht left a comment

Choose a reason for hiding this comment

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

LGTM!

@rashidakanchwala rashidakanchwala deleted the fix-strawberry-depss branch July 11, 2023 10:47
@rashidakanchwala rashidakanchwala mentioned this pull request Jul 12, 2023
5 tasks
rashidakanchwala added a commit that referenced this pull request Jul 12, 2023
It's a patch release to fix Kedro-viz backward compatibility issue with Kedro and also fix compatibility with strawberry-graphql. Below are release notes :

Bump strawberry-graphql to at least version 0.192 to support the new
strawberry.union syntax. (Fix strawberry-graphql union error.  #1441)
Resolve the incompatibility between Kedro-Viz and Kedro versions prior to 0.18.11. (Make Kedro-Viz compatible with previous Kedro with 'DataSet'  #1445)
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

Successfully merging this pull request may close these issues.

4 participants