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

Error when accessing tasks #9552

Open
dianabarsan opened this issue Oct 16, 2024 · 4 comments
Open

Error when accessing tasks #9552

dianabarsan opened this issue Oct 16, 2024 · 4 comments
Assignees
Labels
Priority: 1 - High Blocks the next release. Type: Bug Fix something that isn't working as intended
Milestone

Comments

@dianabarsan
Copy link
Member

dianabarsan commented Oct 16, 2024

Describe the bug
When loading tasks or targets for the first time after the upgrade to 4.13, this error can occur.
Image

To Reproduce
Steps to reproduce the behavior:

  1. Install 4.12
  2. Create an offline user. Log in with this offline user and create one pregnancy. Logout.
  3. Login as admin and upgrade to 4.13.x . Logout.
  4. Log in as the offline user again and navigate to tasks or targets page.
  5. See error.

Expected behavior
No error.

Logs

main.js:1 Error getting targets TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at Object.aggregateStoredTargetEmissions (main.js:1:1309050)
    at Object.<anonymous> (main.js:1:1306901)
    at Generator.next (<anonymous>)
    at w (main.js:11:600733)
    at x (main.js:11:600945)
    at main.js:11:601004
    at new r (polyfills.js:1:22887)
    at Object.<anonymous> (main.js:11:600886)
    at A.aggregateStoredTargetEmissions (main.js:1:1307030)

Screenshots

Environment

  • App: webapp
  • Version: 4.13

Additional context
This is due to a change in structure of the local rulesStateStore document.

@dianabarsan
Copy link
Member Author

Fixed in master and backported to 4.13.x

@kennsippell
Copy link
Member

Reactivating due to similar bug:

  1. Install 4.12
  2. Create an offline user. Log in with this offline user and create one pregnancy. Logout.
  3. Login as admin and upgrade to 4.13.x . Logout.
  4. Move calendar forward to start of next month
  5. Log in as the offline user again and navigate to tasks or targets page.
  6. See error.

@kennsippell kennsippell reopened this Oct 18, 2024
@kennsippell kennsippell changed the title Error when acessing tasks Error when accessing tasks Oct 18, 2024
@dianabarsan
Copy link
Member Author

Is this intervalturnover?????!!!

@kennsippell
Copy link
Member

Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: 1 - High Blocks the next release. Type: Bug Fix something that isn't working as intended
Projects
None yet
Development

No branches or pull requests

2 participants