acl-org / acl-org/acl-anthology

Changes to events are not being saved to XML on save_all()

Đang mở
#9,815 9 bình luận 0 reaction 1 người được giao Được @mbollmann nhận Xem trên GitHub
bug python-library
Ngôn ngữ chính
Python
Star
797
Fork
408
Merge trung bình
3 ngày 19 giờ
Pull request đã merge (30 ngày)
36

Mô tả

```py
for vol in anthology.volumes():
if vol.year in ('2018','2019') and "workshop" in str(vol.title).lower() and "student research workshop" not in str(vol.title).lower():
venues = vol.venues()
venue_ids = list(vol.venue_ids)
for v in venues:
if v.type!="workshop":
event = anthology.get_event(f'{v.acronym.lower()}-{vol.year}')
event.add_colocated(vol)
venue_ids.remove(v.id)
vol.venue_ids = tuple(venue_ids)
anthology.save_all()
```

Result: The venue tags are removed but colocated volume info is not added in the XML.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Reproduce with the provided script and verify that `anthology.save_all()` updates XML by removing venue tags but not colocated entries. Start by tracing `save_all()` and the serialization code path it uses, then inspect how `event.add_colocated(vol)` and `vol.venue_ids` are persisted for XML output. Focus on event/volume export logic to find where colocated links are dropped. Done when a fresh XML save includes colocated volume information for the modified events.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python
Lĩnh vực
backend
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
55/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.