betagouv / recommandations-collaboratives

Outil support Recommandations-Collaboratives basé sur le framework django
https://recommandations-collaboratives.beta.gouv.fr
GNU Affero General Public License v3.0
8 stars 10 forks source link

On ne devrait pas permettre d'associer une ressource BROUILLON sur le pousse reco #663

Open sentry-sentry-incubateur-net[bot] opened 2 months ago

sentry-sentry-incubateur-net[bot] commented 2 months ago

Sentry Issue: RECOCO-BACKEND-V

Resource.DoesNotExist: Resource matching query does not exist.
  File "recoco/apps/tasks/forms.py", line 101, in clean_resource
    ).get(pk=resource.pk)
  File "django/db/models/query.py", line 637, in get
    raise self.model.DoesNotExist(

ValueError: 'CreateActionWithResourceForm' has no field named 'resource_unknown'.
(5 additional frame(s) were not displayed)
...
  File "django/forms/forms.py", line 196, in errors
    self.full_clean()
  File "django/forms/forms.py", line 433, in full_clean
    self._clean_fields()
  File "django/forms/forms.py", line 448, in _clean_fields
    value = getattr(self, "clean_%s" % name)()
  File "recoco/apps/tasks/forms.py", line 103, in clean_resource
    self.add_error("resource_unknown", "Cette ressource n'existe pas")
  File "django/forms/forms.py", line 400, in add_error
    raise ValueError(
sabinesafi commented 5 days ago

de quoi s'agit-il ici ?