-
Notifications
You must be signed in to change notification settings - Fork 23
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
feat(composition): add hint levels to output types #102
Comments
Btw, apollographql/federation#1683 has been committed to add a level to hints: it's either
Ideally, we'll also want to not print all of those by default. I'd even probably suggest that only errors gets shown, but that for other "hints" we simply show a single summary along the line of: The composition has <x> WARN, <y> INFO and <z> DEBUG messages. The details have been written to file `composition-message-200220408-2.md`. You can alternative --level=ALL to have them displayed here. But:
|
{yellow} HINT:
instead of {red} WARN:
in the federation-2 js we need to start returning the hint levels as part of our output |
…l#102) This cargo cults a lot of stuff from the `federation` repository, which has had this configuration in place for a long time now. Granted this does add a lot of lines, most of it is to account for our use of the query-planner written in Node.js within the Router. The additional jockery is to account for various learnings and differences between the operating systems, including how they have to have Node.js installed. Aside from also running on macOS and Windows, it has various other benefits that relate to our use cases: - Hoists the responsibility of toolchain stuff to CircleCI Orbs' Rust pkg - Pins the version of Node.js (and npm that we depend on for our query planner integration, rather than having them be whatever is within the CircleCI node variant of the Rust image. It's certainly possible that we'll want this in the code itself to facilitate developing on those environments, but I think it's too soon to invest heavily in having Node.js as a dependency for long-term. Closes apollographql#91 Closes apollographql#100 Co-authored-by: Jesse Rosenberger <[email protected]>
Composition hints in federation 2 are generated with a "level" (which can currently be one of of "DEBUG", "INFO" or "WARN"). This commit modify harmonizer to include those levels in the output and the type definitions to decode them, and include them in the `supergraph` output for future use by `rover`. Fixes apollographql#102
Took a stab at this in #200. I'm far from seasoned in rust so please be as harsh as you can on the code, I welcome the education. Assuming this get in at some point, that probably need to be followed up by a rover PR to integrate this in |
hints don't need to be addressed! they're helpful to have, but having them as warnings may push folks to want to fix/remove them. we should just call them hints instead and let people keep them around.
these warning prefixes can be found here
The text was updated successfully, but these errors were encountered: