Skip to content

Commit

Permalink
Update README.md (#999)
Browse files Browse the repository at this point in the history
  • Loading branch information
lizgarciao authored Feb 16, 2024
1 parent 8803cb6 commit 79066da
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,38 +26,38 @@ This is an application that allows the library to create workflows that allow st
## Database creation
* Run `rake servers:start` to start a local postgres server, create, and migrate.
* Run `bundle exec rake servers:start` to start a local postgres server, create, and migrate.
* seed the database
```
rake db:seed # you must be on the VPN for this step
bundle exec rake rake db:seed # you must be on the VPN for this step
```
* `rake db:seed` only creates accounts for users listed in the [Active Library Staff-Scheduled-en CSV](https://github.com/pulibrary/approvals/blob/main/Active%20Library%20Staff%20-%20Scheduled-en.csv) file. If you are not yet listed in the file, you will have to add a row with your NetID in order to log
* `bundle exec rake db:seed` only creates accounts for users listed in the [Active Library Staff-Scheduled-en CSV](https://github.com/pulibrary/approvals/blob/main/Active%20Library%20Staff%20-%20Scheduled-en.csv) file. If you are not yet listed in the file, you will have to add a row with your NetID in order to log
in to the system later.
* There are additional rake tasks that allow you to create scenarios and requests in the system
* make_me_a_department_head\[netid,number\]
for example the following command will create a department for cac9 to be the head of and have 5 supervisors, each with 5 reports.
```
rake approvals:make_me_a_department_head\[cac9,5\]
bundle exec rake approvals:make_me_a_department_head\[cac9,5\]
```
* make_me_a_supervisor\[netid,number\]
for example the following command will create 7 directs report for cac9 to supervise
```
rake approvals:make_me_a_supervisor\[cac9,7\]
bundle exec rake approvals:make_me_a_supervisor\[cac9,7\]
```
* make_requests_for_everyone
Make random numbers of request in random states for everyone in the system.
```
rake approvals:make_requests_for_everyone
bundle exec rake approvals:make_requests_for_everyone
```
## Testing User Accounts
* Users can have test requests created for them via rake. The following command creates
```
rake approvals:make_requests_for_user[netid]
bundle exec rake approvals:make_requests_for_user[netid]
```
* Other users can subsume other user's roles by manipulating the system's delegation features. The following task allows the user with netid_delegate to review and make requests on behalf of netid.
```
rake approvals:make_delegate[netid_delegate,netid]
bundle exec rake approvals:make_delegate[netid_delegate,netid]
```
* If the newly delegated individual then visits the "delegates/to_assume" route in the application they will be able select the user attached to 'netid' and see the requests they've made and make them on their behalf.
Expand Down

0 comments on commit 79066da

Please sign in to comment.