Skip to content

Edit Tasks (App) #75

@JCharante

Description

@JCharante

App:

  • When the user clicks the edit button they should send a post request to the server (/refreshTask) with two parameters (the task ID & their uuid).
  • The server will response with the following in a json object under the key 'status' and with the task information under 'data'
  • Success if the user requesting it has proper permissions to view the task, the tasks still exists, and no required parameters are missing
  • Missing if the uuid and/or the task ID are missing
  • Error if the task has been deleted or the user does not have permissions to view that task
  • The Edit Task Activity's Edit Text Fields will be repopulated by the locally stored version of the task (which would have been updated a second earlier)
  • When the user hits the submit changes button, a post request will be sent to (/updateTask) with six parameters:
  • task ID (mID)
  • task Description (mDescription)
  • task title (mtask)
  • task assignee (mAssignee)
  • uuid (uuid)
  • task due date (mDueDate)

The server will return a string with the following

  • Missing if one of those 6 parameters are missing
  • Error if the user does not have proper permissions to modify the task or the task has been deleted since then
  • Success if the user has permission to modify the task and the task has not been deleted.
  • Create the methods in ClientHelper to access these endpoints

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions