Adding User Reviews
You can add user reviews to the assets that are stored in WSO2 Governance Registry.
Enabling user reviews
Follow the steps below to enable adding user reviews, if you have set a port offset in your G-Reg server, or if you have hosted WSO2 G-Reg in another server other than localhost.
If you did not start the G-Reg server before:
- Navigate to the
<G-REG_HOME>
/repository/deployment/server/jaggeryapps/store/config/store-tenant.json
file. Change the host and/or port accordingly in the value of the
socialAppUrl
property as shown in the example below (i.e. when you have set a port offset of 1)."features": { "social": { "enabled": true, "keys": { "socialScriptSource": "%https.host%/social/export-js/social.js", "socialScriptType": "text/javascript", "socialAppUrl": "%https.local%/social" } },
If you started the G-Reg server at least once:
- Log in to the Management Console of WSO2 G-Reg using the following uRl and admin/admin credentials: http://<G-REG_HOST>:<G-REG_PORT>/carbon
- Click Main, and then click Browse in the Resources menu as shown below.
- Select the
/_system/config/store/configs/store.json
file as shown below. - Click the Edit as text option in the Content section.
- Change the host and/or port accordingly in the value of the
socialAppUrl
property as shown in the following example (i.e. when you have set a port offset of 1):"socialAppUrl":"https://localhost:9444/social"
Adding a user review
Follow the steps below to add a user review in the G-Reg Store.
- Log in to the G-Reg Store using the following uRl and admin/admin credentials: http://<G-REG_HOST>:<G-REG_PORT>/store
- Click the preferred asset type in the main menu of the Store as shown below.
- Click the asset to which you want to add a review.
- Click the User Reviews tab.
Add the review, a rating for the asset, and then click Post Review as shown below.
You view the review you added posted as shown below.You can delete the reviews that you added using the Delete button. Also, you can like or dislike any posted review using the following like and dislike buttons.