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

Fix AE extra attribute section. #4025

Merged
merged 1 commit into from
Dec 3, 2024
Merged

Conversation

pierrebai-adsk
Copy link
Collaborator

A previous change broke which attributes are added to the extra attributes section. That is because the default function to create an attribute UI returns None and was interpreted as no UI being created.

This is a unfortunate consequence of the design: the return value is interpreted as success or failure of creating a UI and then, on success, custom callbacks are connected to that UI. But for the default fallback, those callbacks must not be added, so it returns None, which was interpreted as failure. Given that it is the final fallback, that had no consequences, but a code change made registering the attribute as being handled was no longer done properly.

Restore the old code, which was adding the attribute to the list of known, handled attributes. Also, don't add suppressed attributes in the extra attribute section.

A previous change broke which attributes are added to the extra attributes section. That is because the default function to create an attribute UI returns None and was interpreted as no UI being created.

This is a unfortunate consequence of the design: the return value is interpreted as sucsess or failure of creating a UI and then, on success, custom callbacks are connected to that UI. But for the default fallback, those callbacks must not be added, so it returns None, which was interpreted as failure. Given that it is the final fallback, that had no consequences, but a code change made registering the attribute as being handled was no longer done properly.

Restore the old code, which was adding the attribute to teh list of known, handled attributes. Also, don't add supressed attributes in the extra attribute section.
@pierrebai-adsk pierrebai-adsk added the bug Something isn't working label Dec 2, 2024
@pierrebai-adsk pierrebai-adsk self-assigned this Dec 2, 2024
@pierrebai-adsk pierrebai-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Dec 3, 2024
@seando-adsk seando-adsk merged commit 0dd5c4d into dev Dec 3, 2024
11 checks passed
@seando-adsk seando-adsk deleted the bailp/EMSUSD-0/AE-extra-attrs branch December 3, 2024 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ready-for-merge Development process is finished, PR is ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants