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

Destruction lists items without zaak cause AttributeError [Backend] #544

Open
SilviaAmAm opened this issue Dec 12, 2024 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@SilviaAmAm
Copy link
Collaborator

SilviaAmAm commented Dec 12, 2024

Sentry: maykin-media/issues/384741

AttributeError: 'NoneType' object has no attribute 'url'
  File "celery/app/trace.py", line 736, in __protected_call__
    return self.run(*args, **kwargs)
  File "openarchiefbeheer/destruction/tasks.py", line 48, in process_review_response
    prepopulate_selection_after_review_response(
  File "openarchiefbeheer/destruction/utils.py", line 315, in prepopulate_selection_after_review_response
    zaak_url=item.zaak.url,

This can happen if a zaak has been removed in Openzaak and then the zaken are resynced in OAB.
The destruction list item has then no zaak attached to it.

To discuss:

  • Do we want to remove the item from the destruction list? If yes, should there be an automatic log that says "The new list count is X zaken"?

Answer from PO: delete the zaak and add a log in the history tab that a zaak was deleted (and so the total number of zaken in the list is changed)

@SilviaAmAm SilviaAmAm added bug Something isn't working discuss Further information is requested labels Dec 12, 2024
@SilviaAmAm SilviaAmAm self-assigned this Dec 12, 2024
@SilviaAmAm SilviaAmAm removed the discuss Further information is requested label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

1 participant