-
Notifications
You must be signed in to change notification settings - Fork 0
Altering features
What I'm about to describe is in no way an ideal situation. We intended to build out a tool in the admin portal to handle this but we were struck down by the cruel vagueries of time and fate, so I am writing this wiki to provide what you need to know to turn features on and off.
These features are things that can be turned on or off (true or false) in Complaint Manager; most of them are things you'd never want to change and are primarily there to differentiate functionality to meet the needs of the different organizations using Complaint Manager, but there are a couple that you might want to change at some point
googleAddressAPI - If you decide you no longer want to pay for the autocomplete functionality for addresses, you can turn this off and you'll be able to manually enter address info
removeCaseNotesFeature - this was a feature implemented but then turned off that allowed for case notes to be removed from a case. Turning this on will allow those deletions
When looking in the database you can see other features, which should each have a description with it, but some features only work with other features or settings, so if you see a feature that looks good, maybe try turning it on and playing around with it, then turning it off if it causes any problems
Unfortunately this is going to require some semi-technical stuff, but I'll walk you through it.
First download an app called DBeaver (there are many apps that will let you manipulate a database so if you're already comfortable with one feel free to use that, but the following instructions will be DBeaver specific)
- Add a connection to your database
- Find the Credentials from data.heroku.com (login with your Heroku credentials)
- Click on the database (there should be only one)
- Go to the "Credentials" tab to see the credentials
- Add the connection
- Open DBeaver
- Click the "Add Connection" button
- Choose PostgreSQL (should have an elephant icon)
- Fill out the Host, Database, Username, and Password fields
- Click "Test Connection" and if that succeeds click "Finish"
- Change a flag
- On the left sidebar expand the database, open the databases folder, and right click on feature_toggles. Selecting "View Table" from the resultant menu
- You should now see the full table of feature toggles
- To change the value of one of the toggles, click on the "enabled" column for the toggle you want to change
- A "Value" pane should appear where you can click the true/false and open a dropdown that will let you change the value
- Once you've made the changes you want, use Ctrl/Cmd-S to save your changes. The change should be reflected in Complaint Manager after a couple of minutes
- On the left sidebar expand the database, open the databases folder, and right click on feature_toggles. Selecting "View Table" from the resultant menu
- Find the Credentials from data.heroku.com (login with your Heroku credentials)