-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Metadata timestamps returned for objects and collections #581
Comments
Bacground: we want to use those timestamps in workflow/validation scenarios |
Hmm, there don't seem to be any GenQuery1 columns that reflect the timestamp of AVU attachment (ie set/add). The META_*_MODIFY_TIME and META_MET2_MODIFY_TIME, in my experimentation , seem to reflect the the creation (or modification) of the AVU itself. Maybe GenQuery2 expands available columns to include the timestamps in the |
If not , I guess specific query will be the workaround / answer. In that case though, baking it into the PRC as a fixture, ie object attribute, will only be appropriate if these columns are available by means of a built-in (non-deletable) specific query. |
@d-w-moore is correct. That information is not exposed through GenQuery1 or GenQuery2 today. The only way to fetch that information is by using a SpecificQuery. I'll open an issue in irods/irods for this. |
So, we need to...
Am I missing anything? |
@alanking sounds right. The PRC can expose the new timestamp attributes conditionally , based on an optional- or lazy-load policy , informed by whether our new specific query for those timestamps is loaded or not. (as opposed to making the query undeletable, which I'm guessing is not feasible.) |
Okay. I'm going to mark this as an enhancement, but I'm willing to be convinced that it's something else. :) |
The decision to provide a SpecificQuery is up to the admin. The only things for us to do are:
@alanking Agreed. Marking as enhancement is good. |
Thanks for this, until it lands in a release, I will use a specific query |
When querying
<data_object|collection>metadata(timestamps=True).items()
it returns the timestamps from the avu creation, not when it was added to an item (the timestamps in the r_objt_metamap table for example).Could this be specified in the query / future API calls or is there another way to obtain those timestamps with GenQuery / GenQuery2 ?
Thanks
The text was updated successfully, but these errors were encountered: