Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Submission detail of each task's submission #1324

Merged
merged 2 commits into from
Mar 5, 2024

Conversation

Sujanadh
Copy link
Collaborator

@Sujanadh Sujanadh commented Mar 4, 2024

What type of PR is this? (check all applicable)

  • πŸ• Feature
  • πŸ› Bug Fix
  • πŸ“ Documentation Update
  • 🎨 Style
  • πŸ§‘β€πŸ’» Code Refactor
  • πŸ”₯ Performance Improvements
  • βœ… Test
  • πŸ€– Build
  • πŸ” CI
  • πŸ“¦ Chore (Release)
  • ⏩ Revert

Related Issue

Describe this PR

This PR updates the exisiting task_submission endpoint where new param submission_id is added which is used to fetch each submission detail from odk-central.

Response

{
  "start": "2024-03-04T17:33:42.783+05:45",
  "end": "2024-03-04T17:34:31.232+05:45",
  "today": "2024-03-04",
  "phonenumber": "2312",
  "deviceid": "collect:v1M8715bjhnkw5xg",
  "username": "svcfmtm",
  "email": "NOT IMPLEMENTED",
  "instructions": null,
  "warmup": null,
  "all": {
    "model": "basic",
    "existing": "802349380",
    "xid": "802349380",
    "xlocation": "27.714485 85.317777 0 0; 27.714428 85.318276 0 0; 27.714526 85.31829 0 0; 27.714583 85.317792 0 0; 27.714485 85.317777 0 0",
    "buildings": {
      "category": "housing",
      "name": "project_224_task_2313",
      "building_material": null,
      "building_levels": null,
      "religion": null,
      "denomination": null,
      .
      .
      .
    },
    "gps": {
      "point": null,
      "comment": null,
      "image": null
    }
  },
  "details": {
    "power": null,
    "generator_source": null,
    .
    .
  },
  "meta": {
    "instanceID": "uuid:80d1cad0-fb9d-42c7-a5e5-c5ad8f83a68a"
  },
  "__id": "uuid:80d1cad0-fb9d-42c7-a5e5-c5ad8f83a68a",
  "__system": {
    "submissionDate": "2024-03-04T11:49:32.242Z",
    "updatedAt": null,
    "submitterId": "51441",
    "submitterName": "project_sujan_test_task_2312",
    "attachmentsPresent": 0,
    "attachmentsExpected": 0,
    "status": null,
    "reviewState": null,
    "deviceId": "collect:v1M8715bjhnkw5xg",
    "edits": 0,
    "formVersion": "2024-03-04T11:47:19.652933"
  }
}

Checklist before requesting a review

[optional] What gif best describes this PR or how it makes you feel?

@Sujanadh Sujanadh requested a review from spwoodcock March 4, 2024 16:42
@Sujanadh Sujanadh self-assigned this Mar 4, 2024
@github-actions github-actions bot added the backend Related to backend code label Mar 4, 2024
@github-actions github-actions bot added the frontend Related to frontend code label Mar 4, 2024
@spwoodcock spwoodcock merged commit 3e82720 into development Mar 5, 2024
6 checks passed
@spwoodcock spwoodcock deleted the feat/submission-detail branch March 5, 2024 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Related to backend code frontend Related to frontend code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Submission detail of each submission.
2 participants