Skip to content

Login states and webservice results to test #313

@AlexanderPico

Description

@AlexanderPico

Login state

  1. Not logged in -- currently, I can open the editor, make edits and save them while not logged in... though it fails with a 500 status in the responseText. You shouldn't even see the "Quick Edit" button.
  2. Logged in -- common case that we've been testing
  3. Log in expired while editor is open -- need to figure out how to prevent this, ideally. In addition, we should safeguard against it by checking for this condition (with each edit) as part of the logic of whether we show users the "save" button.

Webservice results

  1. 200, saved -- should return a newly minted revision number that pvjs can use
  2. 200, not saved -- show message? offer suggestion or help link?
    a. latest revision number has changed
    b. login state not valid
    c. other reasons?
  3. 500, no response -- show message? offer suggestion or help link?
    a. web services are broken
  4. Offline -- show message? offer suggestion or help link?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions