-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
change: creating core resources does not allow passing in create_time
and update_time
#10232
change: creating core resources does not allow passing in create_time
and update_time
#10232
Conversation
create_time
and update_time
for resources in admin api
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.
LGTM.
Signed-off-by: Sn0rt <wangguohao.2009@gmail.com>
create_time
and update_time
for resources in admin apicreate_time
and update_time
apisix/admin/resource.lua
Outdated
if conf.create_time then | ||
return not_allow_create_time | ||
end |
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.
Is it possible to define a check list and sequentially check for properties that should not exist? like
local forbidden_properties = {create_time, update_time}
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.
great! I will fix it later
Signed-off-by: Sn0rt <wangguohao.2009@gmail.com>
Description
Fixes #10094
email: https://lists.apache.org/thread/968kp7hd6zcg7ty2clomkbshmd53v71d
this PR depend on #10229
Checklist
@monkeyDluffy6017 @leslie-tsang pls help me to review