-
Notifications
You must be signed in to change notification settings - Fork 1
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
[Data Object Editor] Quantity value endpoints tag handling #598
Comments
part of #566 |
@markus-moser I do not get what you mean? Tag in what context? These methods are calling convert method from the core service, same as in the classic UI. |
@lukmzig It's about the tags in the schema: We should change it for the GET request to something different and remove it for the post requests to something different as otherwise the POST requests invalidates the GET request although the data does not change. |
Are you invalidating the tags for all POST requests?? then we can change the convert requests to GET ... tags are for us only for the categorization, if you are using them for different purposes please share this information in the future .... |
@lukmzig "We" do not do this, this is the default behaviour of RTK query for all endpoints. As the API is generated out of the schema RTK handles it like this by default. If it is hard to solve this on your side then let's override the API in the frontend and enrich the tag logic there, that's fine. I would not change it to a POST. |
Convert endpoints are already a POST request right? So then we should rather change the convert requests to GET so we avoid any overriding. We can still use a separate tag as well. |
@lukmzig Yes, in general |
@markus-moser the method type really depends on what it does in the system. If you change something on the server it is POST or PUT. We should not change this solely based on some implementation details in FE, since Studio Backend can be used without FE too. |
@mattamon I agree, but the convert endpoints do not change anything. So it's not a implementation detail in the frontend. |
@markus-moser its changed now, please adapt the route in FE accordingly |
@lukmzig Thanks, I updated in the FE and it works well now 👍 |
The text was updated successfully, but these errors were encountered: