Creating a secret gives misleading update timestamp
Bug #1382188 reported by
Thomas Dinkjian
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Barbican |
Fix Released
|
Low
|
Michael McCune |
Bug Description
When creating a secret the created time gets set when the python object is created and the updated time is set at database write. This causes the times to be slightly different which can be confusing. The times not matching makes it seem as if the secret was already updated when it has not been updated, only created. The updated field should either match the created or be empty.
Changed in barbican: | |
status: | New → Confirmed |
importance: | Undecided → Low |
milestone: | none → kilo-1 |
Changed in barbican: | |
milestone: | kilo-1 → none |
Changed in barbican: | |
assignee: | nobody → Michael McCune (mimccune) |
Changed in barbican: | |
milestone: | none → kilo-1 |
Changed in barbican: | |
status: | Confirmed → In Progress |
tags: | added: verified |
Changed in barbican: | |
status: | Fix Committed → Fix Released |
Changed in barbican: | |
milestone: | kilo-1 → 2015.1.0 |
To post a comment you must log in.
I believe this would be as simple as modifying the code that saves entities and set the updated-at date, so that it only does this if the ID of the entity is non None. That way when an entity is created (and so has no ID) it can be saved whatever time later and flushed to the database without need to set the updated date.