Release Brick
The release brick creates master workspaces for one or more segments within a data product based on a predefined template called “Development master workspace”. If the segments or the data product do not yet exist, the release brick creates them as well.
The Development master workspace is a workspace that is created in advance and set up according to your needs: it contains required dashboards, reports, metrics, and so on. The master workspaces created based on the Development master workspace inherit all the objects from it.
Each execution of the release brick creates a new version of the segment’s master workspaces instead of changing the current ones.
For information about how to use the brick, see How to Use a Brick.
Prerequisites
Before using the release brick, make sure that the following is true:
- A domain is implemented at your site, and a domain admin exists.
- The Development master workspace with the content that needs to be released is created.
- (If your input source resides on the GoodData Data Warehouse (ADS)) You have an ADS instance, and the domain admin has admin rights to this instance.
How the Brick Works
The release brick accesses the Development master workspace to retrieve all metadata (for example, logical data model (LDM), processes, metrics, reports, and dashboards). If your input source resides on ADS, the release brick creates the lcm_release
table on the ADS instance (the table where the latest segment master workspace IDs and versions are stored).
If the user who executes the release brick does not have access to the Development master workspace (for example, it is located in a different domain), use the development_client
parameter to specify credentials of a user with access to the Development master workspace.
The brick creates new master workspaces in the domain and copies the dashboards and the objects referenced in those dashboards (reports, metrics, and so on) from the Development master workspace to those master workspaces. To change what objects should be copied (for example, copy all the objects, not just the dashboards), use the production_tags
and transfer_all
parameters (see Advanced Settings).
If the segments did not exist before you run the release brick, the release brick creates them according to your specification.
Input
The release brick does not require any input besides the parameters that you have to add when scheduling the brick process.
Parameters
When scheduling the deployed brick (see How to Use a Brick and Schedule a Data Loading Process), add parameters to the schedule.
In GoodData, terms workspace and project denote the same entity. For example, project ID is exactly the same as workspace ID. See Find the Workspace ID.
Name | Type | Mandatory? | Default | Description |
---|---|---|---|---|
organization | string | yes | n/a | The name of the domain where the brick is executed |
segments | array | yes | n/a | The segments that are going to be provisioned in the domain You must encode this parameter using the Example:
|
tokens | JSON | yes | n/a | The authorization token to use for creating the new master workspaces on PostgreSQL If needed, you will be able to provision client workspaces on Vertica later (see Provisioning Brick). You must encode this parameter using the
|
CLIENT_GDC_HOSTNAME | string | yes | secure.gooddata.com | The white-labeled domain name in the format of The parameter name is case-sensitive and must be written in uppercase. |
CLIENT_GDC_PROTOCOL | string | yes | https | The protocol to transfer data over The parameter name is case-sensitive and must be written in uppercase. |
ads_client | JSON | see "Description" column | n/a | (Only if your input source resides on GoodData Data Warehouse (ADS)) The ADS instance where the You must encode this parameter using the Example:
|
data_product | string | no | default | The data product that contains the segments that you want to release. If the specified data product does not exist, it is created. NOTE: If your input source resides on ADS and you have two or more data products, use the |
release_table_name | string | see "Description" column | LCM_RELEASE | (If your input source resides on ADS and you have multiple data products stored in one ADS instance) The name of the table in the ADS instance where the latest segment's master workspace IDs and versions are stored |
disable_pp_dashboard_permission | Boolean | no | false | Shared dashboard permissions for user groups are enabled by default. Even when the parameter is not explicitly specified in the syntax, it is assumed. Set to true to disable synchronizing user group permissions for shared dashboards. For more information, see LCM and Shared Dashboards. |
development_client | JSON | no | n/a | (If the user who executes the release brick does not have access to the Development master workspace; for example, it is located in a different domain) Credentials of a user with access to the Development master workspace You must encode this parameter using the Example:
|
LCM and Shared Dashboards
In a segment’s master workspace, dashboards can be private or shared with all or some users/user groups (see Share KPI Dashboards).
The sharing permissions are propagated from the master workspace to the client workspaces in the following way:
- Dashboards set as private in the master workspace remain private in the client workspaces.
- Dashboards shared with all users in the master workspace become dashboards shared with all users in the client workspaces.
- Dashboards shared with some users/user groups in the master workspace become dashboards shared with some user groups in the client workspaces.
Only user group permissions on the master workspace are preserved during rollout. Because the permission sharing a dashboard in the master workspace with some users is not preserved during rollout, we recommend that the master workspace contain only the dashboards that can be safely shared with all users in the client workspaces. If access is given to a user directly on the client workspace, the LCM will not remove that permission.
In some cases, you might want to keep private dashboards in the master workspace knowing that they will remain private in the client workspaces (for example, if they are used only as target dashboards in drilling).
In addition to the sharing permissions, the dashboards can be configured:
- To allow only administrators to update the dashboards (that is, editors cannot update such dashboards)
- To be displayed to users when they drill to these dashboards from facts, metrics, and attributes, even if the dashboards are not explicitly shared with those users
These settings are propagated to the client workspaces exactly as they are set in the master workspace. For more information about these settings, see Share KPI Dashboards.
Example - Brick Configuration
The following is an example of configuring the brick parameters in the JSON format:
{
"organization": "myCustomDomain",
"CLIENT_GDC_HOSTNAME": "analytics.myCustomDomain.com",
"CLIENT_GDC_PROTOCOL": "https",
"gd_encoded_params": {
"segments": [
{
"segment_id": "BASIC",
"development_pid": "e863ii0azrnng2zt4fuu81ifgqtyeoj21",
"driver": "pg",
"master_name": "Master BASIC ##{version}",
"production_tags": ["transfer_to_basic", "at_release"]
},
{
"segment_id": "PREMIUM",
"development_pid": "fuu81ifgqtyeoj21e863ii0azrnng2zt4",
"driver": "pg",
"master_name": "Master PREMIUM ##{version}"
}
],
"tokens": {
"pg": "01234567890123"
},
"ads_client": {
"jdbc_url": "jdbc:gdc:datawarehouse://analytics.myCustomDomain.com/gdc/datawarehouse/instances/kluuu4h3sogai9x2ztn4wc0g8lta7sn8"
},
"development_client": {
"server": "https://myCustomDomainDev.com",
"username": "jane.dow@myCustomDomain.com",
"password": "${development_client_password}"
}
},
"development_client_password": "enter_as_a_secure_parameter"
}
Advanced Settings
This section describes advanced settings of the release brick.
Change these settings only if you are confident in executing the task or have no other options. Adjusting the advanced options in a wrong way may generate unexpected side effects.
Proceed with caution.
Name | Type | Mandatory? | Default | Description |
---|---|---|---|---|
additional_params | JSON | no | n/a | Additional parameters that will be added to all schedules in the master workspaces You must encode this parameter using the
|
additional_hidden_params | JSON | no | n/a | Additional secure parameters that will be added to all schedules in the master workspaces You must encode this parameter using the
|
transfer_all | Boolean | no | false | See transfer_all and production_tags. |
production_tags | array | no | n/a | |
exclude_fact_rule | Boolean | no | false | Specifies whether to skip number format validation (up to 15 digits, including maximum 6 digits after the decimal point).
|
set_master_project | string | no | n/a | Specifies the ID of the workspace that you want to set as the segment master workspace instead of the one currently set. Use this parameter if you rolled out a new version of the segment's master workspace to its client workspaces but then decided to revert to the previous version of the master workspace (for example, because an error was discovered in the new version). To go back to the previous version, set this parameter to the ID of the workspace that was the master workspace before you rolled out the new version. You can obtain this ID in the "Result of UpdateReleaseTable" section of the execution log of the release brick (see Review a Log of Data Loading Process Execution). After reverting to the previous version of the master workspace, run the rollout brick (see Rollout Brick) to synchronize the client workspaces with this version of the master workspace. |
skip_actions | array | no | n/a | The actions or steps that you want the brick to skip while executing (for example, synchronizing computed attributes or user groups) The specified actions and steps will be excluded from the processing and will not be performed. NOTE: Using this parameter in a wrong way may generate unexpected side effects. If you want to use it, contact the GoodData specialist who was involved in implementing LCM at your site. |
transfer_all and production_tags
The transfer_all
parameter specifies what objects should be copied from the Development master workspace to the master workspaces when the master workspaces are created.
- If not set or set to
false
, only dashboards and the objects referenced in those dashboards (reports, metrics, and so on) are copied from the Development master workspace to the master workspaces. - If set to
true
, all objects (dashboards, KPI Dashboards, reports, insights, metrics, and variables) are copied from the Development master workspace to the master workspace.
The production_tags
parameter makes the brick copy only the objects with the tags and the objects referenced in them. The production_tags
parameter is an array that can have one or multiple tags:
"production_tags": ["some_tag"]
"production_tags": ["tag_1", "tag_2", "tag_3"]
By default, the transfer_all
parameter is set to false
and the production_tags
parameter is not set at all. In this default configuration, the brick copies only dashboards and the objects referenced in those dashboards (reports, metrics, and so on).
You can configure the transfer_all
parameter and production_tags
parameter depending on what objects you want to copy from the Development master workspace to the master workspace:
To copy only the objects with the specified tags and the objects referenced in them, set the
production_tags
parameter to these tags. Thetransfer_all
parameter must be either not set at all or set tofalse
. This can be useful in the following situations:- You have two segments with the same LDM but different dashboards, reports, and metrics built on top of this LDM (for example, for a basic and premium versions of your service). You want the segment’s master workspaces to be based on the same Development master workspace. In this case, you can build all the dashboards, reports, and metrics in the same Development master workspace, tag them to be related to one of the segments, and then use the
production_tags
parameter to copy only the relevant objects to each segment’s master workspace. - You want to copy only a subset of the dashboards from the Development master workspace (for example, you build numerous dashboards and want to copy those that are ready while the rest is in progress). In this case, tag the dashboards that are ready, and then use the
production_tags
parameter to copy only those dashboards to the segment’s master workspace.
- You have two segments with the same LDM but different dashboards, reports, and metrics built on top of this LDM (for example, for a basic and premium versions of your service). You want the segment’s master workspaces to be based on the same Development master workspace. In this case, you can build all the dashboards, reports, and metrics in the same Development master workspace, tag them to be related to one of the segments, and then use the
To copy all objects (dashboards, KPI Dashboards, reports, insights, metrics, and variables), set the
transfer_all
parameter totrue
. In this case, theproduction_tags
parameter will be ignored regardless of whether it is set up or not.
The release brick doesn’t support copy translations of new Attribute or Fact folders from the Development master workspace to the new master workspace.
Setting up the production_tags parameter in the brick schedule
While the transfer_all
parameter can be set directly in the brick schedule, the production_tags
is a complex parameter (see Specifying Complex Parameters) and must be included in your gd_encoded_params
parameter (see Example - Brick Configuration).
You can set up the production_tags
parameter in the following ways:
Globally for all segments:
"gd_encoded_params": { "production_tags": ["tag1", "tag2", "tag3"], ... }
Per segment (segment-specific parameters take precedence over the globally set one):
"gd_encoded_params": { "segments": [ { "segment_id": "BASIC", "development_pid": "e863ii0azrnng2zt4fuu81ifgqtyeoj21", "driver": "pg", "master_name": "Master BASIC ##{version}", "production_tags": ["tag1", "tag2", "tag3"] }, ... ] ... }