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

[MIG] [16.0] base_graphql #323

Merged
merged 3 commits into from
Jan 16, 2023
Merged

[MIG] [16.0] base_graphql #323

merged 3 commits into from
Jan 16, 2023

Conversation

rconjour
Copy link

@rconjour rconjour commented Jan 3, 2023

[MIG] [16.0] base_graphql

@paulius-sladkevicius
Copy link

As I'm keen to see it in the v16, could be worth to ping @sbidoul :-)

Copy link
Member

@sbidoul sbidoul left a comment

Choose a reason for hiding this comment

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

Thanks for working on this @rconjour !

@@ -77,7 +61,7 @@ def _process_request(self, schema, data):
return response
except HttpQueryError as e:
result = json_encode({"errors": [{"message": str(e)}]})
headers = dict(e.headers)
headers = dict()
Copy link
Member

Choose a reason for hiding this comment

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

Why this change?

Copy link
Author

Choose a reason for hiding this comment

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

The HttpQueryError does not contain any headers anymore

Copy link
Member

Choose a reason for hiding this comment

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

I still see it here, though. And this does not seem to have changed recently.

.pre-commit-config.yaml Show resolved Hide resolved
@sbidoul
Copy link
Member

sbidoul commented Jan 4, 2023

Hm, dear bot, why did you not notify me about this PR, since I'm a maintainer of the migrated module?

@sbidoul
Copy link
Member

sbidoul commented Jan 4, 2023

/ocabot migration graphql_base

@OCA-git-bot OCA-git-bot added this to the 16.0 milestone Jan 4, 2023
@OCA-git-bot OCA-git-bot mentioned this pull request Jan 4, 2023
14 tasks
@sbidoul sbidoul mentioned this pull request Jan 4, 2023
@@ -77,7 +61,7 @@ def _process_request(self, schema, data):
return response
except HttpQueryError as e:
result = json_encode({"errors": [{"message": str(e)}]})
headers = dict(e.headers)
headers = dict()
Copy link
Member

Choose a reason for hiding this comment

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

Hm, it looks like e.headers can be None, so I suggest this:

Suggested change
headers = dict()
headers = dict(e.headers or {})

Copy link
Author

Choose a reason for hiding this comment

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

Done!

@sbidoul
Copy link
Member

sbidoul commented Jan 16, 2023

Thanks!

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 16.0-ocabot-merge-pr-323-by-sbidoul-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 5352bf8 into OCA:16.0 Jan 16, 2023
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 14d1e69. Thanks a lot for contributing to OCA. ❤️

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.

4 participants