-
Notifications
You must be signed in to change notification settings - Fork 54
Use new estimate endpoint (take 2) #1025
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
base: main
Are you sure you want to change the base?
Use new estimate endpoint (take 2) #1025
Conversation
FlorentinD
commented
Dec 4, 2025
- Reapply "Fix estimation endpoint take 3"
- Reapply "Use new estimate endpoint on Aura API"
- Allow list of str for algo categories as well
✅ Deploy Preview for neo4j-graph-data-science-client ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
28589ba to
53a204e
Compare
Mats-SX
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had some concerns that were incorrect. I think this is good.
| node_count: int, | ||
| relationship_count: int, | ||
| algorithm_categories: list[AlgorithmCategory] | None = None, | ||
| algorithm_categories: list[AlgorithmCategory] | list[str] | None = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have to include | None for the typing? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes its for the typing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the new part here is allowing also for the raw strings
| Parameters | ||
| ---------- | ||
| api_credentials | ||
| The Aura API credentials used for establishing a connection. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
| algorithm_categories: list[AlgorithmCategory] | list[str] | None = None, | ||
| node_label_count: int = 0, | ||
| node_property_count: int = 0, | ||
| relationship_property_count: int = 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
non-breaking, nice
| assert EstimationDetails._parse_size("8GB") == 8589934592 | ||
| assert EstimationDetails._parse_size("8G") == 8589934592 | ||
| assert EstimationDetails._parse_size("512MB") == 536870912 | ||
| assert EstimationDetails._parse_size("256KB") == 262144 | ||
| assert EstimationDetails._parse_size("1024B") == 1024 | ||
| assert EstimationDetails._parse_size("12345") == 12345 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great tests, but I am missing one case with an i suffix, and also some lower-case inputs