Skip to content

[48] refactor to use free functions - #49

Merged
alanking merged 12 commits into
irods:mainfrom
trel:36-freefunctions.m
Feb 25, 2026
Merged

[48] refactor to use free functions#49
alanking merged 12 commits into
irods:mainfrom
trel:36-freefunctions.m

Conversation

@trel

@trel trel commented Feb 19, 2026

Copy link
Copy Markdown
Member

currently a single commit beyond branch 36.m, will rebase once that is merged.

all tests pass

@alanking

alanking commented Feb 19, 2026

Copy link
Copy Markdown

What is the relationship between this PR and #44? Oh, I guess that's what 36.m is referring to. Nevermind.

@trel

trel commented Feb 19, 2026

Copy link
Copy Markdown
Member Author

yes, sorry - this builds on #44

@trel
trel force-pushed the 36-freefunctions.m branch from 6caa135 to af5bee8 Compare February 20, 2026 00:57
@trel

trel commented Feb 20, 2026

Copy link
Copy Markdown
Member Author

coverage at 91%

@trel

trel commented Feb 21, 2026

Copy link
Copy Markdown
Member Author

rebased, single commit.

ready for review.

@trel

trel commented Feb 21, 2026

Copy link
Copy Markdown
Member Author
$ coverage report
Name                                     Stmts   Miss  Cover
------------------------------------------------------------
irods_http_client/__init__.py                4      0   100%
irods_http_client/collections.py            99      0   100%
irods_http_client/common.py                 25      0   100%
irods_http_client/data_objects.py          295      2    99%
irods_http_client/irods_http_client.py      21      2    90%
irods_http_client/queries.py                52      0   100%
irods_http_client/resources.py              75      0   100%
irods_http_client/rules.py                  22      0   100%
irods_http_client/tickets.py                38      0   100%
irods_http_client/users_groups.py          101      0   100%
irods_http_client/zones.py                  39      0   100%
------------------------------------------------------------
TOTAL                                      771      4    99%

the two lines in data_objects.py are reading and writing with a ticket. not sure how to do that.

Comment thread irods_http/data_objects.py

@korydraughn korydraughn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall.

The main thing is in how errors are checked (string comparisons) and checking of HTTP status codes.

Comment thread test/test_endpoint_operations.py Outdated
Comment thread test/test_endpoint_operations.py Outdated
Comment thread test/test_endpoint_operations.py Outdated
Comment thread test/test_endpoint_operations.py Outdated
Comment thread test/test_endpoint_operations.py Outdated
Comment thread irods_http/data_objects.py Outdated
Comment thread irods_http/data_objects.py Outdated
Comment thread irods_http/data_objects.py
Comment thread test/__init__.py
Comment thread README.md Outdated
Comment thread pyproject.toml
@trel
trel force-pushed the 36-freefunctions.m branch from 08aa01d to 40a54e2 Compare February 24, 2026 03:35
@trel

trel commented Feb 24, 2026

Copy link
Copy Markdown
Member Author

only one line untested - not sure how to generate that error text at the moment.

$ coverage report
Name                         Stmts   Miss  Cover
------------------------------------------------
irods_http/__init__.py           3      0   100%
irods_http/collections.py       90      0   100%
irods_http/common.py            21      0   100%
irods_http/data_objects.py     281      0   100%
irods_http/irods_http.py        27      1    96%
irods_http/queries.py           49      0   100%
irods_http/resources.py         68      0   100%
irods_http/rules.py             20      0   100%
irods_http/tickets.py           37      0   100%
irods_http/users_groups.py      89      0   100%
irods_http/zones.py             35      0   100%
------------------------------------------------
TOTAL                          720      1    99%

@trel
trel force-pushed the 36-freefunctions.m branch from 65ec4a0 to a2be019 Compare February 24, 2026 04:36

@alanking alanking left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given the size of this change and the fact that this hasn't been released yet, are there any areas in particular that you feel need special attention for review?

@trel

trel commented Feb 24, 2026

Copy link
Copy Markdown
Member Author

At this point, after the refactor to free functions, module naming, and lots of coverage work and test cleanup... I think there is only the one discussion about multipart/form-data that remains - #49 (comment)

Everything else feels pretty clean, and any fixups could happen after an initial release.

Comment thread irods_http/__init__.py Outdated
@trel
trel force-pushed the 36-freefunctions.m branch from 449404f to fae7f2f Compare February 25, 2026 18:05
@korydraughn

Copy link
Copy Markdown
Contributor

There's one unresolved comment left?
Do the tests still pass?

@trel
trel force-pushed the 36-freefunctions.m branch from fae7f2f to bc88f58 Compare February 25, 2026 18:21
@trel

trel commented Feb 25, 2026

Copy link
Copy Markdown
Member Author

comment resolved.

yes, all passing.

$ coverage report
Name                         Stmts   Miss  Cover
------------------------------------------------
irods_http/__init__.py           3      0   100%
irods_http/collections.py       91      0   100%
irods_http/common.py            24      0   100%
irods_http/data_objects.py     283      0   100%
irods_http/irods_http.py        27      1    96%
irods_http/queries.py           49      0   100%
irods_http/resources.py         68      0   100%
irods_http/rules.py             20      0   100%
irods_http/tickets.py           37      0   100%
irods_http/users_groups.py      89      0   100%
irods_http/zones.py             35      0   100%
------------------------------------------------
TOTAL                          726      1    99%

@korydraughn korydraughn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pound it.

@trel
trel force-pushed the 36-freefunctions.m branch from bc88f58 to 8d01e54 Compare February 25, 2026 18:29
@trel

trel commented Feb 25, 2026

Copy link
Copy Markdown
Member Author

all pounded.

@alanking
alanking merged commit 7d0c3af into irods:main Feb 25, 2026
2 checks passed
@trel
trel deleted the 36-freefunctions.m branch February 25, 2026 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants