Skip to content

Issue/172 update test order mode#173

Merged
RichardWatkins1 merged 16 commits intomasterfrom
issue/172_update_test_order_mode
Apr 3, 2019
Merged

Issue/172 update test order mode#173
RichardWatkins1 merged 16 commits intomasterfrom
issue/172_update_test_order_mode

Conversation

@RichardWatkins1
Copy link
Copy Markdown
Contributor

@RichardWatkins1 RichardWatkins1 commented Mar 29, 2019

The issue #172

Once the deployment engine is updated to use the app setup api then apps will be built on heroku using the app.json schema. This means that all values must be a string or object and cannot be a boolean. The environment configurations that are submitted in the admin panel will be a string e.g TEST_ODER_MODE="true". In the ruby gem we are currently checking test_order_mode == true, once this becomes test_order_mode == "true" it will become false and we will not be setting test orders.

The fix

Update the conditional to checkout == (true || "true"). This way the gem will work before the deployment engine is released and after.

QA

See QA steps in this PR - https://github.com/shiftcommerce/matalan-rails-site/pull/3339

@RichardWatkins1 RichardWatkins1 merged commit 0bc8126 into master Apr 3, 2019
@RichardWatkins1 RichardWatkins1 deleted the issue/172_update_test_order_mode branch April 3, 2019 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants