Skip to content

Conversation

@FlorentinD
Copy link
Contributor

  • Reapply "Fix estimation endpoint take 3"
  • Reapply "Use new estimate endpoint on Aura API"
  • Allow list of str for algo categories as well

@netlify
Copy link

netlify bot commented Dec 4, 2025

Deploy Preview for neo4j-graph-data-science-client ready!

Name Link
🔨 Latest commit 53a204e
🔍 Latest deploy log https://app.netlify.com/projects/neo4j-graph-data-science-client/deploys/69397f5598ad370008d14c3b
😎 Deploy Preview https://deploy-preview-1025--neo4j-graph-data-science-client.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@FlorentinD FlorentinD force-pushed the gdsa-483-use-new-estimate-endpoint-in-python-client branch from 28589ba to 53a204e Compare December 10, 2025 14:10
@FlorentinD FlorentinD marked this pull request as ready for review December 10, 2025 14:10
@Mats-SX Mats-SX self-assigned this Dec 11, 2025
Copy link
Contributor

@Mats-SX Mats-SX left a 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,
Copy link
Contributor

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? 🤔

Copy link
Contributor Author

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

Copy link
Contributor Author

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

Comment on lines +58 to +61
Parameters
----------
api_credentials
The Aura API credentials used for establishing a connection.
Copy link
Contributor

Choose a reason for hiding this comment

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

nice

Comment on lines +76 to +79
algorithm_categories: list[AlgorithmCategory] | list[str] | None = None,
node_label_count: int = 0,
node_property_count: int = 0,
relationship_property_count: int = 0,
Copy link
Contributor

Choose a reason for hiding this comment

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

non-breaking, nice

Comment on lines +1223 to +1228
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
Copy link
Contributor

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

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.

2 participants