-
Notifications
You must be signed in to change notification settings - Fork 132
feat: added support for degraphql_routes #1505
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1505 +/- ##
==========================================
- Coverage 29.29% 29.28% -0.02%
==========================================
Files 62 62
Lines 6637 6653 +16
==========================================
+ Hits 1944 1948 +4
- Misses 4554 4567 +13
+ Partials 139 138 -1 ☔ View full report in Codecov by Sentry. |
50db3e9
to
4bba336
Compare
@Prashansa-K a few comments:
While in decK the following is supported instead (notice
I see that something like this is not supported with
..I can see that decK makes a request with the following payload (notice
Instead, in this PR, I see that both ID and name are sent in the payload (this will break Konnect, other than being a change to the usual pattern):
|
@GGabriele I understand but at the time of designing, we opted out of nesting for beginning. The yaml format we decided was done in this way so that other custom-entities, when added, can adhere to the same format. We may think about adding the nesting support in the future. At the moment, the usage predicted for this is unclear. IIRC we only have verbal ask from one customer. So, it doesn't make sense to me to spend more time on adding nesting support.
We can still make this change. I will check them out on local. I will submit a separate PR in GDR for this then.
Yes, Konnect is breaking at the moment. I will see if I can strip down the name reference internally. |
For routes, we are stripping the service name reference, if it is present so as to make it compatible with Konnect APIs. |
|
d433f66
to
8d99be8
Compare
@harshadixit12 You can review the PR now. Support for Konnect is added as well, along with all necessary tests. Gabriele's comment about using a dictionary is incorporated too via the GDR update. The same is covered in tests too. |
@Prashansa-K few comments/questions I had -
|
We are enabling deck to allow customers to create degraphql_routes here. This is the final PR in order to add support to deck.
This is NA, as this feature is new and not released yet.
I didn't understand these two questions.
Good find. Could you file a bug on GDR? I will pick it up from there in the next round. It's a small fix. |
@Prashansa-K for 3, 4, if I follow the instructions in https://docs.konghq.com/hub/kong-inc/degraphql, and then create a dump - this is what it looks like.
If I compare that with If I make GET request to |
In the test-file, we are creating a global plugin. The steps you took from the doc is creating a service-scoped plugin. That's why, you don't see the |
Changes added:
degraphql_routes can be created via deck on Kong GW or Konnect.