Skip to content

Conversation

@dstandish
Copy link
Contributor

From 2.3 this is supported, so we update to generally not use the extra prefix but maintain backcompat.

From 2.3 this is supported, so we update to generally not use the extra prefix but maintain backcompat.
if not hasattr(self, 'extras'):
return default
backcompat_prefix = 'extra__yandexcloud__'
if field_name.startswith('extra_'):
Copy link
Contributor

Choose a reason for hiding this comment

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

Non-blocking suggestion, is there a reason to not use startswith(backcompat_prefix)?

Copy link
Contributor

Choose a reason for hiding this comment

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

It actually looks like you id this in some of the newer ones.

Copy link
Contributor

@ferruzzi ferruzzi left a comment

Choose a reason for hiding this comment

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

Left a non-blocking suggestion, but otherwise LGTM

@dstandish dstandish merged commit 837e463 into apache:main Oct 22, 2022
@dstandish dstandish deleted the yandex-no-extra-prefix branch October 22, 2022 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants