-
Notifications
You must be signed in to change notification settings - Fork 75
Open
Milestone
Description
The various DataObject
model attributes are chosen based on the first row in the query result-set, which is ordered by replica number. This affects the data object's "overall" timestamp info among other attributes:
session=irods.helpers.make_session( )
data_obj = session.data_objects.get( path_to_data_object )
print(repr(data_obj.modify_time))# -> this will not give the most recent replica's timestamp
max(r[DataObject.modify_time] for r in data_obj.replicas) # -> this will give most recent replica's timestamp
The printed datetime
object will not necessarily reflect the most recent replica's modification timestamp.
For that we'd have to put in a hook to sort the result set before transferring the attributes to the main object. (I am thinking that is the most efficient option,and most backward compatible, since the PRC mostly relays cached attributes anyway and relies on the user to do fresh queries to re-poll the object for changes.)
Metadata
Metadata
Assignees
Labels
No labels