Skip to content

coprocessor: Disable validation of data field inside GraphQL response #7732

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

Draft
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

IvanGoncharov
Copy link
Member


Checklist

Complete the checklist (and note appropriate exceptions) before the PR is marked ready-for-review.

  • PR description explains the motivation for the change and relevant context for reviewing
  • PR description links appropriate GitHub/Jira tickets (creating when necessary)
  • Changeset is included for user-facing changes
  • Changes are compatible1
  • Documentation2 completed
  • Performance impact assessed and acceptable
  • Metrics and logs are added3 and documented
  • Tests added and passing4
    • Unit tests
    • Integration tests
    • Manual tests, as necessary

Exceptions

Note any exceptions here

Notes

Footnotes

  1. It may be appropriate to bring upcoming changes to the attention of other (impacted) groups. Please endeavour to do this before seeking PR approval. The mechanism for doing this will vary considerably, so use your judgement as to how and when to do this.

  2. Configuration is an important part of many changes. Where applicable please try to document configuration examples.

  3. A lot of (if not most) features benefit from built-in observability and debug-level logs. Please read this guidance on metrics best-practices.

  4. Tick whichever testing boxes are applicable. If you are adding Manual Tests, please document the manual testing (extensively) in the Exceptions.

Copy link
Contributor

@IvanGoncharov, please consider creating a changeset entry in /.changesets/. These instructions describe the process and tooling.

@IvanGoncharov IvanGoncharov force-pushed the i1g/fix_subscription_data_validation branch from e58cb2e to 64cb551 Compare June 19, 2025 22:03
@apollo-librarian
Copy link

apollo-librarian bot commented Jun 19, 2025

✅ Docs preview has no changes

The preview was not built because there were no changes.

Build ID: 105145fe785740b0dddb694f


// FIXME(@IvanGoncharov): This function shouldn't exist, we should always validate `data` field
// At the moment, Router has many places that return empty object as a GraphQL Response so I temporary created a function that bypass this validation.
pub(crate) fn from_value_without_validating_data_field(
Copy link
Member Author

Choose a reason for hiding this comment

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

Here is the core change: I moved data validation into "proper" function and made a "workaround" function without this validation.

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.

1 participant