go-sigma / sigma

OCI-Native artifact manager
https://docs.sigma.tosone.cn
Apache License 2.0
123 stars 9 forks source link

Bugs #199

Closed tosone closed 11 months ago

tosone commented 11 months ago

In deploy found many bugs, so show them here

  1. Get hot namespaces with error.
2023-10-08 03:49:59 ERR logger/glog.go:70 elapsed="239.788µs" rows=1 sql="SELECT `audits`.`namespace_id`,MAX(`audits`.`created_at`) AS `created_at`,COUNT(`audits`.`id`) AS `count` FROM `audits` WHERE `audits`.`action` <> \"delete\" AND `audits`.`user_id` = 2 GROUP BY `audits`.`namespace_id` ORDER BY count desc, created_at desc LIMIT 3"
2023-10-08 03:49:59 ERR namespaces/namespaces_list_hot.go:57 Get hot namespaces failed error="sql: Scan error on column index 1, name \"created_at\": unsupported Scan, storing driver.Value type string into type *time.Time"