Skip to content

Conversation

@VirginiaDooley
Copy link
Contributor

@VirginiaDooley VirginiaDooley commented Dec 21, 2023

This change ensures biography time stamp is only be updated with a change in form data in the biography field.


@VirginiaDooley VirginiaDooley marked this pull request as ready for review December 21, 2023 18:54
@VirginiaDooley VirginiaDooley requested a review from symroe January 4, 2024 11:09
@pmk01
Copy link
Contributor

pmk01 commented Jan 15, 2024

From @sjorford:
it seems to be wrong more often than not? a couple of examples:
https://candidates.democracyclub.org.uk/person/72914/jack-thomson
https://candidates.democracyclub.org.uk/person/19009/preet-kaur-gill
https://candidates.democracyclub.org.uk/person/20/captain-beany
https://candidates.democracyclub.org.uk/person/1412/guto-bebb

@VirginiaDooley VirginiaDooley force-pushed the hotfix/test-biography-membership-update branch from 67ae0ea to 185d35a Compare January 15, 2024 20:01
@VirginiaDooley
Copy link
Contributor Author

From @sjorford: it seems to be wrong more often than not? a couple of examples: https://candidates.democracyclub.org.uk/person/72914/jack-thomson https://candidates.democracyclub.org.uk/person/19009/preet-kaur-gill https://candidates.democracyclub.org.uk/person/20/captain-beany https://candidates.democracyclub.org.uk/person/1412/guto-bebb

The issue here is that "biography" is included in changed_data even when there has not been a change to the biography. The bug seems to occur most often (?) when a candidacy is added to a person.

@VirginiaDooley VirginiaDooley force-pushed the hotfix/test-biography-membership-update branch 3 times, most recently from c5d6fdb to c6c4835 Compare January 16, 2024 13:16
@VirginiaDooley VirginiaDooley force-pushed the hotfix/test-biography-membership-update branch 2 times, most recently from 2509827 to ad38726 Compare January 16, 2024 13:35
@VirginiaDooley VirginiaDooley changed the title Test list position change doesn't effect biography_last_updated times… Other field changes should not biography_last_updated timestamp Jan 16, 2024
@VirginiaDooley VirginiaDooley force-pushed the hotfix/test-biography-membership-update branch from ad38726 to 0a22f1a Compare January 18, 2024 13:15
@VirginiaDooley VirginiaDooley force-pushed the hotfix/test-biography-membership-update branch from 0a22f1a to 08c2049 Compare January 18, 2024 15:59
Copy link
Member

@symroe symroe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm really confused as to why changed_data isn't acting as documented...I thought it would only be in the list if something had actually changes.

Either way, this fix seems like the best approach, given the oddities!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants