Skip to content

Commit

Permalink
Resolves #4686 add another bank to seed (#4826)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Benjamin-Couey authored Dec 14, 2024
1 parent 4138837 commit 49c9308
Show file tree
Hide file tree
Showing 2 changed files with 451 additions and 276 deletions.
44 changes: 40 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,49 @@ Make sure to install **Ubuntu** as your Linux distribution. (This should be defa
<details>
<summary> Bank Users 🏦 </summary>

Pawnee Diaper Bank
A fully set up bank with items, storage locations, donations, distributions, requests, etc.
The bank has multiple partners associated with it.
```
Organization Admin
Email: [email protected]
Email: [email protected]
Password: password!
User
Email: [email protected]
Password: password!
```

Second City Essentials Bank
A fully set up bank with items, storage locations, donations, distributions, requests, etc.
The bank has four items unique to it (named Second City Item #).
```
Organization Admin
Email: [email protected]
Password: password!
User
Email: [email protected]
Password: password!
```

SF Diaper Bank
A bank which has just been accepted and so is not fully set up. It lacks many of the records the other banks have.
```
Organization Admin
Email: [email protected]
Password: password!
User
Email: [email protected]
Password: password!
```
</details>

<details>
<summary> Partner Users 👥 </summary>

Partners in Pawnee Diaper Bank partner groups
```
Verified Partner
Email: [email protected]
Expand All @@ -87,10 +116,17 @@ Make sure to install **Ubuntu** as your Linux distribution. (This should be defa
Waiting Approval Partner
Email: [email protected]
Password: password!
Another approved partner (with all groups):
Another verified partner (in second partner group):
Email: [email protected]
Pasword: password!
Password: password!
```

Partners in Second City Essentials Bank partner group
```
Verified partner
Email: [email protected]
Password: password!
```
</details>

Expand Down
Loading

0 comments on commit 49c9308

Please sign in to comment.