Skip to content

change: creating core resources does not allow passing in create_time and update_time#10232

Merged
juststillthinking merged 3 commits into
apache:masterfrom
Sn0rt:api7/remove-create_time-and-update_time
Oct 7, 2023
Merged

change: creating core resources does not allow passing in create_time and update_time#10232
juststillthinking merged 3 commits into
apache:masterfrom
Sn0rt:api7/remove-create_time-and-update_time

Conversation

@Sn0rt

@Sn0rt Sn0rt commented Sep 19, 2023

Copy link
Copy Markdown
Contributor

Description

Fixes #10094

email: https://lists.apache.org/thread/968kp7hd6zcg7ty2clomkbshmd53v71d

this PR depend on #10229

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

@monkeyDluffy6017 @leslie-tsang pls help me to review

@Sn0rt Sn0rt changed the title change: remove create_time and update_time for resources in admin api change: remove create_time and update_time for resources in admin api Sep 19, 2023
@Sn0rt
Sn0rt marked this pull request as draft September 20, 2023 01:44

@yuluo-yx yuluo-yx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.

@Sn0rt
Sn0rt marked this pull request as ready for review September 22, 2023 05:33
@Sn0rt
Sn0rt requested a review from yuluo-yx September 22, 2023 05:35
@Sn0rt Sn0rt changed the title change: remove create_time and update_time for resources in admin api change: creating core resources does not allow passing in create_time and update_time Sep 22, 2023
Comment thread apisix/admin/resource.lua Outdated
Comment thread apisix/admin/resource.lua Outdated
Comment thread apisix/admin/resource.lua Outdated
Comment thread apisix/admin/resource.lua Outdated
Comment thread apisix/admin/resource.lua Outdated
Comment on lines +56 to +58
if conf.create_time then
return not_allow_create_time
end

Copy link
Copy Markdown
Contributor

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}

Copy link
Copy Markdown
Contributor Author

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

Comment thread apisix/admin/resource.lua Outdated
Comment thread apisix/admin/resource.lua Outdated
Comment thread apisix/admin/resource.lua Outdated
@juststillthinking juststillthinking added wait for update wait for the author's response in this issue/PR and removed discuss labels Sep 25, 2023
@juststillthinking juststillthinking added approved and removed wait for update wait for the author's response in this issue/PR labels Oct 7, 2023
@juststillthinking
juststillthinking merged commit 4c5a109 into apache:master Oct 7, 2023
@Sn0rt
Sn0rt deleted the api7/remove-create_time-and-update_time branch October 12, 2023 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

remove create_time and update_time for resources in admin api

4 participants