tsuru-dashboard icon indicating copy to clipboard operation
tsuru-dashboard copied to clipboard

Circular dependency error in event info

Open ggarnier opened this issue 6 years ago • 0 comments

For some events, the event info page raises a circular dependency error. This test reproduces the error:

from tsuru_dashboard.apps.views import event_serialization_default

class EventInfoViewTest(TestCase):
    def test_circular_dependency(self):
        data = {'_id': bson.ObjectId('5b64c49ad32e70370e94422a')}
        # This raises ValueError: Circular reference detected
        json.dumps(data, default=event_serialization_default)

ggarnier avatar Aug 24 '18 22:08 ggarnier