Distinguish system and user updates more precisely #1367
nicolasfranck
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Current situation
Currently when system updates happen, the field
date_updated
is affected, and therefore affects the place of the record in the index.Examples of system updates are:
This however generates a "weird" behaviour where records that were previously pushed to the end by a user update (because sorting is set to "Updated (oldest first)"), suddenly reappear on top some time later, which may be annoying if you use this sorting option to see what records need attention.
What currently happens:
date_updated
stores date of latest updatedate_updated
is set to current timeuser_id
is set to id of userlast_user_id
is set to id of userdate_updated
is set to current timeuser_id
is set to empty valuelast_user_id
is kept as a trace to the last user that updated the recordSo in case of a system update, we only know:
date_updated
last_user_id
Proposal 1
Distinguish user and system updates more precisely. Now some fields are shared between user and system updates (which requires inspection). In a first version I would not change that, but opt for the following:
last_user_date_updated
to track the time at which the latest user update was done.date_updated
tolast_user_date_updated
when presentdate_updated
if previous field was not presentIn order to reach this state the following conversion would be needed:
user_id
is empty: setlast_user_date_updated
to empty as we currently do not have this information anymore.user_id
is not empty: setlast_user_date_updated
to currentdate_updated
Beta Was this translation helpful? Give feedback.
All reactions