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
[spaceship] Allow for removing app from sale by updating territories #20324
[spaceship] Allow for removing app from sale by updating territories #20324
Conversation
…with an empty array of ids.
Code looks good. Maybe add documentation to the method stating that empty array removes the app from sale. Is the |
Thanks for review @lacostej . I'll add documentation.
You're right. |
…ng territories with an empty array of ids.
@lucgrabowski that makes me worried that someone has code somewhere that would cause this unintended behavior. Do we have a better way of rolling this without risking this? Maybe it's acceptable as we can always roll it out... WDYT? |
@lacostej I'm wondering right now if it wouldn't be better to add a param update(client: nil, attributes: nil, app_price_tier_id: nil, territory_ids: nil, allow_removing_from_sale: false) and: patch_app(app_id: nil, attributes: {}, app_price_tier_id: nil, territory_ids: nil, allow_removing_from_sale: false) That way if someone has code directly using those methods, we wouldn't break it. |
…r removing apps from sale
Hey @lucgrabowski 👋 Thank you for your contribution to fastlane and congrats on getting this pull request merged 🎉 Please let us know if this change requires an immediate release by adding a comment here 👍 |
Congratulations! 🎉 This was released as part of fastlane 2.207.0 🚀 |
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 validMotivation and Context
There are 3 discussions with questions about removing apps from sale: #19040, #17032, #19375
This change allows for removing an app from sale by updating a list of territories.
Description
It was not possible to remove app from all territories as app update method expected either
nil
or an array ofterritory_ids
with at least one territory id.Just for explain use of
availableInNewTerritories
:availableInNewTerritories
attribute is responsible forNew Countries or Regions
checkboxTesting Steps
Tested by removing an app from sale using code above in
irb