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

Mount the WasteCarriersEngine and start configuration #2

Merged
merged 7 commits into from
Jul 4, 2018

Conversation

irisfaraway
Copy link
Member

@irisfaraway irisfaraway commented Jul 3, 2018

https://eaflood.atlassian.net/browse/WC-188

We are moving the renewals journey into an engine: DEFRA/waste-carriers-engine#203

This means we can mount the engine in the front office (and later in the back office).

From the user's perspective, there should be no change between running the pre-engine renewals app and running the new front office with the engine.

We need to move a lot of stuff over from the renewals app, so we'll start with some initializers.

Current status is the app looks right and mounts the engine, but can't connect to databases. This is a safety commit before rebuilding Vagrant box to check if this is the cause.
Copy over the secure headers initialiser. Also specify that the list of registrations should be the root for now. This is to match the prior behaviour of the renewals app.
After making some changes to the engine, we no longer need this.
For some reason, calling WasteCarriersEngine::VERSION worked when using a local version of the gem, but not when pulling it from GitHub. We can set the version in an initialiser to get around this.
This used to be part of the renewals app before it became an engine. However, the script doesn't work as part of the engine so it's time to relocate it.
We've merged the engine setup into master of waste-carriers-renewals now.
@irisfaraway irisfaraway merged commit 0c19545 into master Jul 4, 2018
@irisfaraway irisfaraway deleted the feature/implement-engine branch July 4, 2018 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants