id,node_id,number,title,user,state,locked,assignee,milestone,comments,created_at,updated_at,closed_at,author_association,active_lock_reason,draft,pull_request,body,reactions,performed_via_github_app,state_reason,repo,type 1848392846,PR_kwDOAMm_X85Xz2MY,8067,Fix assignment with .loc,404832,closed,0,,,6,2023-08-13T04:02:09Z,2023-09-12T18:17:12Z,2023-09-12T18:17:09Z,CONTRIBUTOR,,0,pydata/xarray/pulls/8067," - [x] Closes #7030 - [x] Tests added - [x] User visible changes (including notable bug fixes) are documented in `whats-new.rst` Apparently `DataArray` instances on the right-hand side of `Variable.__setitem__` were being stripped of their `xarray` metadata, leading to the incorrect broadcasting noted in #7030. My proposed fix is to add an explicit if-clause for this case.","{""url"": ""https://api.github.com/repos/pydata/xarray/issues/8067/reactions"", ""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,,13221727,pull