-
Notifications
You must be signed in to change notification settings - Fork 0
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
How are deleted scalar fields (e.g. version
) represented in the "diff" data
#152
Comments
In GitLab by @stefanprobst on Jan 27, 2022, 12:05 btw. i think this is only an issue for the |
In GitLab by @tparkola on Jan 31, 2022, 14:16 @stefanprobst Because version field is optional, therefore can be null. All null values are omitted in the response its default application adopted settings. (basic/single values are omitted, but only array (more complex data structures) are send with null as first value. |
In GitLab by @stefanprobst on Jan 31, 2022, 14:51 so that means there is no way to judge by the response of the e.g. what does this mean:
|
In GitLab by @tparkola on Jan 31, 2022, 14:59 Yes, you are right. In case above you can't tell whether is null or the same. |
In GitLab by @stefanprobst on Jan 31, 2022, 16:19 maybe we can use explicit |
In GitLab by @tparkola on Feb 1, 2022, 10:33 @stefanprobst Yes, we can establish that omitted string will be read as no changes are made. I think this convention should also apply to sourceItemId and source as well. Even if null is set exlicityly, due to annotation, null fields in response will be omitted, therefore sugessted solution with omitted ot the-same string. Will it be suitable for frontend to make changes regarding this as well? |
In GitLab by @stefanprobst on Feb 1, 2022, 12:16 sounds great! 👍 editing source/sourceItemId is (at least currently) not exposed via frontend forms, but applying the convention there as well makes sense. |
In GitLab by @tparkola on Feb 1, 2022, 15:36 @stefanprobst The diff was modified, but I changed to |
In GitLab by @stefanprobst on Feb 2, 2022, 13:48 @tparkola thanks! quick question: does this apply to the |
In GitLab by @tparkola on Feb 2, 2022, 15:13 No, but it can be done as with source, the object will remain the same, if no changes will be made. So it wasn't mistaken with null value. |
In GitLab by @stefanprobst on Feb 2, 2022, 17:22 ok, so to make sure, are the following assumptions for non-array correct?:
|
In GitLab by @tparkola on Feb 3, 2022, 12:25
The main problem is with source and thumbnail. I am thinking about solution how to differentiate them. |
In GitLab by @stefanprobst on Feb 3, 2022, 12:50 about |
In GitLab by @tparkola on Feb 11, 2022, 12:37 I looked into dates, its the same case as with String value, therefor I propose variable |
In GitLab by @laureD19 on Jun 22, 2022, 11:27 I made a test on dev:
Would it be possible to include dates in the diff as well, or is it too complicated? |
In GitLab by @laureD19 on Jul 22, 2022, 11:45 same test on stage. |
Looking into this issue it seems to me, that backend already solved it (using the API endpoint for checking it): if dateCreated/dateLastUpdated has changed, you can see the new value in the diff So for this cases, @stefanprobst can you have a look if it is not implemented in frontend? Besides, I had a problem when I tried to approve an item where only dateCreated/dateLastUpdated was deleted. I get a 500 with the error message:
@tparkola That would be something to look into (I had no problem if the dates were changed, then approve worked but in the case of deleting them this error occurs). |
@KlausIllmayer could you please confirm the issue you mentioned in the backend still exists (500 error). I could not replicate this bug. If you could provide step by step description - that would be very much appreciated. Thanks. |
Same, I am not able to run the diff request at all even when authenticated. |
OK, could you please provide step by step instruction on how to get the error? and what is the request for the diff you are trying to execute? I need some more details to verify that. As mentioned before I did checks based on what Klaus described, but could not find any problems. |
In GitLab by @stefanprobst on Jan 27, 2022, 11:55
e.g. the following approved item has "NEW" as the value for the
version
field:there is also a suggested version of that item, which has the
version
field removed:when querying the diff:
the
version
field is omitted inresult.other
. it is currently unclear if this signifies that the field has been deleted, or that is is unchanged?for comparison, this suggested version did not change the
version
field (the value is still "NEW"), however, hereversion
is also omitted from the diff response:The text was updated successfully, but these errors were encountered: