Title: Include_draft not working/or not as expected · Issue #40 · contentstack/contentstack-ruby · GitHub
Open Graph Title: Include_draft not working/or not as expected · Issue #40 · contentstack/contentstack-ruby
X Title: Include_draft not working/or not as expected · Issue #40 · contentstack/contentstack-ruby
Description: Hi, I like to query for unpublished entries. I'm aware that this is probably not an issue that relates to the contentstack-ruby sdk and would expect the include_draft method ( See here ) to deliver such entires. It does not. To me an unp...
Open Graph Description: Hi, I like to query for unpublished entries. I'm aware that this is probably not an issue that relates to the contentstack-ruby sdk and would expect the include_draft method ( See here ) to deliver...
X Description: Hi, I like to query for unpublished entries. I'm aware that this is probably not an issue that relates to the contentstack-ruby sdk and would expect the include_draft method ( See here ) to del...
Opengraph URL: https://github.com/contentstack/contentstack-ruby/issues/40
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Include_draft not working/or not as expected","articleBody":"Hi,\r\nI like to query for unpublished entries.\r\n\r\nI'm aware that this is probably not an issue that relates to the contentstack-ruby sdk and would expect the` include_draft` method ( See [here](https://www.rubydoc.info/gems/contentstack/Contentstack/Query#include_draft-instance_method) ) to deliver such entires. It does not. To me an unpublished entry constitutes a draft. Am I wrong? \r\n\r\nDo we need to use the content management API to retrieve those? \r\n\r\n[Here](https://www.contentstack.com/docs/developers/apis/content-delivery-api#authentication) it says:\r\n\"\r\nNote: We have deprecated the usage of Access Tokens for all stacks. We strongly recommend that you use [Delivery Tokens](https://www.contentstack.com/docs/developers/create-tokens/about-delivery-tokens) for fetching published content via the Content Delivery API and [Management Tokens](https://www.contentstack.com/docs/developers/create-tokens/about-management-tokens) for fetching draft content via the Content Management API.\r\n\"\r\nEither way: if drafts are not working or a unpublished entry is not a draft, it would be good to add some explaination. \r\n\r\nThx.\r\n","author":{"url":"https://github.com/SyborgStudios","@type":"Person","name":"SyborgStudios"},"datePublished":"2024-05-17T08:54:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/40/contentstack-ruby/issues/40"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8db75faf-ddb0-8703-9e88-fc95d433fe29 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E286:2EA89:1F5B61B:2857A54:697E2402 |
| html-safe-nonce | 79e43f118f8660c25bbf8361d5d860325906094d2aa2788cb66cdfe714880a4a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjg2OjJFQTg5OjFGNUI2MUI6Mjg1N0E1NDo2OTdFMjQwMiIsInZpc2l0b3JfaWQiOiIzMjQ3MDg4Njg4Nzg5NTk1MTM4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0aa7b15f3bdf1e49251a9134565bf35422ab41cf178c47df3476055602b529d3 |
| hovercard-subject-tag | issue:2302174102 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/contentstack/contentstack-ruby/40/issue_layout |
| twitter:image | https://opengraph.githubassets.com/162128d5264a6683d55a5c52777cf66092f8f5bc3b8e0b6356030bfbdc02710a/contentstack/contentstack-ruby/issues/40 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/162128d5264a6683d55a5c52777cf66092f8f5bc3b8e0b6356030bfbdc02710a/contentstack/contentstack-ruby/issues/40 |
| og:image:alt | Hi, I like to query for unpublished entries. I'm aware that this is probably not an issue that relates to the contentstack-ruby sdk and would expect the include_draft method ( See here ) to deliver... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SyborgStudios |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/contentstack/contentstack-ruby git https://github.com/contentstack/contentstack-ruby.git |
| octolytics-dimension-user_id | 24450751 |
| octolytics-dimension-user_login | contentstack |
| octolytics-dimension-repository_id | 76430863 |
| octolytics-dimension-repository_nwo | contentstack/contentstack-ruby |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 76430863 |
| octolytics-dimension-repository_network_root_nwo | contentstack/contentstack-ruby |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width