Issue when creating and deleting via Squidex api.(allot of weird results on basic crud api endpoint)
1.When creating a document via api creates fine providing id (Create or Upsert)
2.When deleting record I get back a (204 no content) when i hit delete endpoint again same endpoint get back (410 gone) same endpoint works only on second request.
3.when doing a create document again via api (Create or Upsert) get back 200 or 201 (depending on create or upsert) but document does not get created checked on UI and did a get by id on api not result.
Tested on my own Squidex environment ( 5.7.1.0 recently upgraded to this version believe its causing the issue) but also created a project on cloud.squidex.io same issue. did test today 04 June 2020 10am
Example below (content being posted is irrelevant have issue regardless of schema)
Also having insert issues after upgrading to version 5.7.1.0 could not reproduce it.
But inserting record sometimes get back 409 conflict doing exactly the same create then inserts on second request
Please let me know what you find sure you will be able to reproduce the issue with a basic insert delete test
This is as intended. You could argue that the HTTP response code is wrong for the first version, but I have no plans to change that. Http 4XX are usually errors and why should deleting an item throw an error.
I will have a look to the other issues you mentioned.
Btw: Please format your code properly using code blocks.
Yeah its strange we have it on 2 different schemas but not on others going to see if I can reproduce with step by step example and provide you with details
doing same Upsert with id 1ab (event white space after 1 works)
api/content/roomammenaties/idtest/1ab?publish=true
{
“description”: {
“iv”: “asdasd”
}
}
Will see if I can provide you with the json schema for those rather large schemas just need to get details my side. But yeah same issue as example provided.
With regards to the UI issue so this also happens on random and only some documents.
Example main schema employee and another schema department .
Employee has a reference field schema with department.
create employee and then link the department via department id on api.(employee created and the id link for department)
When employee reference is set to dropdown some records dont have a selected value on content UI(Value is there from db/api point of view). When changing the employee reference to list on UI value appears(can confirm there is only 1 id department link to each employee )
Once again only some records have this behaviour and would prefer to have it as drop down from user working on UI point of view.
Yeah hard to explain cant send images on new account.
Basically if something has a relationship link and its set to list view it shows the value on Content UI if on dropdown does not show value on UI but link is on db. I can just set list min items size 1 and max items size 1 on Schema editing so not to worried about this issue other issues way more important i think. (issue only on some records )
Yeah the thing is it only has one item and drop down does not show value thats the issue. Only when I switch the view type to list it show the single value.(but yeah only happens on some records for some reason).
But like I said not the end of the world have ways around it.
Not being able to create records with id in issue example above and not being able to create records after it was deleted is main issue we are facing which basically stops us from using Squidex for our projects .
One reason could be the following: The dropdown only loads the first 100 results. If there are too more potential references and the selected id is not part of this loaded set then the selection is not shown. It is used to save API calls.