Skip to content

Commit a8a2c65

Browse files
committed
Rollback workaround as it won't be needed
Some newer implementation of the publishing engine will most likely solve the problem
1 parent c00dc44 commit a8a2c65

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

apps/publish/published_item.py

-11
Original file line numberDiff line numberDiff line change
@@ -137,17 +137,6 @@ class PublishedItemService(BaseService, HighlightsSearchMixin):
137137

138138
SEQ_KEY_NAME = "published_item_sequence_no"
139139

140-
def patch(self, id, updates):
141-
"""
142-
FIXME: Temporary workaround until we find out why _id and guid are not in sync
143-
when running tests from `superdesk-planning`. Without this, many tests fill fail.
144-
"""
145-
item = self.find_one(req=None, guid=id)
146-
if item:
147-
id = item[ID_FIELD]
148-
149-
return super().patch(id, updates)
150-
151140
def on_fetched(self, docs):
152141
"""
153142
Overriding this to enhance the published article with the one in archive collection

0 commit comments

Comments
 (0)