Skip to content

Add configuration to turn off agreements data seeding if desired#5581

Merged
orenyk merged 1 commit intomainfrom
oyk-limited-agreements-seed
Nov 4, 2021
Merged

Add configuration to turn off agreements data seeding if desired#5581
orenyk merged 1 commit intomainfrom
oyk-limited-agreements-seed

Conversation

@orenyk
Copy link
Contributor

@orenyk orenyk commented Nov 4, 2021

Why: https://gsa-tts.slack.com/archives/C01SU3NB9T3/p1636035938073500

We need to make sure we turn this setting on in production application.yml before deploying.

@orenyk orenyk changed the title Add configuration to turn off agreements data seeding Add configuration to turn off agreements data seeding if desired Nov 4, 2021
Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need a top-level key as the default value for dev, test, etc?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean because nil defaults to false? Or something else?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got confused about where this was in the structure of the file.

I think at the top-level it should be true
and then we should override it in the production: block to be false

and then like you said, override it via the value in S3 again in prod

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, yeah that makes sense. I'll make that update and hopefully that resolves the failing specs.

@orenyk orenyk force-pushed the oyk-limited-agreements-seed branch from 5198c50 to e7ff138 Compare November 4, 2021 16:48
Copy link

@russbeye russbeye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Real nice! What a catch from @zachmargolis btw!

@orenyk orenyk force-pushed the oyk-limited-agreements-seed branch from e7ff138 to 8a96621 Compare November 4, 2021 17:23
@orenyk orenyk merged commit 6366a1b into main Nov 4, 2021
@orenyk orenyk deleted the oyk-limited-agreements-seed branch November 4, 2021 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants