apisix icon indicating copy to clipboard operation
apisix copied to clipboard

feat: there is no "createtime" when creating a consumer by adminAPI, which causes dashboard to display wrong "Update Time"

Open idbeta opened this issue 6 years ago • 3 comments

Issue description

There is no "createtime" when creating a consumer by adminAPI, which causes dashboard to display wrong "Update Time"

Environment

  • apisix version (cmd: apisix version):
  • OS: apisix2.0 + dashboard 2.0

relate https://github.com/apache/apisix-dashboard/issues/718

idbeta avatar Nov 08 '20 00:11 idbeta

there is the new field we need to support, please confirm they are Unix timestamp:

  • create_time
  • update_time

@nic-chen @ShiningRush

membphis avatar Nov 08 '20 03:11 membphis

there is the new field we need to support, please confirm they are Unix timestamp:

  • create_time
  • update_time

@nic-chen @ShiningRush

yes, it is. and is in secode.

nic-chen avatar Nov 08 '20 05:11 nic-chen

We only have those fields: https://github.com/apache/apisix/blob/a2fa3ff89d886020a317f7e7f024756296e9861d/t/admin/consumers.t#L328

What we need to do is adding them to the doc.

spacewander avatar Nov 11 '20 07:11 spacewander