Skip to content

Commit 49c9308

Browse files
Resolves #4686 add another bank to seed (#4826)
* Added newline to end of file and removed unecessary whitespace * Added basic information for new bank, partner, and associated users * Added test for function that seeds organization with item with arbitrary name * Implemented seed_random_item_with_name function * Added a couple items unique to the new bank * Updated request units to be seeded for all organizations * Updated partners to be seeded with variable organizations and associated new partner with new bank * Added StorageLocations for new bank, fixed typo * Added Vendors for all orgs and added Purchases for new bank * Added ProductDrives, ProductDriveParticipants, and Manufacturers for all orgs, removed redundant Product Drives section * Added Donations and Distributions for the new bank, updating the way storage locations are selected to accommodate there being storage locations for multiple orgs * Updated CONTRIBUTING.md docs to reflect the newly added bank * Changes made by linter * Changed records I updated to generate for all orgs to only generate for pdx_org and sc_org * Updated bank and storage locations to use Faker * Forgot to run linter on model files * Added sections guaranteeing the items unique to the new bank are used for donations, purchases, distributions, and requests * Added on_hand_minimum_quantity and on_hand_recommended_quantity for the new bank's items, guarantee that at least one of the items unique to the new bank has an inventory less than the recommended quantity * Changed iterator name to be consistent with other uses of times.each * Updated CONTRIBUTING.md docs to describe differences of each bank * Moved seed_random_item_with_name from organization to seeds.rb
1 parent 4138837 commit 49c9308

File tree

2 files changed

+451
-276
lines changed

2 files changed

+451
-276
lines changed

CONTRIBUTING.md

Lines changed: 40 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,20 +53,49 @@ Make sure to install **Ubuntu** as your Linux distribution. (This should be defa
5353
<details>
5454
<summary> Bank Users 🏦 </summary>
5555

56+
Pawnee Diaper Bank
57+
A fully set up bank with items, storage locations, donations, distributions, requests, etc.
58+
The bank has multiple partners associated with it.
5659
```
5760
Organization Admin
58-
61+
5962
Password: password!
6063
6164
User
6265
6366
Password: password!
6467
```
68+
69+
Second City Essentials Bank
70+
A fully set up bank with items, storage locations, donations, distributions, requests, etc.
71+
The bank has four items unique to it (named Second City Item #).
72+
```
73+
Organization Admin
74+
75+
Password: password!
76+
77+
User
78+
79+
Password: password!
80+
```
81+
82+
SF Diaper Bank
83+
A bank which has just been accepted and so is not fully set up. It lacks many of the records the other banks have.
84+
```
85+
Organization Admin
86+
87+
Password: password!
88+
89+
User
90+
91+
Password: password!
92+
```
6593
</details>
6694

6795
<details>
6896
<summary> Partner Users 👥 </summary>
6997

98+
Partners in Pawnee Diaper Bank partner groups
7099
```
71100
Verified Partner
72101
@@ -87,10 +116,17 @@ Make sure to install **Ubuntu** as your Linux distribution. (This should be defa
87116
Waiting Approval Partner
88117
89118
Password: password!
90-
91-
Another approved partner (with all groups):
119+
120+
Another verified partner (in second partner group):
92121
93-
Pasword: password!
122+
Password: password!
123+
```
124+
125+
Partners in Second City Essentials Bank partner group
126+
```
127+
Verified partner
128+
129+
Password: password!
94130
```
95131
</details>
96132

0 commit comments

Comments
 (0)