Skip to content

[#746] establish default order for replicas listed by an iRODSDataObject#815

Open
d-w-moore wants to merge 9 commits intoirods:mainfrom
d-w-moore:746.m
Open

[#746] establish default order for replicas listed by an iRODSDataObject#815
d-w-moore wants to merge 9 commits intoirods:mainfrom
d-w-moore:746.m

Conversation

@d-w-moore
Copy link
Copy Markdown
Collaborator

@d-w-moore d-w-moore commented Apr 15, 2026

The parent data object's modify_time and replica_status fields , as well as some others, actually pertain more to individual replicas.

#747 was an old PR meant to address the issue and contains much discussion as well.

On consideration, I think a minor release is the proper place to address this, and I'm doing it by

  • setting a default sorter that for data_objects.get ( or anytime running the iRODSDataObject constructor) sorts replicas of the data object first by the replica-"goodness" and secondly by reverse chronology of the replica modify_time (ie most recent first.) The replica at array position [0] will then determine the values of the fields discussed above.
  • deciding for the time being not to deprecate anything. yet. To me it makes natural sense to allow modify_time and replica_status to be accessed from the "head" object.

So, this PR replaces the old one, #747 , due to being new work and being based on top of source code conveniently ruff-formatted.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant