Skip to content

Testing Policy Server UI Changes Locally

Fionna Chan edited this page Jul 15, 2021 · 1 revision

The following describes how you can change the policy server status & get the update on the frontend.

  1. First, go to pgAdmin to change the policy_server_status of the run.

  2. Then you'll need to have aws-cli set up on your computer.

  3. Run aws --profile pathmind sns publish --topic-arn 'arn:aws:sns:us-east-1:839270835622:dev-updater-topic' --message-attributes '{"filter":{"DataType":"String", "StringValue":"Fionna"}}' --message '{"id":6260, "type":"policy_server", "info":"3"}'

  • Replace "Fionna" with whatever filter text you use for pathmind.aws.sns.updater_sqs_filter for the webapp
  • Replace the "id": 6260 with the id of your experiment's run id
  • The value of info does not have any effect on the UI changes but in the future it should be the policy server status value

Watch the video here: https://share.getcloudapp.com/5zuYPQvG

These are the valid values for the policy_server_status

Index Policy Server Status
0 Not Deployed
1 Pending
2 Deployed
3 Failed

Setting up AWS-CLI

After you have installed aws-cli, configure it:

aws configure --profile pathmind
AWS Access Key ID: *****************************
AWS Secret Access Key: ***********************************
Default region name: us-east-1
Default output format: json

If you are on Windows, you can use aws-cli with git bash after the configuration.

Clone this wiki locally