-
Notifications
You must be signed in to change notification settings - Fork 25
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
feat: Support new REST preview service #100
feat: Support new REST preview service #100
Conversation
The REST preview service introduces its own preview token and API endpoint for Live preview. This values will be used to fetch entry data for live preview. Replaced "api.contentstack.io" to "rest-preview.contentstack.com" and replaced `management_token` to `preview_token` fixes: https://contentstack.atlassian.net/browse/VC-311
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please include both Unit and API tests to cover the live preview updates? @Deepak-Kharah
I have added the test cases |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved
After it goes live, we will need to include API tests. For now, it appears satisfactory to me.
thanks @Deepak-Kharah ,
…ader feat: use separate header for preview token
The interface `LivePreivewConfigWithPreviewToken` should be `LivePreviewConfigWithPreviewToken`
fix: typo in the interface name
…r-rest-preview-service
The live editor handles the references in the backend. So, we no longer need them in the SDK. Moreover the live editor can handle multiple content types and the optimization could break them. fixes: https://contentstack.atlassian.net/browse/EB-749
…ptimization feat: remove live preview optimization for live editor
…ptimization Eb 749 remove live preview optimization
* Updated X-User-Agent header (contentstack#109) * feat: added taxonomies url * fix: updated dependencies and settings to fix npm install and build warnings * fix: added fix for ESM module cannot use module.exports issue * WIP: added taxonomy files * fix: updated talismanrc * feat: added taxonomies url * WIP: taxonomy tests * feat: added , , and for taxonomy query * feat: version bump * refactor: moved _extend * fix: updated .talismanrc * fix: added fixes for failing asset tests * fix: corrected content-types for tests * fix: removed .only from test, so that all tests may execute * fix: fixed existing tests * fix: fixed taxonomies url, levels param and added doc * WIP: added integration test cases * fix: added unit tests * fix: added unit tests * fix: corrected test prefix and content-type uid * fix: bumped patch version and updated lock file * fix: removed commented tests * fix: removed unused file, updated description * fix: corrected package version * feat: added gcp_na region * feat: updated talismanrc * fix: updated minor version * fix: replaced Taxonomies().Query() with Taxonomies() * fix: updated tests and types * Bug/cs 40045 x user agent (contentstack#108) * Updated X-User-Agent header * Updated the X-User-Agent * fix: fixed vulnerabilities --------- * Upgraded node version in github workflow file (contentstack#116) * feat: added taxonomies url * fix: updated dependencies and settings to fix npm install and build warnings * fix: added fix for ESM module cannot use module.exports issue * WIP: added taxonomy files * fix: updated talismanrc * feat: added taxonomies url * WIP: taxonomy tests * feat: added , , and for taxonomy query * feat: version bump * refactor: moved _extend * fix: updated .talismanrc * fix: added fixes for failing asset tests * fix: corrected content-types for tests * fix: removed .only from test, so that all tests may execute * fix: fixed existing tests * fix: fixed taxonomies url, levels param and added doc * WIP: added integration test cases * fix: added unit tests * fix: added unit tests * fix: corrected test prefix and content-type uid * fix: bumped patch version and updated lock file * fix: removed commented tests * fix: removed unused file, updated description * fix: corrected package version * feat: added gcp_na region * feat: updated talismanrc * fix: updated minor version * fix: replaced Taxonomies().Query() with Taxonomies() * fix: updated tests and types * Bug/cs 40045 x user agent (contentstack#108) * Updated X-User-Agent header * Updated the X-User-Agent * fix: fixed vulnerabilities * Fix/ghwf issuefix (contentstack#115) * Updated X-User-Agent header (contentstack#109) * feat: added taxonomies url * fix: updated dependencies and settings to fix npm install and build warnings * fix: added fix for ESM module cannot use module.exports issue * WIP: added taxonomy files * fix: updated talismanrc * feat: added taxonomies url * WIP: taxonomy tests * feat: added , , and for taxonomy query * feat: version bump * refactor: moved _extend * fix: updated .talismanrc * fix: added fixes for failing asset tests * fix: corrected content-types for tests * fix: removed .only from test, so that all tests may execute * fix: fixed existing tests * fix: fixed taxonomies url, levels param and added doc * WIP: added integration test cases * fix: added unit tests * fix: added unit tests * fix: corrected test prefix and content-type uid * fix: bumped patch version and updated lock file * fix: removed commented tests * fix: removed unused file, updated description * fix: corrected package version * feat: added gcp_na region * feat: updated talismanrc * fix: updated minor version * fix: replaced Taxonomies().Query() with Taxonomies() * fix: updated tests and types * Bug/cs 40045 x user agent (contentstack#108) * Updated X-User-Agent header * Updated the X-User-Agent * fix: fixed vulnerabilities --------- * Upgraded the working nodejs version in GH workflows --------- --------- --------- Co-authored-by: Nadeem <[email protected]> Co-authored-by: Abhinav Gupta <[email protected]> Co-authored-by: abhinav <[email protected]> Co-authored-by: Aravind Kumar <[email protected]>
This reverts commit c0cfcc6.
Hi @ishaileshmishra, I have merged changes from @Deepak-Kharah's branch to |
e29ecc8
into
contentstack:next
The REST preview service introduces its own preview token and API endpoint for Live preview. This values will be used to fetch entry data for live preview.
Replaced "api.contentstack.io" to "rest-preview.contentstack.com" and replaced
management_token
topreview_token
fixes: https://contentstack.atlassian.net/browse/VC-311