Staging Environment
Overview
This document outlines key considerations and limitations when working in the staging environment of WorkHub24. It provides best practices for editing workflows, using dynamic URLs, managing tokens, and understanding how changes sync (or don’t) with production.
1. Environment Isolation
-
Separate Databases: Staging and Production have separate databases.
- Workflow cards and data table records are isolated between environments.
-
No Sync for Users and Groups:
- Users, Groups, Branches, and Roles cannot be created on staging.
- Group memberships do not sync with production. You must manually add yourself to relevant user groups on staging.
- Workflow Editing
- Permissions: You need to have workflow owner permissions to edit workflows on staging.
- Visibility in Menu: Once edited, the workflow appears under the “Applications” section in the left menu.
- Publishing from Staging:
- Publishing from staging creates a new draft in production.
- If you publish directly to production without staging, any saved draft will be overwritten and lost.
- Once a draft is published, changes apply to all workflow cards in production.
-
Datastore Editing
- Permissions: You need have to permissions to edit Datastores on staging.
- Publishing from Staging:
- Once published on staging, a new draft is created in production.
- If you made changes to Datastores on staging, ensure the draft is published on production.
- As with workflows, publishing directly to production without staging will overwrite any saved drafts and they will be lost.
- To display datastore columns in the staging environment, you must first publish the datastores.
-
URL Configuration for API Calls
- For Workhub24 API calls, always use the Staging URL format (e.g.,
https://staging.workhub...) instead ofhttps://app.workhub...when working in the Staging environment. - Best Practice: Use dynamic URLs in your configuration so that only one source (like an environment variable) needs to be updated during production deployment.
- For Workhub24 API calls, always use the Staging URL format (e.g.,
-
Tokens and Permissions
- Environment-Specific Tokens
Tokens must be configured separately for Staging and Production.
You will need to update the token during production deployment to ensure the correct environment is used. - Independent Permissions
User permissions in Staging are independent of those in Production.
Being added to a user group or having certain roles in Production does not grant the same access in Staging you must configure permissions separately.
- Environment-Specific Tokens
-
Templates (PDF, Email, SMS)
- Currently, templates cannot be edited in the staging environment. This will be supported in the near future.
-
Datastore Views
Currently cannot be viewed or edited in staging environment. This will be supported in the near future.
Steps to Release a New Version to Production
You can log in to the staging environment using your email and password at https://staging.workhub24.com.