Wordpress-android: First preview attempt does not work for changes to previously saved drafts

Created on 31 Jul 2020  路  3Comments  路  Source: wordpress-mobile/WordPress-Android

Steps to reproduce:

  1. Create a new draft.
  2. Add a title and content.
  3. Go to More > Preview.
  4. Expect the preview to work.
  5. Make any change to the content.
  6. Go to More > Preview.
  7. Observe the preview does not open.
  8. Go to More > Preview again.

Screen Shot 2020-07-30 at Jul 30 3 58 01 PM

Result: the preview does not open the first time but does work if you try to preview a 2nd time. (1m28s)

Tested with WPAndroid 15.3 (production) and 15.4-rc-1 (TestFlight beta) on Pixel 3 Android 10 using a WordPress.com Premium site with a custom domain.

Previews [Pri] Medium [Type] Bug

All 3 comments

I noticed this again while beta testing with 15.6-rc-1鈥攊n this case, it's timing out most often and the editor stays open but sometimes the app freezes.

Video: 44s

Tested with WPAndroid 15.6-rc-1 on Pixel 3 Android 10.


App logs for the timestamp matching the video

WordPress - 15.6-rc-1 - Version code: 910
Android device name: Google Pixel 3

01 - [Aug-25 17:46 API] Dispatching action: ListAction-LIST_DATA_INVALIDATED
02 - [Aug-25 17:46 API] Dispatching action: ListAction-LIST_DATA_INVALIDATED
03 - [Aug-25 17:46 API] Dispatching action: PostAction-UPDATE_POST
04 - [Aug-25 17:46 API] Dispatching action: ListAction-LIST_DATA_INVALIDATED
05 - [Aug-25 17:46 API] Dispatching action: ListAction-LIST_DATA_INVALIDATED
06 - [Aug-25 17:46 API] Dispatching action: PostAction-UPDATE_POST
07 - [Aug-25 17:46 API] Dispatching action: ListAction-LIST_DATA_INVALIDATED
08 - [Aug-25 17:46 API] Dispatching action: ListAction-LIST_DATA_INVALIDATED
09 - [Aug-25 17:46 API] Dispatching action: PostAction-UPDATE_POST
10 - [Aug-25 17:46 API] Dispatching action: ListAction-LIST_DATA_INVALIDATED
11 - [Aug-25 17:46 API] Dispatching action: ListAction-LIST_DATA_INVALIDATED
12 - [Aug-25 17:46 API] Dispatching action: PostAction-UPDATE_POST
13 - [Aug-25 17:46 API] Dispatching action: ListAction-LIST_DATA_INVALIDATED
14 - [Aug-25 17:46 API] Dispatching action: ListAction-LIST_DATA_INVALIDATED
15 - [Aug-25 17:46 API] Dispatching action: PostAction-UPDATE_POST
16 - [Aug-25 17:46 API] Dispatching action: ListAction-LIST_DATA_INVALIDATED
17 - [Aug-25 17:46 API] Dispatching action: ListAction-LIST_DATA_INVALIDATED
18 - [Aug-25 17:46 API] Dispatching action: PostAction-UPDATE_POST
19 - [Aug-25 17:46 API] Dispatching action: ListAction-LIST_DATA_INVALIDATED
20 - [Aug-25 17:46 API] Dispatching action: ListAction-LIST_DATA_INVALIDATED
21 - [Aug-25 17:46 API] Dispatching action: PostAction-UPDATE_POST
22 - [Aug-25 17:46 API] Dispatching action: ListAction-LIST_DATA_INVALIDATED
23 - [Aug-25 17:46 API] Dispatching action: ListAction-LIST_DATA_INVALIDATED
24 - [Aug-25 17:46 POSTS] Editor post loading state machine: transition from NONE to REMOTE_AUTO_SAVING_FOR_PREVIEW
25 - [Aug-25 17:46 API] Dispatching action: PostAction-UPDATE_POST
26 - [Aug-25 17:46 API] Dispatching action: ListAction-LIST_DATA_INVALIDATED
27 - [Aug-25 17:46 STATS] 馃數 Tracked: editor_draft_saved, Properties: {"blog_id":159889361,"post_id":1748,"has_gutenberg_blocks":true,"post_type":"post","post_format":"standard","is_jetpack":false}
28 - [Aug-25 17:46 MAIN] UploadService > Created
29 - [Aug-25 17:46 API] Dispatching action: ListAction-LIST_DATA_INVALIDATED
30 - [Aug-25 17:46 MEDIA] MediaUploadHandler > Created
31 - [Aug-25 17:46 POSTS] PostUploadHandler > Created
32 - [Aug-25 17:46 API] Dispatching action: ListAction-LIST_DATA_INVALIDATED
33 - [Aug-25 17:46 POSTS] PostUploadHandler - REMOTE_AUTO_SAVE. Post: More columns
34 - [Aug-25 17:46 API] Dispatching action: PostAction-FETCH_POST_STATUS
35 - [Aug-25 17:46 API] Dispatching action: PostAction-FETCHED_POST_STATUS
36 - [Aug-25 17:46 API] Dispatching action: PostAction-PUSH_POST
37 - [Aug-25 17:46 API] Dispatching action: UploadAction-PUSHED_POST
38 - [Aug-25 17:46 API] Dispatching action: PostAction-PUSHED_POST
39 - [Aug-25 17:46 API] Dispatching action: ListAction-LIST_DATA_INVALIDATED
40 - [Aug-25 17:46 API] Dispatching action: ListAction-LIST_DATA_INVALIDATED
41 - [Aug-25 17:46 API] Dispatching action: ListAction-LIST_DATA_INVALIDATED
42 - [Aug-25 17:46 API] Dispatching action: ListAction-LIST_REQUIRES_REFRESH
43 - [Aug-25 17:46 POSTS] PostUploadHandler > Completed
44 - [Aug-25 17:46 API] Dispatching action: PostAction-FETCH_POST_LIST
45 - [Aug-25 17:46 API] Dispatching action: PostAction-FETCH_POST_LIST
46 - [Aug-25 17:46 API] Dispatching action: PostAction-FETCH_POST_LIST
47 - [Aug-25 17:46 API] Dispatching action: PostAction-UPDATE_POST
48 - [Aug-25 17:46 API] Dispatching action: ListAction-LIST_DATA_INVALIDATED
49 - [Aug-25 17:46 API] Dispatching action: UploadAction-CANCEL_POST
50 - [Aug-25 17:46 POSTS] updateNotificationErrorForPost: There was an error uploading the media in this page: We couldn't complete this action..
51 - [Aug-25 17:46 STATS] 馃數 Tracked: notification_shown, Properties: {"notification_type":"post_upload_error"}
52 - [Aug-25 17:46 API] Dispatching action: ListAction-LIST_DATA_INVALIDATED
53 - [Aug-25 17:46 MAIN] UploadService > Completed
54 - [Aug-25 17:46 POSTS] Editor post loading state machine: transition from REMOTE_AUTO_SAVING_FOR_PREVIEW to PREVIEWING
55 - [Aug-25 17:46 API] Dispatching action: ListAction-LIST_DATA_INVALIDATED
56 - [Aug-25 17:46 API] Dispatching action: PostAction-UPDATE_POST
57 - [Aug-25 17:46 API] Dispatching action: ListAction-LIST_DATA_INVALIDATED
58 - [Aug-25 17:46 API] Dispatching action: UploadAction-CANCEL_POST
59 - [Aug-25 17:46 POSTS] updateNotificationErrorForPost: There was an error uploading the media in this page: We couldn't complete this action..
60 - [Aug-25 17:46 STATS] 馃數 Tracked: notification_shown, Properties: {"notification_type":"post_upload_error"}
61 - [Aug-25 17:46 API] Dispatching action: ListAction-LIST_DATA_INVALIDATED
62 - [Aug-25 17:46 MAIN] UploadService > Destroyed
63 - [Aug-25 17:46 API] Dispatching action: ListAction-LIST_DATA_INVALIDATED
64 - [Aug-25 17:46 API] Dispatching action: PostAction-FETCHED_POST_LIST
65 - [Aug-25 17:46 API] Dispatching action: ListAction-FETCHED_LIST_ITEMS
66 - [Aug-25 17:46 API] Dispatching action: PostAction-FETCHED_POST_LIST
67 - [Aug-25 17:46 API] Dispatching action: ListAction-FETCHED_LIST_ITEMS
68 - [Aug-25 17:46 API] Dispatching action: PostAction-FETCHED_POST_LIST
69 - [Aug-25 17:46 API] Dispatching action: ListAction-FETCHED_LIST_ITEMS
70 - [Aug-25 17:46 STATS] 馃數 Tracked: editor_closed
71 - [Aug-25 17:46 UTILS] No valid URLs passed to URLFilteredWebViewClient! HTTP Links in the page are NOT disabled, and ALL URLs could be loaded by the user!!
72 - [Aug-25 17:46 POSTS] Editor post loading state machine: transition from PREVIEWING to NONE
73 - [Aug-25 17:46 API] Dispatching action: PostAction-UPDATE_POST
74 - [Aug-25 17:46 API] Dispatching action: ListAction-LIST_DATA_INVALIDATED
75 - [Aug-25 17:46 STATS] 馃數 Tracked: editor_opened, Properties: {"blog_id":159889361,"post_id":1748,"has_gutenberg_blocks":true,"post_type":"post","post_format":"standard","is_jetpack":false,"editor_has_hw_disabled":"0"}
76 - [Aug-25 17:46 API] Dispatching action: ListAction-LIST_DATA_INVALIDATED
77 - [Aug-25 17:46 STATS] 馃數 Tracked: editor_closed
78 - [Aug-25 17:46 UTILS] trackLastActivity, activityId: Post List
79 - [Aug-25 17:46 UTILS] SnackbarSequencer > New item added
80 - [Aug-25 17:46 UTILS] SnackbarSequencer > invoking start()
81 - [Aug-25 17:46 UTILS] SnackbarSequencer > prepareSnackBar message [1 file not uploaded
There was an error uploading the media in this page: We couldn't complete this action..]
82 - [Aug-25 17:46 UTILS] SnackbarSequencer > before delay
83 - [Aug-25 17:46 STATS] 馃數 Tracked: editor_session_end, Properties: {"has_unsupported_blocks":"0","editor":"gutenberg","content_type":"new","session_id":"74dba38b-51c7-4566-8769-4c2a0e723537","post_type":"post","blog_type":"wpcom","editor_has_hw_disabled":"0","outcome":"save"}
84 - [Aug-25 17:46 UTILS] trackLastActivity, activityId: My Site
85 - [Aug-25 17:46 API] Dispatching action: AccountAction-FETCH_ACCOUNT
86 - [Aug-25 17:46 PROFILING] Visual Editor Startup: begin
87 - [Aug-25 17:46 PROFILING] Visual Editor Startup: 0 ms, EditorFragment.onCreate
88 - [Aug-25 17:46 PROFILING] Visual Editor Startup: 153847 ms, WPMainActivity.onResume
89 - [Aug-25 17:46 PROFILING] Visual Editor Startup: end, 153847 ms
90 - [Aug-25 17:46 API] WhatsNewStore: fetchWhatsNew
91 - [Aug-25 17:46 API] Dispatching action: AccountAction-FETCHED_ACCOUNT
92 - [Aug-25 17:46 UTILS] SnackbarSequencer > after delay
93 - [Aug-25 17:46 UTILS] SnackbarSequencer > item removed from the queue
94 - [Aug-25 17:46 UTILS] SnackbarSequencer > finishing start()
95 - [Aug-25 17:46 STATS] 馃數 Tracked: me_tab_accessed
96 - [Aug-25 17:46 READER] reader post list > saving instance state
97 - [Aug-25 17:46 READER] reader post list > saving instance state
98 - [Aug-25 17:46 STATS] 馃數 Tracked: support_opened, Properties: {"origin":"ME_SCREEN_HELP"}
99 - [Aug-25 17:46 UTILS] trackLastActivity, activityId: Help Screen

This came up again in an app review for WPAndroid 15.7, also see https://github.com/wordpress-mobile/WordPress-Android/issues/13115 hat tip @reginabally 鉂わ笍

pls update the preview button, if u want to preview while ur yet to save ur draft / post; after u press the preview button it saves the draft / post first then u have to press it again to really preview it; what u should do rather is after u press the preview button while ur yet to save ur draft / post, show still the process that its being save (or better not), then proceed the with preview already ok

Date of review: Oct 1, 2020, 03:20
Device: Redmi 9
App version code: 924
App version name: 15.7

馃憢 @mchowning, can this issue here related to the save-on-exit machinery? I think we should bump its priority and address it if so.

Was this page helpful?
0 / 5 - 0 ratings