-
-
Notifications
You must be signed in to change notification settings - Fork 751
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
Added include_attributes and exclude_attributes to GET /api/v1/executions/{id} #4497
Added include_attributes and exclude_attributes to GET /api/v1/executions/{id} #4497
Conversation
FYI just found a bug in router.py was throwing an exception:
Looks like that was a copy/paste error and should have been |
@@ -669,7 +669,7 @@ def process_item(item): | |||
result.append(item) | |||
elif isinstance(data, dict): | |||
# get_one response | |||
result = process_item(item) | |||
result = process_item(data) |
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.
Good catch. It looks we don't have test case for this scenario? :)
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.
Besides that and test case for handling of those attributes it looks good to me 👍
I believe we already have a pattern for include and exclude attributes test cases. We might not just have one for "get one" API endpoints yet.
Thanks for opening this. Can you please also add a changelog entry? |
Please don't merge this yet I found a least one bug in So far i've found the following is broken:
|
Latest commit should address the |
It looks like some CLI tests are failing. I didn't have time to dig in yet (if it's related to this change or not). EDIT: End to end tests are failing as well so it looks like a legit issues. |
I pushed a small change and I believe this should now work correctly. |
|
with include_attributes filters in place.
05795d8
to
e36c976
Compare
The diff got really large and messy so I needed to rebase this on top of master and force push to get it sorted out. |
Previously
GET /api/v1/executions/{id}
did not have theinclude_attributes
orexclude_attributes
query parameters, meaning it couldn't filter the output of large executions. This PR adds that ability.@Kami are any other modifications necessary?
TODO