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

Always request and use fetched edit token. #1162

Merged
merged 3 commits into from
Jan 17, 2017

Conversation

montehurd
Copy link
Contributor

https://phabricator.wikimedia.org/T153106

Also removed now unused persisting of edit tokens to keychain.

Also removed now unused persisting of edit tokens to keychain.
upload();
EditTokenFetcher *tokenFetcher = (EditTokenFetcher *)sender;

(void)[[WikiTextSectionUploader alloc] initAndUploadWikiText:tokenFetcher.wikiText
Copy link
Contributor

Choose a reason for hiding this comment

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

seems like the WikiTextSectionUploader (and the EditTokenFetcher initialized on line 675) should be assigned to properties and retained. Having unowned objects like this could lead to them being dealloc'd and not actually completing the fetch.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, good catch. Want me to fix that as part of this PR?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, would be good to fix it in this PR

@joewalsh joewalsh merged commit ae612ce into develop Jan 17, 2017
@joewalsh joewalsh deleted the bug/always-fetch-edit-token/T153106 branch January 17, 2017 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants