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

implement the include filter for python-icat #143

Closed
stuartpullinger opened this issue Jun 17, 2020 · 0 comments · Fixed by #168
Closed

implement the include filter for python-icat #143

stuartpullinger opened this issue Jun 17, 2020 · 0 comments · Fixed by #168
Assignees

Comments

@stuartpullinger
Copy link
Contributor

stuartpullinger commented Jun 17, 2020

Involves parsing out several query formats. Use the ICAT extension to JPQL which allows you to add an 'INCLUDE' clause to queries. See the docs here:

https://repo.icatproject.org/site/icat/server/4.10.0/soap.html

MRichards99 added a commit that referenced this issue Sep 3, 2020
- This filter currently accepts a single entity name, or a list of entity names. Dictionaries are not yet supported
MRichards99 added a commit that referenced this issue Sep 3, 2020
…CAT format

- This change doesn't make dictionary include filter work, but they're now converted to a notation that Python ICAT accepts
MRichards99 added a commit that referenced this issue Sep 3, 2020
…n ICAT

- This deals with strings and lists very well, work is needed on handling dictionaries
MRichards99 added a commit that referenced this issue Sep 3, 2020
- Input for PythonICATIncludeFilter
MRichards99 added a commit that referenced this issue Sep 7, 2020
- Warning were caused by missing import statements
MRichards99 added a commit that referenced this issue Sep 7, 2020
- Also add some comments in `execute_query()`
MRichards99 added a commit that referenced this issue Sep 9, 2020
- Data is now added when dictionaries are used within an include filter, however it's not nested correctly
MRichards99 added a commit that referenced this issue Sep 9, 2020
- Written a specific solution for the data I've been looking at.
- This now uncovered another issue, with the way I search dict_result to convert datetime objects to strings
MRichards99 added a commit that referenced this issue Sep 11, 2020
- A nice recursive function allows dictionary-based include filters to be correctly added to the request's response
- Requests are still currently broken because of date conversion still not happening correctly, but the log message which shows `data` before being returned shows the data structure is correct, near identical to the way its assembled in the database backend
MRichards99 added a commit that referenced this issue Sep 11, 2020
MRichards99 added a commit that referenced this issue Sep 11, 2020
- This commit will also add some info logging to track what happens to the query during its lifecycle
MRichards99 added a commit that referenced this issue Sep 11, 2020
@MRichards99 MRichards99 linked a pull request Sep 11, 2020 that will close this issue
@MRichards99 MRichards99 self-assigned this Sep 11, 2020
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 a pull request may close this issue.

2 participants