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

Feature: option to reject previous builds and submissions on ASC submission #289

Merged
merged 34 commits into from
Feb 3, 2023

Conversation

VeArnold
Copy link
Contributor

@VeArnold VeArnold commented Dec 1, 2022

This PR aims to introduce a few enchantments to existing logic. Namely, if there's an active submission in either App Store or TestFlight, any further attempts to create new submissions will fail. In this PR, options are introduced to solve this issue for both App Store review and TestFlight review.

Updates to existing actions:

  • new option --beta-review-state for the action app-store-connect apps builds
  • new option --cancel-previous-submissions for the action app-store-connect builds submit-to-app-store
  • new option --expire-build-submitted-for-review for the action app-store-connect builds submit-to-testflight
  • new option --beta-review-state for the action app-store-connect list-builds
  • new options --expire-build-submitted-for-review and --cancel-previous-submissions for the action app-store-connect publish

Newly added actions:

  • app-store-connect apps expire-builds
  • app-store-connect builds app
  • app-store-connect apps expire-build-submitted-for-review
  • app-store-connect builds expire
  • app-store-connect apps cancel-review-submissions
  • app-store-connect apps list-review-submissions

QA:

  • build filtering with --beta-review-state (single and multiple values) ✅
  • build filtering for app-store-connect review-submissions list based on state ✅
  • review submissions are correctly listed (platform, state args function as wanted) ✅
  • canceling submissions accepts single and multiple types ✅
  • expire-builds expires all builds except the one passed as an argument ✅
  • expire-builds accepts multiple values ✅
  • expire targets a specific build and expires it ✅
  • expire-build-submitted-for-review only expires a build that is IN_REVIEW or WAITING_FOR_REVIEW state ✅
  • build is expired before creating submission ✅
  • app-store-connect builds app returns application info for given build ✅

Resolves #288.

@priitlatt
Copy link
Contributor

Please update description with information about what actions were updated, removed and added.

@priitlatt priitlatt self-requested a review December 1, 2022 13:48
@priitlatt priitlatt added the enhancement New feature or request label Dec 1, 2022
@VeArnold VeArnold marked this pull request as ready for review December 5, 2022 05:46
@VeArnold VeArnold requested a review from priitlatt January 30, 2023 14:12
Copy link
Contributor

@priitlatt priitlatt left a comment

Choose a reason for hiding this comment

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

Maybe some things could be improved a little. Also we're missing updates to docs.

…sions.py

Co-authored-by: Priit Lätt <priit@nevercode.io>
@VeArnold VeArnold marked this pull request as draft January 31, 2023 13:07
@VeArnold VeArnold requested a review from priitlatt February 1, 2023 00:22
@VeArnold VeArnold assigned priitlatt and unassigned priitlatt Feb 1, 2023
Copy link
Contributor

@priitlatt priitlatt left a comment

Choose a reason for hiding this comment

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

Needs some more work on it.

CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Show resolved Hide resolved
src/codemagic/tools/_app_store_connect/arguments.py Outdated Show resolved Hide resolved
@VeArnold VeArnold marked this pull request as draft February 1, 2023 18:19
@VeArnold VeArnold marked this pull request as ready for review February 2, 2023 01:00
@VeArnold VeArnold requested a review from priitlatt February 2, 2023 01:00
This reverts commit cc482c6.
Co-authored-by: Priit Lätt <priit@nevercode.io>
Copy link
Contributor

@priitlatt priitlatt left a comment

Choose a reason for hiding this comment

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

No more complaints. Everything looks good.

@priitlatt
Copy link
Contributor

@VeArnold, great job with this feature development! 👍

@priitlatt priitlatt removed their assignment Feb 2, 2023
@VeArnold VeArnold merged commit eb81dd2 into master Feb 3, 2023
@VeArnold VeArnold deleted the feature/reject-previous-app-store-builds branch February 3, 2023 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove existing builds from review with publish
2 participants