Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLDC- 3732: Update review apps seeds #2833

Closed
wants to merge 34 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
dedbba9
Update seeds
RachaelBooth Nov 22, 2024
dfad491
Merge branch 'main' into BetterReviewAppsSeeds
RachaelBooth Nov 25, 2024
3c6fca1
Fix linting
RachaelBooth Nov 25, 2024
3f0ddce
Update dsa bits
RachaelBooth Nov 25, 2024
07b2732
Fix duplicate user/org variable names
RachaelBooth Nov 25, 2024
85120e6
Fix create_list
RachaelBooth Nov 25, 2024
20f708a
Set faker locale for development and review
RachaelBooth Nov 25, 2024
0bd7a85
Update tests that relied on user factory default name
RachaelBooth Nov 25, 2024
bf3405f
Update more tests
RachaelBooth Nov 25, 2024
e619fd2
Add additional randomness to log factories
RachaelBooth Nov 25, 2024
1faacc0
Also create older logs
RachaelBooth Nov 25, 2024
c756c76
Update tests and log randomness
RachaelBooth Nov 25, 2024
f3a37be
Ensure sufficient gap between child and parent ages
RachaelBooth Nov 25, 2024
56b9a18
More test fixes
RachaelBooth Nov 25, 2024
9654160
Specify names for users
RachaelBooth Nov 25, 2024
358d797
Fix more tests
RachaelBooth Nov 25, 2024
6f53328
Fix lint
RachaelBooth Nov 25, 2024
5a54630
More fixes
RachaelBooth Nov 26, 2024
e04fe8c
More randomness in organisation generation
RachaelBooth Nov 26, 2024
671a88e
Add some extra organisations
RachaelBooth Nov 26, 2024
9cbbe00
Create future logs if future form use is enabled
RachaelBooth Nov 26, 2024
99328d5
Update tests that expect fixed default org name
RachaelBooth Nov 26, 2024
3f4683d
Update more tests
RachaelBooth Nov 26, 2024
9b73102
Fix typo
RachaelBooth Nov 26, 2024
3aa85ec
Another tweak
RachaelBooth Nov 26, 2024
6658381
More test fixes
RachaelBooth Nov 26, 2024
b02c51e
More test fixes
RachaelBooth Nov 26, 2024
f315118
Another fix
RachaelBooth Nov 26, 2024
5da3fcc
Update more tests
RachaelBooth Nov 26, 2024
220a002
More fixes
RachaelBooth Nov 26, 2024
96e5991
Only create outright sale logs for relevant years
RachaelBooth Nov 27, 2024
54a1cfa
Merge branch 'main' into BetterReviewAppsSeeds
RachaelBooth Nov 27, 2024
e246de5
Reduce max random age to avoid soft validations
RachaelBooth Nov 27, 2024
872c435
Don't allow sales logs to use no longer valid relat value
RachaelBooth Nov 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@
# Uncomment if you wish to allow Action Cable access from any origin.
# config.action_cable.disable_request_forgery_protection = true

Faker::Config.locale = "en-GB"

# see https://discuss.rubyonrails.org/t/cve-2022-32224-possible-rce-escalation-bug-with-serialized-columns-in-active-record/81017
config.active_record.yaml_column_permitted_classes = [Time, BigDecimal]

Expand Down
2 changes: 2 additions & 0 deletions config/environments/review.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@
# config.active_record.database_resolver = ActiveRecord::Middleware::DatabaseSelector::Resolver
# config.active_record.database_resolver_context = ActiveRecord::Middleware::DatabaseSelector::Resolver::Session

Faker::Config.locale = "en-GB"

# see https://discuss.rubyonrails.org/t/cve-2022-32224-possible-rce-escalation-bug-with-serialized-columns-in-active-record/81017
config.active_record.yaml_column_permitted_classes = [Time, BigDecimal]
end
Loading
Loading