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

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

Merged
merged 3 commits into from
Oct 7, 2023
Merged

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

merged 3 commits into from
Oct 7, 2023

Conversation

Sn0rt
Copy link
Contributor

@Sn0rt Sn0rt commented Sep 19, 2023

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
Copy link
Member

@yuluo-yx yuluo-yx left a 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>
@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 on lines 56 to 58
if conf.create_time then
return not_allow_create_time
end
Copy link
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
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

@monkeyDluffy6017 monkeyDluffy6017 added wait for update wait for the author's response in this issue/PR and removed discuss labels Sep 25, 2023
@monkeyDluffy6017 monkeyDluffy6017 added approved and removed wait for update wait for the author's response in this issue/PR labels Oct 7, 2023
@monkeyDluffy6017 monkeyDluffy6017 merged commit 4c5a109 into apache:master Oct 7, 2023
34 checks passed
@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
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