Version 4.0.0
Upgrade Guide
Overview
- This is currently in
beta
. - Key improvements in this series will focus on:
- Advanced data querying capabilities
- Enhanced security features
- Powerful customization capabilities that will require significantly less code than before
- We are adding support for multiple document operations:
- Multi-Document Handling:
- Work with multiple Velt documents on a single page simultaneously
- Subscribe, view, and perform CRUD operations across multiple documents in real-time
- Comments from multiple documents are now automatically rendered in the Sidebar
- Enhanced Querying:
- Query comments, comment counts, unread counts across multiple documents with a simpler API
- Filter by document IDs, location IDs, and status IDs
- Multi-Document Handling:
Breaking Changes
- [Authentication] Made
organizationId
mandatory inidentify
method. - [UI Customization] If you applied CSS to wireframe component selectors, you need to update them to target Velt component selectors directly.
- Wireframe components are no longer rendered within Velt components. In previous versions, there were a few wireframe components that were rendered within Velt components.
How to Upgrade
Use these steps with your test API key first. Once you are ready, follow the same steps on all your production API keys as well.
- Ensure you are using
organizationId
vsgroupId
in theidentify
method. If you have existing data with groupId, then first migrate your data using this guide. - Enable ‘Advanced Queries and Filters’ in the Velt Console here. It will take 15 mins for this to be enabled.
- Once, the feature is enabled, deploy the latest version of the Velt SDK to your product.
Migrating from groupId
to organizationId
Use these steps with your test API key first. Once you are ready, follow the same steps on all your production API keys as well.
- Change the
groupId
field toorganizationId
in theidentify
method. Once you do this, you will stop seeing the existing data locally. This is expected. - Goto the data page in Velt Console. You will see an option to migrate data to
organizationId
structure. - Click on the
Migrate
button. The migration will take 15-30 mins to complete depending on the size of your data. - Once, the migration is done, you will start seeing the data. Your original
groupId
data will be retained as backup. - Deploy your changes to production. Note: Deploy soon after the migration completes to minimize any data inconsistency.
Was this page helpful?