python-irodsclient icon indicating copy to clipboard operation
python-irodsclient copied to clipboard

[#525] Add support for touch API operation

Open korydraughn opened this issue 1 year ago • 7 comments

The implementation appears to work.

Just need to implement tests.

korydraughn avatar Apr 05 '24 22:04 korydraughn

Why all caps error code? Is there precedent for that in PRC?

trel avatar Apr 06 '24 03:04 trel

Just not familiar with all the conventions yet. Also, I think I saw exceptions like that used in other places in the PRC.

korydraughn avatar Apr 06 '24 03:04 korydraughn

Why all caps error code? Is there precedent for that in PRC?

I don't know the valid uses of INVALID_OBJECT_TYPE , either. Not currently used otherwise, so may be a relic of something in PRC's past that got deleted. It appears also that it subclasses RuleEngineException, which may be misleading. I would suggest another error (possibly more targeted? Invalid_Path_For_Object_Type?)

d-w-moore avatar Apr 06 '24 08:04 d-w-moore

I added a new exception type, InvalidInputArgument, to replace the use of INVALID_OBJECT_TYPE.

All new tests pass. The only way I could run my tests was by skipping the iRODS version check code in helpers.make_session(). Is there another way to handle that?

korydraughn avatar Apr 07 '24 15:04 korydraughn

Forgot to mention this PR also adds modify_time and create_time to the replica object. See https://github.com/irods/python-irodsclient/pull/531/commits/aad7740bca85101a5f79c9f56b5c3a72b5eff112.

korydraughn avatar Apr 07 '24 15:04 korydraughn

Looks like I need to address a few more codacy issues.

korydraughn avatar Apr 07 '24 15:04 korydraughn

All review comments addressed.

All that's left is to run the full test suite.

korydraughn avatar May 16 '24 22:05 korydraughn

Squashed.

korydraughn avatar Jun 11 '24 14:06 korydraughn

Running full test suite to make sure nothings broken.

Will pound if everything comes out good.

korydraughn avatar Jun 11 '24 17:06 korydraughn

I saw 2 failures and 46 errors. Not sure what to expect.

@d-w-moore Any thoughts? Please try running this PR through the test suite and see what you get.

korydraughn avatar Jun 11 '24 19:06 korydraughn

I saw 2 failures and 46 errors. Not sure what to expect.

@d-w-moore Any thoughts? Please try running this PR through the test suite and see what you get.

Sure, will run now.

d-w-moore avatar Jun 12 '24 06:06 d-w-moore

I saw 2 failures and 46 errors. Not sure what to expect. @d-w-moore Any thoughts? Please try running this PR through the test suite and see what you get.

Sure, will run now. Got 13 errors from the entire suite. (270 tests run), running against iRODS 4.3.2. All 13 accounted for by:

  • errors coming from login_auth_test.py. It requires specific setups, so shouldn't be run as a matter of course in the PRC suite. Unfortunate bad form on that one, mea culpa. That will be fixed this next release (see issue #502. we'll be renaming it to run in a BATS test and that should defeat the pattern matching that causes it to be picked up in the routine run of the full suite).
  • irods.message.Bad_AVU_Value should be descended from ValueError for irods.test.meta_test.TestMeta.test_add_obj_meta_empty to pass.

@korydraughn - For other errors you may have seen, we should discuss live. Do you have a log dump?

d-w-moore avatar Jun 12 '24 07:06 d-w-moore

Excellent.

#'d

korydraughn avatar Jun 12 '24 19:06 korydraughn