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

Improve feature attribute transfer by allowing copying _some_ expression-driven attributes #5730

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

nirvn
Copy link
Member

@nirvn nirvn commented Oct 12, 2024

When we initially released this functionality, we turned out to be a bit too rigid on our handling of expression-driven attribute.

This PR relaxes things a bit by applying the prohibition on transfer of attribute values on attributes with default value expression to those that don't update their value on feature updates. The updated logic continues to protect users from overwriting UUID / unique value / timestamp attributes that would have been generated once on feature creation while allowing for expression-drive attributes set to refresh on feature update to have values transferred.

@qfield-fairy
Copy link
Collaborator

@nirvn nirvn merged commit bf41979 into master Oct 14, 2024
25 checks passed
@nirvn nirvn deleted the attribute_transfer_imp branch October 14, 2024 02:41
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.

2 participants