alphagov / trade-tariff-backend

Enabling the population and distribution via API of UK Customs tariffs and duties
MIT License
7 stars 6 forks source link

ChiefTransformer compatibility with Measure validations. #25

Closed saulius closed 11 years ago

saulius commented 11 years ago

Fixes to ChiefTransform to ensure that all validations pass.

There is a migration that eventually removes all invalid measures. It takes 45minutes on my local to run as it traverses 250k national measures. Please keep this in mind when deploying to production.

jabley commented 11 years ago

Eek! We have a one hour window for deployment normally, and that will include deploying to staging, verifying and then to production. I'll either have to book a longer slot, or see if we can speed that up a little. Presumably while the migration runs, we'll be mainly serving from the CDN anyway, so that doesn't concern me overly.

saulius commented 11 years ago

There is always an alternative to reload pre-made snapshot ;-)

jabley commented 11 years ago

Preview_Deploy will give us an indication of how long it will take to run in a production-like environment. I'll merge this a bit later today (just don't want to hog the CI server).