Skip to content

Support field name in fieldoffset #58100

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

PatrickHaecker
Copy link
Contributor

fieldtype accepts both the field's name or the field's index. It's inconsistent that fieldoffset only accepts the field's index, but not its name.

This commit adds support to fieldoffset for the field's name, documents and tests it.

`fieldtype` accepts both the field's name or the field's index. It's inconsistent that `fieldoffset` only accepts the field's index, but not its name.

This commit adds support for the field's name, documents and tests it.
@nsajko nsajko added the feature Indicates new feature / enhancement requests label Apr 14, 2025
Copy link
Member

@ararslan ararslan left a comment

Choose a reason for hiding this comment

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

This is great, thanks for the contribution!

@PatrickHaecker
Copy link
Contributor Author

This is great, thanks for the contribution!

Thanks for the improvement suggestions!

Copy link
Member

@ararslan ararslan left a comment

Choose a reason for hiding this comment

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

LGTM! Could be worth adding an entry to NEWS.md as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Indicates new feature / enhancement requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants