Skip to content
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

Add support for "where in" queries #327

Closed
wants to merge 23 commits into from
Closed

Add support for "where in" queries #327

wants to merge 23 commits into from

Conversation

jreadey
Copy link
Member

@jreadey jreadey commented Mar 18, 2024

WIP review...

log.warn("Unexpected error in guess_chunk size")

# stop iteration if we haven't increased the chunk size
log.debug("stopping epandChunk iteration")
Copy link
Contributor

Choose a reason for hiding this comment

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

epandChunk -> expandChunk

if not where_elements:
msg = "query: where key word with no elements"
raise ValueError(msg)
# convert to ndarray, checking than we can convert to our dtype along the way
Copy link
Contributor

Choose a reason for hiding this comment

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

than we can convert -> that we can convert

if where_field:
# return array based on where in elements
log.debug("query - no eval_str, returning where in array")
return chunk_arr
Copy link
Contributor

Choose a reason for hiding this comment

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

chunk_sel seems to be the result of the selection from a where in query - should that be returned here instead?

@@ -0,0 +1,4 @@
sphinx==5.0.0
sphinx_rtd_theme==1.0.0
readthedocs-sphinx-search==0.1.1
Copy link
Contributor

Choose a reason for hiding this comment

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

Version for readthedocs-sphinx-search should be bumped to at least 0.3.2 to resolve the security issue

Request Authentication
----------------------

The HSDS REST supports HTTP Basic authentication to authenticate users
Copy link
Contributor

Choose a reason for hiding this comment

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

HSDS REST -> HSDS REST API

within a password file. Alternatively, Bearer authentication can be used
where a security token is issued by a provider such as Active Directory.
In either case, once the request is authenticated a requestor username
will be determine (unless anonymous request are supported, in which case
Copy link
Contributor

Choose a reason for hiding this comment

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

determine -> determined

header) requests on the domain would be granted or denied as follows

- GET /datasets/<id> - granted (returns HTTP Status 200 - OK)
- POST /datasets/<id>/value - granted (returns HTTP Status 200 - OK)
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe add a clarification here that this operation is a point/hyperslab read

Copy link
Contributor

Choose a reason for hiding this comment

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

Actually, I think this should be POST /datasets if it's supposed to represent creation permissions

- GET /datasets/<id> - granted (returns HTTP Status 200 - OK)
- POST /datasets/<id>/value - granted (returns HTTP Status 200 - OK)
- PUT /datasets/<id>/shape) - grant (returns HTTP Status 200 - OK)
- PUT /datasets/<id>/attributes/<name> - denied (returns HTTP Status
Copy link
Contributor

Choose a reason for hiding this comment

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

PUT and DELETE here should be 'granted'


- GET /datasets/<id> - granted (returns HTTP Status 200 - OK)
- POST /datasets/<id>/value - granted (returns HTTP Status 200 - OK)
- PUT /datasets/<id>/shape) - grant (returns HTTP Status 200 - OK)
Copy link
Contributor

Choose a reason for hiding this comment

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

grant -> granted


- GET /datasets/<id> - granted (returns HTTP Status 200 - OK)
- POST /datasets/<id>/value - granted (returns HTTP Status 200 - OK)
- PUT /datasets/<id>/shape) - grant (returns HTTP Status 200 - OK)
Copy link
Contributor

Choose a reason for hiding this comment

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

grant -> granted


- GET /datasets/<id> - granted (returns HTTP Status 200 - OK)
- POST /datasets/<id>/value - granted (returns HTTP Status 200 - OK)
- PUT /datasets/<id>/shape) - grant (returns HTTP Status 200 - OK)
Copy link
Contributor

Choose a reason for hiding this comment

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

grant -> granted

Use Azure Front Door for SSL/https with HSDS on AKS

With the instructions in *kubernetes_install_azure.md*, you can deploy
hsds to Azure Kubernetes Service (AKS) and access it over http using the
Copy link
Contributor

Choose a reason for hiding this comment

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

hsds -> HSDS

@@ -0,0 +1,219 @@
Bug Reports & Contributions
Copy link
Contributor

Choose a reason for hiding this comment

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

This whole doc still refers to h5py

@@ -0,0 +1,220 @@
.. _faq:
Copy link
Contributor

Choose a reason for hiding this comment

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

Another h5py doc

@@ -0,0 +1,230 @@
Licenses and legal info
Copy link
Contributor

Choose a reason for hiding this comment

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

h5py document

@@ -0,0 +1,35 @@
.. _quick:
Copy link
Contributor

Choose a reason for hiding this comment

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

h5py doc

@@ -0,0 +1,107 @@
.. _related_projects:
Copy link
Contributor

Choose a reason for hiding this comment

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

h5py doc

@@ -0,0 +1,44 @@
.. _release_guide:
Copy link
Contributor

Choose a reason for hiding this comment

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

h5py doc

- name: Attribute
description: Operations involving Attributes.
- name: ACLS
description: Operations involving Attributes.
Copy link
Contributor

Choose a reason for hiding this comment

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

Attributes -> Access Control Lists

@@ -0,0 +1,11 @@
.. _whatsnew:
Copy link
Contributor

Choose a reason for hiding this comment

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

h5py doc

@jreadey
Copy link
Member Author

jreadey commented Mar 18, 2024

I messed this up - didn't me to include commits from different branches. Let me try to create a new PR...

@jreadey jreadey closed this Mar 18, 2024
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