-
Notifications
You must be signed in to change notification settings - Fork 46
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
Don't exclude properties everywhere #4331
Conversation
8301390
to
156711a
Compare
def get_layer_class(layer, with_exclude=False): | ||
if with_exclude: | ||
# Exclude the columns used to record the last features update | ||
exclude = [] if layer.exclude_properties is None else layer.exclude_properties.split(",") |
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.
layer.exclude_properties is not part of "the columns used to record the last features update"
It seems that this line shoud be outside of if block.
I suppose we don't need "excluded properties" in select / insert / update operations.
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.
@arnaud-morvan I don't understand your comment, as I understand the start say the opposite of the end of your comment.
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.
Note that with_exclude=False
is mostly for insert / update operations, and with_exclude=True
for metadata operations (Layertree, xsd, lingua)
Fix regression introduced by 496e2bb
156711a
to
c9b37b3
Compare
Fix regression introduced by 496e2bb
Mainly we shouldn't exclude the lastUpdateDateColumn and lastUpdateUserColumn on insert or update operation otherwise we can't set them.