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

Add support for app-level test_info #9055

Merged
merged 3 commits into from
May 3, 2017
Merged

Add support for app-level test_info #9055

merged 3 commits into from
May 3, 2017

Conversation

mpirri
Copy link
Contributor

@mpirri mpirri commented May 3, 2017

So that we can set beta_app_feedback_email and beta_app_description

Checklist

  • I've run bundle exec rspec from the root directory to see all new and existing tests pass
  • I've followed the fastlane code style and run bundle exec rubocop -a to ensure the code style is valid
  • I've read the Contribution Guidelines
  • I've updated the documentation if necessary.

Add support for setting TestFlight app-level test info. Previously we had tried to set the beta feedback email and app description through build-level test-info, but this does not work. As such, when specifying feedback email and app description through pilot, we now set the app-level test info.

So that we can set beta_app_feedback_email and beta_app_description
# for an application. Note that this structure, although looking similar to build test_info
# is test information about the application

attr_accessor :test_info
Copy link
Contributor

Choose a reason for hiding this comment

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

Why does a test info object have a test_info attribute?

@KrauseFx
Copy link
Member

KrauseFx commented May 3, 2017

Looks awesome. What's the easiest way to test it on a production system? As part of pilot, right?

@mpirri
Copy link
Contributor Author

mpirri commented May 3, 2017

@KrauseFx I wrote a RakeFile to test it, but yeah, easiest way is to run from pilot. Automated testing in pilot is minimal. 😢

Copy link
Contributor

@ohayon ohayon left a comment

Choose a reason for hiding this comment

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

Two tiny little things but otherwise 🚀

rescue => ex
UI.user_error!("Could not set changelog: #{ex}")
end
UI.success "Successfully set the changelog for build"
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this might be nicer in the begin block.

if should_update_app_test_information(options)
app_test_info = Spaceship::TestFlight::AppTestInfo.find(app_id: build.app_id)
app_test_info.test_info.feedback_email = options[:beta_app_feedback_email] if options[:beta_app_feedback_email]
app_test_info.test_info.description = options[:beta_app_description] if options[:beta_app_description]
app_test_info.save_for_app(app_id: build.app_id)
begin
app_test_info.save_for_app(app_id: build.app_id)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we put a UI.success call here with some nice message?

Copy link
Contributor

@ohayon ohayon left a comment

Choose a reason for hiding this comment

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

🐑

@mpirri mpirri merged commit 8f176f1 into master May 3, 2017
@mpirri mpirri deleted the set-app-test-info branch May 3, 2017 20:48
@mpirri mpirri mentioned this pull request May 3, 2017
'demoAccountPassword' => 'Password',
'demoAccountRequired' => false,
'notes' => 'notes!!'
}
Copy link

Choose a reason for hiding this comment

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

Could the pilot docs please be updated to show an example of adding these settings to your Fastfile (or however they're meant to be set). Thanks.

Choose a reason for hiding this comment

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

Ah, scratch that, I found them.

@fastlane-bot
Copy link

Congratulations! 🎉 This was released as part of fastlane 2.28.8 🚀

@fastlane fastlane locked and limited conversation to collaborators Aug 2, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants