-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Better description of the import limiting for deserialization #28124
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
Better description of the import limiting for deserialization #28124
Conversation
Introduce better description and significant change in release notes for import limiting for deserialization. Follow up after apache#27887
|
The serializer will be generic and not just tied to XCom so referring to XCom doesn't make sense |
But we can change the message then ? can we? For now it's only XCom, as I understand. |
Just some reason why - It took me quite a while to look it up (going through Git History and finding PR) so I can only imagine how hard it might be for the user, and I think we should give as good a hint where it is from as we can. |
|
But yeah. anyhow let's wait for the user to respond how he got there, I am also curious why it was triggered at all. |
|
This is the follow up #28067 |
| raise ImportError( | ||
| f"{classname} was not found in allow list for import in XCom. " | ||
| "If you want to continue to use your class in XCom, add it to " | ||
| "allowed_deserialization_classes config in core section of config." |
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.
| "allowed_deserialization_classes config in core section of config." | |
| "allowed_deserialization_classes config in core section of airflow.cfg." |
| if not cls: | ||
| raise ImportError(f"{classname} was not found in allow list for import") | ||
| raise ImportError( | ||
| f"{classname} was not found in allow list for import in XCom. " |
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.
| f"{classname} was not found in allow list for import in XCom. " | |
| f"{classname} was not found in allow list for imports. " |
|
As I intend to further refactor it in the earlier mentioned PR and in the intention is to have that out as part of 2.5.1 and this is just clarification I think I'd better solve it there. |
Cool. Closing it then :) |
Introduce better description and significant change in release notes for import limiting for deserialization.
Follow up after #27887
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rstor{issue_number}.significant.rst, in newsfragments.