Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
osoukup committed Dec 3, 2024
1 parent 8e217ee commit 8c75fc5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/taskman/tests/test_flaw_model_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ def mock_create_or_update_task(self, flaw):
assert response.status_code == 201
assert sync_count == 1

# TODO no diff from serializer and especially no save
def test_update_api(self, monkeypatch, auth_client, test_osidb_api_uri):
sync_count = 0

Expand Down
1 change: 1 addition & 0 deletions osidb/serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -933,6 +933,7 @@ def update(self, instance, validated_data):
# and validate if an important change were made forcing a sync when it is needed
updated_instance = super().update(instance, validated_data)
if JIRA_TASKMAN_AUTO_SYNC_FLAW:
# TODO no diff
updated_instance.tasksync(jira_token=self.get_jira_token())
return updated_instance

Expand Down

0 comments on commit 8c75fc5

Please sign in to comment.