Skip to content

#538 - Manage WordPress.com blogs#692

Merged
tomwitkin merged 75 commits intodevelopfrom
feature/538-manage-blogs
Dec 4, 2013
Merged

#538 - Manage WordPress.com blogs#692
tomwitkin merged 75 commits intodevelopfrom
feature/538-manage-blogs

Conversation

@koke
Copy link
Member

@koke koke commented Nov 27, 2013

Automatically manage WordPress.com account with multiple blogs.

manage-blogs

Fixes #538

koke added 30 commits November 19, 2013 18:21
If settings or other modal is present, dismiss it and force the Login screen
If users revoke access from the web, the app should respect that
Bigger commit than I'd like, but here's the summary:

- Addded new WordPressComOAuthClient to handle OAuth2
- Skip the add blogs screen on wp.com and just add them all
- Prefetch reader/notifications after successful login
- Deprecate `[WordPressComApi sharedApi]` and return the default
  account's API instead.
Conflicts:
	WordPress/WordPress.xcodeproj/project.pbxproj
Previously we'd call wp.getUsersBlogs even if we have all we need from
the first wp.getOptions call

Also did some cleanup and removed unused methods
Since the view controller is about to be dismissed, if we pop the
jetpack controller it'll go back to login for a moment while it animates
out.

Since the background switches from green to blue, it was a very annoying
glitch.
- Use a dedicated anonymous REST API object for unauthenticated calls. Refs #22
- We get all we need to create the blog from /sites/new, don't make any
  extra calls
- Auto login the user if registration is successful
Conflicts:
	WordPress/Classes/AddSiteViewController.h
	WordPress/Classes/AddSiteViewController.m
	WordPress/Classes/AddUsersBlogsViewController.h
	WordPress/Classes/AddUsersBlogsViewController.m
	WordPress/Classes/BlogListViewController.m
	WordPress/Classes/CreateWPComBlogViewController.m
	WordPress/Classes/SettingsViewController.m
	WordPress/Classes/WordPressAppDelegate.h
	WordPress/Classes/WordPressAppDelegate.m
	WordPress/WordPressApi/WordPressComApi.m
	WordPress/WordPressTest/AccountTest.m
Copy link
Contributor

Choose a reason for hiding this comment

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

Here and elsewhere, we now have the luxury of the much cleaner Blog *blog = _blogs[indexPath.row]

@mikejohnstn
Copy link
Contributor

Done reviewing this. I had mostly small comments/observations, a couple more serious things. Should be OK to merge once they're addressed.

I already mentioned this, but worth mentioning again: way too much code in this pull. Makes it very hard to review with confidence.

koke added 2 commits December 4, 2013 18:49
I don't feel much better about this than the login controller triggering
it, but let's fix it properly on #22
@tomwitkin
Copy link
Contributor

Recent changes look good, especially since refreshing the reader will be address in #22.

tomwitkin added a commit that referenced this pull request Dec 4, 2013
@tomwitkin tomwitkin merged commit d920ad3 into develop Dec 4, 2013
@tomwitkin tomwitkin deleted the feature/538-manage-blogs branch December 4, 2013 18:08
astralbodies added a commit that referenced this pull request Dec 6, 2013
…ssComApi.h in #575 PR #692.  This should be part of #22 and checked into develop when the warnings are resolved
pivotal-rebecca pushed a commit that referenced this pull request Dec 9, 2013
#699 Use cell registration instead of inline cell creation where possible. WRT to @astralbodies comment, not fixing the string as the file is deleted in #692
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automatically manage a WordPress.com user's blogs

4 participants