Skip to content

Commit

Permalink
DFIQ fix (#1209)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchop authored Dec 23, 2024
1 parent 3f832fb commit ab645c3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion core/database_arango.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ def save(
# TODO: Override this if we decide to implement YetiTagModel
if hasattr(self, "tags"):
yeti_object.get_tags()
if self._collection_name != "auditlog":
if self._collection_name not in ("auditlog", "timeline"):
try:
event = message.ObjectEvent(type=event_type, yeti_object=yeti_object)
producer.publish_event(event)
Expand Down
10 changes: 5 additions & 5 deletions core/schemas/dfiq.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ def read_from_data_directory(
with open(file, "r") as f:
try:
dfiq_object = DFIQBase.from_yaml(f.read())
db_dfiq = None
if dfiq_object.uuid:
db_dfiq = DFIQBase.find(uuid=dfiq_object.uuid)
if not db_dfiq and dfiq_object.dfiq_id:
db_dfiq = DFIQBase.find(dfiq_id=dfiq_object.dfiq_id)
if not overwrite:
db_dfiq = None
if dfiq_object.uuid:
db_dfiq = DFIQBase.find(uuid=dfiq_object.uuid)
if not db_dfiq and dfiq_object.dfiq_id:
db_dfiq = DFIQBase.find(dfiq_id=dfiq_object.dfiq_id)
if db_dfiq:
incoming_v = Version(dfiq_object.dfiq_version)
if incoming_v > Version(LATEST_SUPPORTED_DFIQ_VERSION):
Expand Down
2 changes: 1 addition & 1 deletion plugins/feeds/public/dfiq.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def run(self):
return
for directory in extra_dirs.split(","):
logging.info("Processing extra directory %s", directory)
dfiq.read_from_data_directory(directory)
dfiq.read_from_data_directory(directory, "DFIQFeed")


taskmanager.TaskManager.register_task(DFIQFeed)

0 comments on commit ab645c3

Please sign in to comment.