Issue #328: model: UserLog has redundant username entry (conservancy/kallithea)

Thomas De Schampheleire issues-reply at bitbucket.org
Tue Sep 11 09:02:51 UTC 2018


New issue 328: model: UserLog has redundant username entry
https://bitbucket.org/conservancy/kallithea/issues/328/model-userlog-has-redundant-username-entry

Thomas De Schampheleire:

model class UserLog has next to a user_id also a username field. This value is redundant because the username could be retrieved based on the user id.
This redundancy adds to database size, but also makes it harder to rename a user via the database. In my case, such a rename for one user was needed after an LDAP database change.

Proposal is to remove the entry and lookup the username when needed (e.g. used in journal filtering) from the User table based on the user id.




More information about the kallithea-general mailing list