Skip to content

Commit

Permalink
fix: db:seeds:fill only for one organization (#1968)
Browse files Browse the repository at this point in the history
Motivation
----------
I used these seeds to review #1964. What I observed is that the list of
requests is visible across all organizations but the search is scoped.
I.e. if you search, you have no search results.

That's why I updated the seeds here, to check if the error persists for
only one organization. Answer: no

How to test
-----------
1. `git switch main` or `git switch update_seeds_fill`
1. `bin/rails db:seeds:fill`
2. Do a full text search
3. On `main` you won't see anything but on this branch you will
  • Loading branch information
roschaefer authored Aug 16, 2024
1 parent 0bc5709 commit cb5f92b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions db/seeds/fill.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

FactoryBot.modify do
factory :contributor do
organization { Organization.singleton }
data_processing_consent { true }
first_name { Faker::Name.first_name }
last_name { Faker::Name.last_name }
Expand All @@ -35,6 +36,7 @@

FactoryBot.modify do
factory :request do
organization { Organization.singleton }
title { Faker::Lorem.question }
text { Faker::Lorem.paragraph }
user { users.sample }
Expand Down

0 comments on commit cb5f92b

Please sign in to comment.