medic / angular10-migration

0 stars 0 forks source link

Error when new report submitted for a contact that has tasks, while viewing contact details #102

Open dianabarsan opened 3 years ago

dianabarsan commented 3 years ago

To replicate:

  1. Create a task config that you can trigger easily (or use one from default config)
  2. Login as an offline user and open a contact detail page.
  3. In a different tab, logged in as another user (any type of user), submit a report that would generate the task mentioned at (1) for the contact that the user mentioned at (2) is viewing.
  4. Back to the user from (2), hit sync in the hamburger menu.
  5. Observe error:

When reloading, the contact loading is halted: image

And this error appears in the console. image

dianabarsan commented 3 years ago

cc @njogz

dianabarsan commented 3 years ago

On subsequent tests, when I submit any kind of report against a person that has tasks, while viewing the contacts detail page with a user that has tasks for this contact, generates this error.

So, I'm updating the replication steps:

  1. Create a task config that you can trigger easily (or use one from default config) or use a contact that has tasks
  2. Login as an offline user and open a contact detail page.
  3. In a different tab, logged in as another user (any type of user), submit a report against the contact mentioned at (2)
  4. Back to the tab where the offline user mentioned at (2) is viewing the contact, sync.
  5. Observe aforementioned error.