Closed diegoreymendez closed 3 months ago
In case of no connectivity
When saving a new category first we check to see if the category already exist using categoryService findWithBlogObjectID
if it exists and the blog categories are available, we don't show the network alert.
If the category doesn't exist, we attempt to create a new category by calling categoryService.createCategoryWithName
(which in turn calls TaxonomyServiceRemote.createCategory
). When this call fails with an error other than 403, we call [WPError showXMLRPCErrorAlert:error];
(not sure why it is called like that) that eventually show a generic error.
A few questions for discussion:
Should we try and queue the request and retry until success or timeout? (maybe use something like AlamoFire RequestRetrier ?
Do want to implement some sort of behavior other than failing and notifying the user for this feature?
If the answer to 2 is yes, how do we want to notify the user that their request will be executed when regaining connectivity?
If the answer to 2 is no, how do we want to notify the user ? Is snack bar applicable here?
@diegoreymendez , @megsfulton
What I would assume from a user perspective would be that any post settings are saved and stored the same way modifications to post content would be.
Is it possible to save the new category locally and handle the creation of the category with the post upload?
My initial expectation would be to match what @megsfulton described above. Let's see what we need to make that happen and if it's possible for us to do so.
Post Settings > Categories > Add Category - typing in a category and pressing save in upper right displays “Error / The internet connection appears to be offline dialog”