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

Move Flattening of Nested Action Objects to User code exec #9027

Merged
merged 13 commits into from
Jul 15, 2024

Conversation

shubham3121
Copy link
Member

Description

Please include a summary of the change, the motivation, and any additional context that will help others understand your PR. If it closes one or more open issues, please tag them as described here.

Affected Dependencies

List any dependencies that are required for this change.

How has this been tested?

  • Describe the tests that you ran to verify your changes.
  • Provide instructions so we can reproduce.
  • List any relevant details for your test configuration.

Checklist

if self.contains_nested_actionobjects(data):
new_data = self.unwrap_nested_actionobjects(context, data)
# Update existing action object with the new flattened data
action_object.syft_action_data_cache = new_data
Copy link
Member Author

@shubham3121 shubham3121 Jul 15, 2024

Choose a reason for hiding this comment

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

Refactored this logic to update existing Action Object with new data instead of creating a new one, in order to preserve permissions on the ActionObject.

@shubham3121 shubham3121 changed the title Fix saving Nested objs when processing queue items Move Flattening of Nested Action Objects to User code exec Jul 15, 2024
@teo-milea teo-milea merged commit 077fc56 into dev Jul 15, 2024
27 checks passed
@teo-milea teo-milea deleted the fix-saving-nested-action-obj-queue branch July 15, 2024 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants