
Prepare PAaaS for Development
|
|
 |
IBM Planning Analytics as a Service is extremely flexible. In order to start development of your models and business logic it is recommended that you create at least one, logically separated area for each development team. this could be one area if all development is performed by one team or multiple areas if, for example, each business unit has their own needs ie, HR separate from Finance.
The steps consist of:
- Create a Development Environment
- Create the initial Development Database
- Invite Developers to the environment and give them access to the database
Create a Development Environment:
Environments are containers for your databases and users.
An environment could be a separate area for development, User Acceptance Test (UAT) etc. or for separate functions ie. A Finance production environment for only Finance users and a HR Environment for HR Headcount planning etc.
This allows for a logical and secure separation of function and data access.
In this case we will create one called CSM-Dev for our development environment, but you can choose any appropriate name or simply “Development”.
Start by logging in to the Planning Analytics as a Service Workspace.
Note: you can find the url to your PA Workspace on the IBM SaaS Console by selecting your instance under subscriptions and then selecting "Launch". It is advisable to bookmark the url to your workspace instance as this is also the url you will share with users of IBM Planning Analytics.
Once logged in:
Select the Administration tile |
Select Environments tile |
Select "Add" |
Name the Environment as select the type (in this case, Development) |
|
|
|
|
Congratulations, now that you have completed these steps you have your first development environment.
You can now use the Environment "Selector" in the top right corner of Planning Analytics Workspace to change to the new Development environment for the following steps. Simply select the dropdown on the Environments selector and choose your new development Environment.
For documentation on managing environments please see: Manage PAaaS Environments
Create the initial Development Database
The next step is to create a database for your development work.
A Database is a collection of Cubes with their respective dimensions, business rules and processes.
The Database will hold all your business logic and data and you normally have a database for each subject area such as Financials or HR talent management.
To start, Ensure you have your development Environment selected.
Select the Administration tile |
Select the Databases tile |
select "Create" |
 |
|
|
You are now presented with a form:
Database name: choose something that is relevant for your project ie. "Financials dev"
Replicas and High availability (HA): Planning Analytics as a Service has HA built in. It means that if a database suffers an issue and is down another copy of the database (replica) can continue to function. Selecting the "High availability" checkbox enables this feature and the replicas entry. The replicas allow you to specify how many active copies of the database are required ie. with replicas at 1 you will have a total of 2 copies of the database running (the initial database and the replica). Setting this to 3 or 4 allows for more resilience should there be failures however, it is important to note that each replica consumes RAM ie. a database that is 2GB of RAM in size and has 2 replicas will consume 6GB of RAM from your quota in total.
Disk Space: is the amount of disk that you wish to allocate to the database storage including files and backups etc.
RAM: is the amount of RAM allocated to the database
Automatic Backups: In Planning Analytics as a Service, backups can be taken manually or automatically. Turning on Automatic backups ensures a backup of the database is taken at the time selected and is recommended. Backups can be downloaded and restored to other databases or restored directly to the current database ie. restore the data and model for this database to this mornings automatic backup as at 1 am.
Once your development database is created, it can be selected and you can see the:
Congratulations, you now have your first development database.
To learn more about creating and managing a database please see the documentation: Managing a Database
Invite Developers to the environment and give them access to the database
The final step in preparing your development environment is to invite the developers to the environment and grant them access to the database.
To invite a user to the environment:
Select the Administration tile |
Select the Users and Groups tile |
Select "Add" on the Users tab |
 |
|
|
You will now see a form for the new user:
Fill out the users First name, Last Name and Email address. Note: the email address should ideally be their corporate email address.
and select "Add" to finish adding the user.
At this point, the end user/developer you have invited will receive an email:
At this point, you have added your first developer to Planning Analytics. You can now continue to add more users to any selected environment using the same process.
At this point you can now check the settings for a user by selecting the users name in the Administration -> Users and Groups screen:
The final step is giving the new user/developer security access to you new development database and any workspace assets.
This can be done using the individual user however it is best practice to use groups to minimise administration overhead.
To create a group:
Now that your Developers group has been created you can add and remove users from it using the Manage button in the future.
The next step is to set up security in Planning Analytics Workspace. Folders can follow any naming and sub levels you wish. It may be that you want the content that is created separated by function or by group etc.
By default, everyone has access to the shared folder content in Planning Analytics Workspace and newly created folders and content inherit their permissions. This will not be covered in this blog directly as it is not required for the base development environment at this time.
The Final step is to add the developer group to your development database.
Database Security in Planning Analytics is group driven. You can assign a group with different capabilities such as read or write for Cubes, Dimensions, items in a dimension ie, a user in the group can only see their country or non HR users cannot see Salary info etc. Security is even possible at an individual cell.
To add the Developer group to the database:
Open a new Plannning Analytics Workbench |
In the database tree you can expand your database to view objects. On the actual database (in this case "Dev" select the three dots that appear when you hover over and then select "Manage users and groups" from the Menu. |
|
|
In the bar above the security view you will see several icons. The + icon adds internal database groups while the person icon adds users. Select the icon representing multiple people. This is for adding Planning Analytics Workspace groups and will also automatically add current users in those groups.
|
Select the group or groups you wish to add by selecting it. In this case, the developers group you created.
Then select the blue "Add" button at the bottom right of the dialog box.
|

|
|
You will now see that the group has been added and a green tick will appear in the intersection of the group and the users who are in it. At any point you can right click on a user, group or intersection and assign or unassign membership of the group manually. For example, another developer may wish to test security so you can unassign them from the developer group and assign them to another group to test. The other developer should log out and upon logging in will have the new groups permissions. Tip: at any point if there are browser caching issues you can use incognito/inprivate browser modes so a clean cache is used.
|
Finally, IF at any point there are changes to the group membership (remove or add users to workspace groups) you can right click on the group and select "Synchronise group" to update the database security. |
|
|
For more information on how to secure Database objects and data please see Object Security.
You should now have a complete Development environment with a database and developers invited.