-
Type: Story
-
Status: Closed (View Workflow)
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 3.1 Larks
-
Fix Version/s: 3.3 Larks
-
Sprint:3.3 Larks
As a user, I don't want to miss my topic`s text by closing tab by mistake or connection lost.
So I want to save my text during writing.
Acceptance criteria:
- Topic`s text should be saved every 15 sec and on moving focus (including closing the page and opening other applications). So, user can close the page, open it again and see the text in Create Topic dialog.
- Draft must be deleted when user clears message by backspace or ctrl+A and del. This must happen immediately, we don't have to wait 15 seconds.
- User should not have special DELETE_OWN_POST permission to delete the Draft (so, every user who can create a topic can delete this draft also).
- Draft should be deleted automatically when the topic is posted.
- Draft should be ignored by search.
- Acceptable number of symbols in drafts can't be more than in topics. If the text has more symbols than permitted, a warning message appears below the field with highlighting field. Text that contains 1 symbol can be saved as a draft.
- Draft should have such attributes as date and time of last saving. When draft is saved for the first time,the text is "Saved just now"; and for the second a grey label "Saved N seconds (or minutes) ago" must be shown. If that happened more than an hour ago, then it just shows the date and time. Time in label is updated every 5 sec during 1st minute after saving, every minute - during 1st hour after saving, every hour - during 1 day after saving, then date of saving is shown.
- User topic`s post count must not be incremented by a draft.
- A warning popup must be shown if the draft saving didn't succeed saying: "Connection to the server was lost, please save your text locally". Message should be shown every time when connection is lost.
- A topic title can be saved as a Draft without any message.
- A message can be saved as a Draft with no title.
- A poll can be also saved as a Draft. If discussion contains a poll items and/or poll title - it should be saved too.
- User can create Discussion draft with poll/poll options, then close this one and open draft in Q&A/CodeReview creation page. The title topic and a message body will be saved in Drafts.
- User can create Discussion draft with poll/poll options, then close this one and open draft in Q&A/CodeReview creation page, close it and open as a Discussion topic creation - poll options, poll title and a message body should be shown.
- Additional checkboxes and poll end date are not saved.
- Story should be implemented for discussion topic, Q&A and Code review (not comments, just topic)
- Drafts for topic should not be available in Recent Activities and Topic without answer.
- If a User gets logged out, he or she receives a message "You logged out'.
- User is allowed to have only one Draft.
- Draft is not attached to the any branch.
- All fields should have validation only for max length and max items count in poll options list.
- If User creates topic draft and leave topic creation page - he/she can see his/her draft when he/she opens new topic page again.
Justification on when to save Draft:
- It's not likely that user removes the content and then he accidentally leaves the page. This case is not realistic. Therefore we respect all the actions of the user as intentional and simply save Topic Draft once in period.
- Topic Draft must be also saved when user clicks somewhere outside of the text area - e.g. for cases when he closes the tab accidentally or presses Back or Forward.
- Also it's decided to remove Topic Draft right away when user removes the whole content because otherwise the content will be there when he removes. Even if he intentionally removed it.
Known bugs
Bug | Link | TC | Status | |
---|---|---|---|---|
1 | After deleting text in 'Message content' area text in other fields deleted | link | fixed | |
2 | After deleting text in 'Topic title' area draft isn't deleted | link | fixed | |
3 | Poll title and options are not saved after changing topic type | link | fixed | |
4 | Draft are not deleted after publishing | link | fixed | |
5 | Date of draft saving is counted from 01.01.1970 | link | fixed | |
6 | Option. Options number save only 49 items. | link | fixed | |
7 | Option. Option Item length saved only 49 symbols | link | fixed | |
8 | Date disappears in draft answer in Q&A topic | link | fixed | |
9 | Message about saving draft appears on empty QnA topics creation page. | link | fixed | |
10 | Displayed seconds passed from saving draft isn't multiple of 5. | link | won't fix | |
11 | Error messages about size of text fields are in one line | link | fixed | |
12 | Error messages about sizes of 'Message content', 'Poll', 'Option list' aren't highlighted red | link | fixed | |
13 | Possibility to add topic`s draft without CREATE_POSTS permission by fiddler. | link | QA-2967 | fixed |
14 | Time saving isn`t disappeared after deleting 1 simbol of post in current Discussion | link | fixed | |
15 | Error 404 appears in Console after topic editing | link | fixed | |
16 | Error 400 appears in Console after deleting message content in topic editing | link | fixed | |
17 | Error message about size in Topic title field isn`t disappeared after editing | link | fixed | |
18 | No error message when posting message with only one symbol | link | fixed | |
19 | If we submit invalid post body, fix the body and refresh - the error is still there | link | To be fixed in JC-2272 | |
20 | Validation message about length doesn't disappear after deleting extra symbol | link | JC-2274 | |
21 | Incorrect error message about poll item length | link | JC-2275 |
- relates to
-
JC-2272 Post creation: After validation error the error persists even if it's fixed
- In Progress
-
JC-2280 Null/Duplicate constraint violation for Topic Draft
- Reopened
-
JC-1739 Save Drafts on writing posts
- Closed
-
QA-2946 Test based on state-transition diagram
- Open
- Testing discovered
-
JC-2274 Validation message about field length in drafts after changing focus doesn't disappear after deleting extra symbol
- Closed
-
JC-2275 Incorrect error message in drafts about poll item length
- Closed
- links to