Skip to content

Commit

Permalink
connector_search_engine: store to_be_checked error
Browse files Browse the repository at this point in the history
Before this change the error was visible only in the job
if not deleted.
This we can provide more info to the end user
w/o the need for a new field.
This info will be wiped on the next successful compute.
  • Loading branch information
simahawk committed May 9, 2024
1 parent da6724e commit 6302d6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions connector_search_engine/models/se_binding.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ def _recompute_json(self, force_export=False):
vals["date_modified"] = fields.Datetime.now()
if error:
vals["sync_state"] = "to_be_checked"
vals["data"]["__error__"] = error
binding.write(vals)
if validation_errors:
result.append(
Expand Down

0 comments on commit 6302d6f

Please sign in to comment.