-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
GraphQL: timezone inconsistent with REST API #7466
Comments
Here is an updated view of the issue and a link to the results on the demo site. NetBox versionv3.0.7 Python version3.8 Steps to Reproducegraphql query reproducible via https://demo.netbox.dev/graphql/#query=%7B%0A%20%20site_list(id%3A%20%2231%22)%20%7B%0A%20%20%20%20name%0A%20%20%20%20id%0A%20%20%20%20time_zone%0A%20%20%7D%0A%7D%0A
Expected Behavior
Observed Behavior
|
I found another:
In this case type is not matching the API. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Please see our contributing guide. |
I think some of the graphql response need to be formatted more inline with the REST responses. |
Why would it matter? The two are entirely independent APIs. GraphQL seems to like defining constants for choice fields, so I'm not sure this even qualifies as a bug. |
Not sure that its a bug, just a lack of parity given people moving from REST API to GraphQL will notice a lack of parity for items like this. We can reclassify this as a FR if you prefer. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Please see our contributing guide. |
The fact that the graphql api does not match the output of the ui and rest api is not ideal, but I get a sense it's not a priority or a good ROI. I'll retry to look into this a little more next week. |
I'm going to close this out both because no work has been done and because it will likely become moot per #9856. |
NetBox version
v3.0.5
Python version
3.7
Steps to Reproduce
Expected Behavior
GraphQL returns timezones as
AFRICA_LUBUMBASH
AMERICA_CAMPO_GRANDE
Observed Behavior
The RESTAPI returns timezones in format
Africa/Lubumbashi
America/Campo Grande
For backwards compatibility it would be useful to return the same format or at least provide an option to do so if possible.
The text was updated successfully, but these errors were encountered: