[spaceship] Use new app store statuses to filter app versions and app infos #21895
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Checklist
bundle exec rspec
from the root directory to see all new and existing tests passbundle exec rubocop -a
to ensure the code style is validci/circleci
builds in the "All checks have passed" section of my PR (connect CircleCI to GitHub if not)Motivation and Context
It is a follow up PR changing filters in requests to use new app store statuses introduced in #21890
Description
This PR changes methods used to filter
AppInfo
andAppStoreVersion
by state inApp
model.AppStoreVersion
byappVersionState
attribute (instead ofappStoreState
that is deprecated) usingAppStoreVersion::AppVersionState
values.AppInfo
bystate
attribute (instead ofappStoreState
that is deprecated) usingAppInfo::AppStoreState
values.Searching for
DEVELOPER_REMOVED_FROM_SALE
is removed from fetching liveapp_info
andapp_store_version
.Checking
PROCESSING_FOR_DISTRIBUTION
inget_live_app_store_version
Functionality that should be tested:
deliver
tool, submitting for review, canceling review submission (reject_if_possible), downloading and uploading metadata and screenshots (also withuse_live_version
option), synchronizing screenshots when uploading to appstore connect,Testing Steps
I tested changes during development in
spaceship playground
by running filtering methods and checking values in filters.I checked filters in requests and responses with a proxy (with SPACESHIP_DEBUG=1 enabled, https://github.com/fastlane/fastlane/blob/master/spaceship/docs/Debugging.md) when running downloading metadata and screenshots. I also tested generating html summary.
Help in testing precheck, uploading builds, metadata and screenshots, synchronizing screenshots, submitting apps for review, using actions, downloading dsyms would be appreciated.
Update
Gemfile
and run bundle install:gem "fastlane", :git => "https://github.com/fastlane/fastlane.git", :branch => "lucgrabowski-use-new-status-for-filters"