{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":7772867,"defaultBranch":"master","name":"django-annoying","ownerLogin":"skorokithakis","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2013-01-23T10:50:54.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/23648?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1471008740.0","currentOid":""},"activityList":{"items":[{"before":"70e0588153ccb7d128bf099c7bfbf43327bde1f2","after":"383d7afbbd1dd0c5e4e6d97a957019af1bdf4bed","ref":"refs/heads/master","pushedAt":"2024-06-13T20:18:14.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"skorokithakis","name":"Stavros Korokithakis","path":"/skorokithakis","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/23648?s=80&v=4"},"commit":{"message":"fix: Use atomic as a context manager (#105)\n\nRemoved the `atomic` decorator of from the `AutoSingleRelatedObjectDescriptor.__get__` method and replaced it by using atomic as a context manager within the method when actually creating the new instance.\r\n\r\nThe previous behavior caused issues with other 3rd party packages.\r\nNotably: https://github.com/strawberry-graphql/strawberry-django\r\n\r\nFurther context:\r\nThat field will contribute that descriptor to the class, which means `ModelClass.` will trigger that `__get__` which does not need to be atomic unless an instance will actually get created. This caused introspection issues with the optimizer in the above mentioned package.\r\n\r\nCredit goes to @bellini666 for helping me find the source of the issue as well as providing the base patch. ๐Ÿ™","shortMessageHtmlLink":"fix: Use atomic as a context manager (#105)"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAAEZNFI_QA","startCursor":null,"endCursor":null}},"title":"Activity ยท skorokithakis/django-annoying"}