Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
Merge pull request #816 from Shopify/update_version_on_monorail
Browse files Browse the repository at this point in the history
Update monorail cli version
  • Loading branch information
Tim Anema authored Aug 13, 2020
2 parents 1b30eb0 + 016c547 commit cb6fa88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/shopify-cli/core/monorail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def build_payload(start_time, end_time, commands, args, err = nil)
success: err.nil?,
error_message: err,
uname: RbConfig::CONFIG["host"],
cli_version: ShopifyCli::Git.sha(dir: ShopifyCli::ROOT),
cli_version: ShopifyCli::VERSION,
ruby_version: RUBY_VERSION,
}.tap do |payload|
payload[:metadata] = JSON.dump(metadata) unless metadata.empty?
Expand Down
5 changes: 2 additions & 3 deletions test/shopify-cli/core/monorail_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ module Core
class MonorailTest < MiniTest::Test
def setup
super
ShopifyCli::Git.stubs(:sha).returns("bb6f42193239a248f054e5019e469bc75f3adf1b")
CLI::UI::Prompt.stubs(:confirm).returns(true)
ShopifyCli::Core::Monorail.metadata = {}
end
Expand Down Expand Up @@ -66,7 +65,7 @@ def test_log_event_contains_schema_and_payload_values
success: true,
error_message: nil,
uname: RbConfig::CONFIG["host"],
cli_version: "bb6f42193239a248f054e5019e469bc75f3adf1b",
cli_version: ShopifyCli::VERSION,
ruby_version: RUBY_VERSION,
metadata: "{\"foo\":\"identifier\"}",
api_key: "apikey",
Expand Down Expand Up @@ -106,7 +105,7 @@ def test_log_event_handles_errors
success: false,
error_message: 'test error',
uname: RbConfig::CONFIG["host"],
cli_version: "bb6f42193239a248f054e5019e469bc75f3adf1b",
cli_version: ShopifyCli::VERSION,
ruby_version: RUBY_VERSION,
api_key: "apikey",
partner_id: 42,
Expand Down

0 comments on commit cb6fa88

Please sign in to comment.