Skip to content

More careful NULL value handling in tapregext data limits. #659

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

Merged
merged 2 commits into from
Mar 24, 2025

Conversation

msdemlei
Copy link
Contributor

This ought to fix bug #658.

Actually, I considered including the (perhaps more relevant) default upload limit in the describe() output, too. I will if someone asks for it here...

Copy link

codecov bot commented Mar 20, 2025

Codecov Report

Attention: Patch coverage is 78.78788% with 7 lines in your changes missing coverage. Please review.

Project coverage is 83.08%. Comparing base (e7a8074) to head (8e909ee).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
pyvo/io/vosi/tapregext.py 22.22% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #659      +/-   ##
==========================================
+ Coverage   82.76%   83.08%   +0.31%     
==========================================
  Files          75       75              
  Lines        7684     7715      +31     
==========================================
+ Hits         6360     6410      +50     
+ Misses       1324     1305      -19     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ManonMarchand
Copy link
Member

I think default and hard limits are both interesting in the description.

@msdemlei msdemlei changed the title More careful NULL value handline in tapregext data limits. More careful NULL value handling in tapregext data limits. Mar 20, 2025
@msdemlei msdemlei force-pushed the fix-tapregext-limits branch from 3462f84 to 966344b Compare March 20, 2025 12:09
@msdemlei
Copy link
Contributor Author

msdemlei commented Mar 20, 2025 via email

@ManonMarchand
Copy link
Member

This explains why the two values are identical in the capabilities endpoints I know! I guess the services can add warnings in the response when people overshoot the default limit so we don't need it in pyVO. And it it very strange from IRSA not to set an upload limit at all.

The PR fixes a very rare issue. It can go without a changelog entry. Could you maybe add a test in https://github.com/astropy/pyvo/blob/main/pyvo/io/vosi/tests/test_capabilities.py ?

@msdemlei
Copy link
Contributor Author

msdemlei commented Mar 20, 2025 via email

@bsipocz bsipocz added the bug label Mar 20, 2025
@bsipocz bsipocz added this to the v1.6.2 milestone Mar 20, 2025
Copy link
Member

@bsipocz bsipocz left a comment

Choose a reason for hiding this comment

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

Thank you so much for having this fixed so quickly!

@msdemlei msdemlei merged commit 27bb31b into astropy:main Mar 24, 2025
10 of 14 checks passed
@msdemlei msdemlei deleted the fix-tapregext-limits branch March 24, 2025 08:37
bsipocz pushed a commit that referenced this pull request Apr 7, 2025
More careful NULL value handling in tapregext data limits.
bsipocz pushed a commit that referenced this pull request Apr 7, 2025
More careful NULL value handling in tapregext data limits.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants