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

dsl --verify error should suggest database reset #1436

Merged
merged 1 commit into from
Mar 13, 2023

Conversation

KaanOzkan
Copy link
Contributor

Motivation

This came up in some issue reports. It's a tough one to debug but an easy suggestion to make.

Implementation

Tests

Existing tests updated.

@KaanOzkan KaanOzkan requested a review from a team as a code owner March 10, 2023 23:18
@KaanOzkan KaanOzkan changed the title dsl --verify error should suggest database reset dsl --verify error should suggest database reset Mar 10, 2023
@@ -343,6 +343,8 @@ def report_diff_and_exit_if_out_of_date(diff, command)
#{set_color("RBI files are out-of-date. In your development environment, please run:", :green)}
#{set_color("`#{default_command(command)}`", :green, :bold)}
#{set_color("Once it is complete, be sure to commit and push any changes", :green)}
If you don't observe any changes after running the command locally, ensure your database is in a good
state eg. run `bin/rails db:reset`
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
state eg. run `bin/rails db:reset`
state e.g. run `bin/rails db:reset`

@KaanOzkan KaanOzkan merged commit 92e2cd5 into main Mar 13, 2023
@KaanOzkan KaanOzkan deleted the ko/dsl-verify-suggestion branch March 13, 2023 16:18
@shopify-shipit shopify-shipit bot temporarily deployed to production March 21, 2023 22:07 Inactive
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