NASA-IMPACT / admg-backend

Apache License 2.0
2 stars 0 forks source link

Error trying to transition an object to a new status in the publishing process #603

Closed heidimok closed 7 months ago

heidimok commented 9 months ago

Context

Upon merging the new MI workflow into staging, we ran a Sentry test to catch issues. This is one source of errors found.

Problem

There's an error trying to transition an object to a new status in the publishing process.

Will need to diagnose problem further.

edkeeble commented 8 months ago

https://development-seed-72.sentry.io/issues/4275942197/?environment=dev&project=4504118899179520&query=is%3Aunresolved&referrer=issue-stream&statsPeriod=14d&stream_index=5&utc=true

Example URL to replicate: http://admgstaging.nasa-impact.net/drafts/edit/5523d232-74ff-4888-8d6d-185ae4d05e70/transition

Error below:

AttributeError

'ChangeTransition' object has no attribute 'object'
heidimok commented 7 months ago

I'm not sure if the video below is related, so just checking before writing a new issue. Upon making an update to a published campaign, I can move through all the steps but get a 505 when publishing the update. https://github.com/NASA-IMPACT/admg-backend/assets/10764915/f20382d9-a838-4b8b-8abc-73198bda5d76

heidimok commented 7 months ago

Tested manually that I was able to go through the full flow of publishing and updating drafts for campaigns, platforms, and instruments in the MI staging environment.