-
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
Non published references are returned by DataSync and if included via IncludeReferences the uids are mixed up #42
Comments
Hi @idmedia-kaiser can you please share stack access or may be contenttype json and entry json |
@harshithad0703 Can you please provide your email address ? then we can give you stack access. |
here is my mail id: [email protected] |
I have sent you the invitation |
@Chaitrasaurav since it is sso enabled it is asking me to sign-in to sky |
Hi @idmedia-kaiser,
I fetched an entry via Postman where the reference field contains other entries. The response correctly included only the uid and _content_type_uid of both published and unpublished referenced entries. This is the expected behavior, as unpublished entries should be returned with reference metadata but not full content.
I then queried the same entry with includeReferences(). The response correctly included only published referenced entries with its data, and unpublished entries were excluded, as expected.
I performed the same query using DataSync (without includeReferences()) and received the expected result: both published and unpublished entries were returned with just their uid and _content_type_uid (reference metadata), without any mismatching.
Using includeReferences(), DataSync correctly returned only published entries with their data, excluding unpublished entries from the response. Please verify the webhook and its trigger condition to ensure it's set up correctly. Let me know if any further information or clarification is needed from my side! |
Could you please confirm if everything is working as expected on your end based on the checks performed? If the issue is still persisting, kindly provide more details so we can assist you further and close this issue. |
@harshithad0703 We have a call today to look into this in more details with your support team |
@harshithad0703 While reproducing this issue on localhost, I think the information shared here is not quite accurate. The issue actually does NOT happen if we use |
Closed see comment above. includeReferences() is working as expected and we will create a new issue for the include(["fields"]) function not working correctly |
Hi, we are facing another issue with DataSync which we already mentioned in #20 (comment)
We have a form content type with a reference field for fields
https://app.contentstack.com/#!/stack/blt81b4b787a1850697/content-type/form/de-de/entry/blt0e8af3662cf665b0/edit?branch=main
Some of those references are not published. If we check in the DEV Tool widget we correctly don't get this fields back that are not published.
https://cdn.contentstack.io/v3/content_types/form/entries/blt0e8af3662cf665b0?api_key=blt81b4b787a1850697&access_token=&environment=development&locale=de-de
If we do the same request towards DataSync we also get the unpublished references back
DataSync Response
Even worse, if we use the "includeReferences" then the not published entries get mixed up with entries that are actually published and we get duplicated content
Please let us know if you need stack access
The text was updated successfully, but these errors were encountered: