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

ref(appstore-connect): Stop asking users to refresh their iTunes credentials [NATIVE-294] #29654

Merged
merged 1 commit into from
Nov 1, 2021

Conversation

relaxolotl
Copy link
Contributor

@relaxolotl relaxolotl commented Oct 29, 2021

#29513 begins work that removes the last dependency that the App Store Connect integration has on iTunes. This PR removes all of the code related to alerting the user about outdated iTunes credentials as they should no longer be used for anything.

Warnings related to incorrect, invalid, or outdated App Store Connect credentials are preserved.

related: #29531

@github-actions
Copy link
Contributor

github-actions bot commented Oct 29, 2021

size-limit report

Path Base Size (6469b6e) Current Size Change
src/sentry/static/sentry/dist/entrypoints/app.js 52.73 KB 52.72 KB -0.01% 🔽
src/sentry/static/sentry/dist/entrypoints/sentry.css 70.89 KB 70.89 KB 0%

Comment on lines -5 to -7
iTunesSessionInvalid: t(
'The iTunes session of your configured App Store Connect needs to be refreshed.'
),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

to keep the PR focused on just removing code that's no longer being used, the only change here is to delete this scenario and where it's being used.

however, this change actually leaves this map with only one entry. it may make sense in a different PR to revisit the code in this file and to re-evaluate whether it still makes sense the way it is now.

Copy link
Member

Choose a reason for hiding this comment

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

sure I can revisit this code as soon we merge this PR

Copy link
Member

@priscilawebdev priscilawebdev left a comment

Choose a reason for hiding this comment

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

code looks good to me

Comment on lines -5 to -7
iTunesSessionInvalid: t(
'The iTunes session of your configured App Store Connect needs to be refreshed.'
),
Copy link
Member

Choose a reason for hiding this comment

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

sure I can revisit this code as soon we merge this PR

@@ -493,7 +481,6 @@ def get(self, request: Request, project: Project, credentials_id: str) -> Respon
"latestBuildVersion": latestBuildVersion,
"latestBuildNumber": latestBuildNumber,
"lastCheckedBuilds": last_checked_builds,
"promptItunesSession": bool(pending_downloads and itunes_session_info is None),
Copy link
Contributor

Choose a reason for hiding this comment

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

heh, i would have gone for hardcoding this to False as that didn't need the client code to be updated at all. but i guess fully removing it is cleaner :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fewer lines of code! 🎉

Copy link
Member

Choose a reason for hiding this comment

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

Thank you for deleting client code <3

@relaxolotl
Copy link
Contributor Author

holding off on merging this until #29513 is in. i don't want to deploy a change that we want to monitor and potentially revert on a friday, so i'll be merging #29513 (and shortly afterwards this PR as well) on monday.

@relaxolotl relaxolotl removed the request for review from a team November 1, 2021 20:52
@relaxolotl relaxolotl changed the title ref(appstore-connect): Stop asking users to refresh their iTunes credentials ref(appstore-connect): Stop asking users to refresh their iTunes credentials [NATIVE-294] Nov 1, 2021
@relaxolotl relaxolotl enabled auto-merge (squash) November 1, 2021 20:54
@relaxolotl relaxolotl merged commit 04fab61 into master Nov 1, 2021
@relaxolotl relaxolotl deleted the appconnect/stop-asking-for-itunes branch November 1, 2021 21:39
@github-actions github-actions bot locked and limited conversation to collaborators Nov 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants