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): Make iTunes credentials optional and stop (re)writing them to DB #29863

Merged
merged 2 commits into from
Nov 9, 2021

Conversation

relaxolotl
Copy link
Contributor

As suggested in #29829, this marks the fields storing iTunes credentials as optional prior to their full removal, and also adds in code to stop writing these to the DB.

Current behaviour is to write in placeholder values into fields meant to store iTunes credentials. Now, new App Store Connect configs will no longer contain these fields, and existing configs that are edited after this is merged and deployed will also have these fields erased.

for field in dataclasses.fields(self):
if not getattr(self, field.name, None):
# Takes advantage of the fact that all non-optional fields are str.
if not getattr(self, field.name, None) and field.type == str:
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't really understand why this condition needed changing? You removed the fields, all fields are still required.

I don't think this does anything wrong either, this will still work. I only don't know why the extra field.type == str check is needed.

Base automatically changed from appconnect/extended-validate to master November 9, 2021 15:17
@relaxolotl relaxolotl requested a review from a team as a code owner November 9, 2021 15:17
@relaxolotl relaxolotl force-pushed the appconnect/optional-itunes-creds branch from b773cd1 to c958597 Compare November 9, 2021 15:24
@relaxolotl relaxolotl merged commit 393b078 into master Nov 9, 2021
@relaxolotl relaxolotl deleted the appconnect/optional-itunes-creds branch November 9, 2021 17:37
@github-actions github-actions bot locked and limited conversation to collaborators Nov 25, 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.

3 participants