id,node_id,number,state,locked,title,user,body,created_at,updated_at,closed_at,merged_at,merge_commit_sha,assignee,milestone,draft,head,base,author_association,auto_merge,repo,url,merged_by 1473209112,PR_kwDOAMm_X85Xz2MY,8067,closed,0,Fix assignment with .loc,404832," - [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.",2023-08-13T04:02:09Z,2023-09-12T18:17:12Z,2023-09-12T18:17:09Z,2023-09-12T18:17:09Z,8215911a8e1c97e58c3db071276a185b931b4a35,,,0,ec2e256c187e2c698e9f6359dc8dbe925ba70763,3edd9978b4590666e83d8c0e4e8f574be09ff4c8,CONTRIBUTOR,,13221727,https://github.com/pydata/xarray/pull/8067,