#2005 Custom field update via API triggers 2 changelog entries
Closed: Fixed Opened by mkosek.

Whenever a custom field is modified via API, Pagure Issues displays 2 changelog entries.

See this bug for example. When I updated "rhbz" field, we can see two "Custom field rhbz adjusted to 0" changelog entries.


this is weird.

I reproduced similar behavior.

In UI, not API, I updated FreeIPA issue 6686, where I added only a text comment. The update also triggered following changes:

- Custom field affects_doc reset
- Custom field tester adjusted to wanted
- Issue close_status updated to: None
- Custom field affects_doc reset

And the comment was added twice.

Background: FreeIPA project was migrated. All custom fields were set as text during the migration. After that I changed types of several fields(all of the above were changed).

I have a theory (but I don't know how pagure works internally) is that update of ticket might trigger custom fields normalization or something and that change will re-trigger adding the comment.

Metadata Update from @pingou:
- Issue tagged with: bug

I have a theory (but I don't know how pagure works internally) is that update of ticket might trigger custom fields normalization or something and that change will re-trigger adding the comment.

I think you're right on this, but I would still have expected only 1 notification then not two.

Metadata Update from @lslebodn:
- Issue tagged with: IDM

I think this should be fixed by PR #2484 commit 6e4852622756e35186fcf20d9cd5df4e8b56411d

Has this occurred again since @cverna's patch landed?

Looks good! I just tested with https://pagure.io/SSSD/sssd/issue/98 again.

Thanks for checking , I am closing this then :).

Metadata Update from @cverna:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

Metadata