4827 Commits

Author SHA1 Message Date
Ming Deng
f81689dfb1
Release v2.0.5 (#5033)
* add: generic cache random time offset expired.

* bugfix: Csrf token should be Secure and httpOnly, but not now

* fix: expose the Offset property to allow external modifications

* improving the concurrency performance of random value calculation

* add WithOffsetFunc to define private RandomExpireCache.offset field

* fix: add seconds definition

* build(deps): bump github.com/stretchr/testify from 1.7.1 to 1.8.0

Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.1 to 1.8.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.7.1...v1.8.0)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix 4907: force admin service http only

* Feat: add get all tasks function (#4999)

* feat: add get all tasks function

* Refine Comments : admin/profile.go,bean/mock.go,config/global.go... (#5009)

* Refine Comments

* refine comments for cache.go

* refine comments for log.go

* Update orm.go

* refine comments for orm_log.go,types.go

* Update utils.go

* Update doc.go

* refine comments for for four files (#5011)

* refine comments for cache.go

* refine comments for log.go

* Update orm.go

* refine comments for orm_log.go,types.go

* Update utils.go

* Update doc.go

* Update db.go

* fix pass []any as any in variadic function by asasalint (#5012)

* fix pass []any as any in variadic function

* add change log

* build(deps): bump go.opentelemetry.io/otel/trace from 1.7.0 to 1.8.0 (#5019)

Bumps [go.opentelemetry.io/otel/trace](https://github.com/open-telemetry/opentelemetry-go) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.7.0...v1.8.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel/trace
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* refine comments for package core  (#5014)

* Refine Comments

* refine comments for cache.go

* refine comments for log.go

* Update orm.go

* refine comments for orm_log.go,types.go

* Update utils.go

* Update doc.go

* refine comments

* refine comments

* Update db.go

* refine comments for core

* build(deps): bump go.opentelemetry.io/otel/exporters/stdout/stdouttrace (#5018)

Bumps [go.opentelemetry.io/otel/exporters/stdout/stdouttrace](https://github.com/open-telemetry/opentelemetry-go) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.7.0...v1.8.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel/exporters/stdout/stdouttrace
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix 5022: Miss assiging ln to graceful Server (#5028)

* prepare for releasing v2.0.5 (#5032)

Co-authored-by: auual <ding@ibyte.me>
Co-authored-by: Leon Ding <deen.job@qq.com>
Co-authored-by: dada0z <zhang.guangda@qq.com>
Co-authored-by: kevinzeng <kevinzeng@zego.im>
Co-authored-by: Kevin Tsang <39397413+ktalg@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: 日暮颂歌1991 <448081525@qq.com>
Co-authored-by: Regan Yue <1131625869@qq.com>
Co-authored-by: alingse <alingse@foxmail.com>
2022-07-30 16:11:51 +08:00
Ming Deng
e84b93919f
prepare for releasing v2.0.5 (#5032) 2022-07-30 16:03:02 +08:00
Ming Deng
ab5a13f02a
fix 5022: Miss assiging ln to graceful Server (#5028) 2022-07-28 22:53:00 +08:00
dependabot[bot]
080f4e1a56
build(deps): bump go.opentelemetry.io/otel/exporters/stdout/stdouttrace (#5018)
Bumps [go.opentelemetry.io/otel/exporters/stdout/stdouttrace](https://github.com/open-telemetry/opentelemetry-go) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.7.0...v1.8.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel/exporters/stdout/stdouttrace
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-19 21:52:40 +08:00
Regan Yue
907956fbcf
refine comments for package core (#5014)
* Refine Comments

* refine comments for cache.go

* refine comments for log.go

* Update orm.go

* refine comments for orm_log.go,types.go

* Update utils.go

* Update doc.go

* refine comments

* refine comments

* Update db.go

* refine comments for core
2022-07-19 17:17:06 +08:00
dependabot[bot]
80e6f3d42c
build(deps): bump go.opentelemetry.io/otel/trace from 1.7.0 to 1.8.0 (#5019)
Bumps [go.opentelemetry.io/otel/trace](https://github.com/open-telemetry/opentelemetry-go) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.7.0...v1.8.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel/trace
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-18 18:11:04 +08:00
alingse
890caddfb3
fix pass []any as any in variadic function by asasalint (#5012)
* fix pass []any as any in variadic function

* add change log
2022-07-10 14:39:46 +08:00
Regan Yue
493e7db20b
refine comments for for four files (#5011)
* refine comments for cache.go

* refine comments for log.go

* Update orm.go

* refine comments for orm_log.go,types.go

* Update utils.go

* Update doc.go

* Update db.go
2022-07-09 18:10:19 +08:00
Regan Yue
49be2581d1
Refine Comments : admin/profile.go,bean/mock.go,config/global.go... (#5009)
* Refine Comments

* refine comments for cache.go

* refine comments for log.go

* Update orm.go

* refine comments for orm_log.go,types.go

* Update utils.go

* Update doc.go
2022-07-08 21:19:52 +08:00
日暮颂歌1991
2c506f7c2b
Feat: add get all tasks function (#4999)
* feat: add get all tasks function
2022-07-02 18:18:22 +08:00
Ming Deng
50c4c849da
Merge pull request #5005 from flycash/dev
fix 4907: force admin service http only
2022-07-02 17:09:44 +08:00
Deng Ming
bf60d037f2 fix 4907: force admin service http only 2022-07-02 17:04:31 +08:00
Ming Deng
4ec8eefa42
Merge pull request #5002 from beego/dependabot/go_modules/github.com/stretchr/testify-1.8.0
build(deps): bump github.com/stretchr/testify from 1.7.1 to 1.8.0
2022-06-29 21:29:44 +08:00
Ming Deng
3eb35c710c
Merge pull request #5001 from ktalg/develop
fix: nil offset function of RandomExpireCache instance
2022-06-29 21:19:39 +08:00
dependabot[bot]
083b2c8858
build(deps): bump github.com/stretchr/testify from 1.7.1 to 1.8.0
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.1 to 1.8.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.7.1...v1.8.0)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-29 13:14:52 +00:00
Kevin Tsang
fa4cc95fd4 fix: add seconds definition 2022-06-29 14:13:52 +08:00
Kevin Tsang
178440bcdd add WithOffsetFunc to define private RandomExpireCache.offset field 2022-06-29 14:11:42 +08:00
kevinzeng
6edee6c9c9 improving the concurrency performance of random value calculation 2022-06-28 13:17:48 +08:00
kevinzeng
4f8e984df6 fix: expose the Offset property to allow external modifications 2022-06-28 13:17:00 +08:00
Ming Deng
7fa92f927a
Merge pull request #4990 from dada0z/develop
bugfix: Csrf token should be Secure and httpOnly, but not now
2022-06-18 23:19:56 +08:00
dada0z
d696a37f48 bugfix: Csrf token should be Secure and httpOnly, but not now 2022-06-18 19:50:00 +08:00
Ming Deng
8b43b87dbb
Merge pull request #4984 from auula/develop
fix: random expired time cache.
2022-06-12 22:28:47 +08:00
Leon Ding
44220f55bc
Merge branch 'develop' into develop 2022-06-12 22:21:55 +08:00
auual
e36eb1a3c5 add: generic cache random time offset expired. 2022-06-12 22:20:11 +08:00
Ming Deng
cc476cd57d
Merge pull request #4986 from beego/master
Master to develop
2022-06-12 22:00:49 +08:00
Ming Deng
0b8b87cf56
Merge pull request #4982 from flycash/dev
Release v2.0.4 change log
2022-06-12 10:42:27 +08:00
Deng Ming
9d27055fc8 Release v2.0.4 change log 2022-06-12 10:41:06 +08:00
Ming Deng
fd15b2026b
Merge pull request #4981 from beego/develop
Release v2.0.4
2022-06-12 10:38:39 +08:00
Ming Deng
a6779b48a4
Merge pull request #4980 from flycash/dev
fix 4976: make admin serve HTTP only
2022-06-10 21:52:49 +08:00
Deng Ming
41cc57dcf2 fix 4976: make admin serve HTTP only 2022-06-10 21:26:36 +08:00
Ming Deng
af271bcc6e
Merge pull request #4979 from flycash/dev
fix 4975: graceful server listen the specific address
2022-06-10 21:07:48 +08:00
Deng Ming
79abec4fb9 fix 4975: graceful server listen the specific address 2022-06-10 19:04:09 +08:00
Ming Deng
5a873ea0f0
Merge pull request #4950 from Dokiys/feature/orm_otel_filter
Feat: add orm opentelemetry filter
2022-05-30 23:20:55 +08:00
Dokiy
f2c28be167 feat: add orm opentelemetry filter 2022-05-29 21:47:53 +08:00
Ming Deng
809c0b46ac
Merge pull request #4964 from runner361/develop
fix issue 4961 Function leafInfo.match() use path.join() to deal with wildcardValues, which may lead to cross directory risk
2022-05-29 18:56:22 +08:00
runner361
4ca2780dbf Fix issue 4961
Fix issue 4961, `leafInfo.match()` use `path.join()` to deal with `wildcardValues`, which may lead to cross directory risk
2022-05-29 07:54:48 +08:00
Ming Deng
d828091699
Merge pull request #4959 from beego/develop
Prepare releasing v2.0.3
2022-05-23 21:34:13 +08:00
Ming Deng
c143120e09
Merge pull request #4962 from flycash/dev
change changelog developing to v2.0.3
2022-05-23 21:22:11 +08:00
Deng Ming
2fc51b9c7f change changelog developing to v2.0.3 2022-05-23 21:16:50 +08:00
runner361
64cf44d725
fix issue 4946 (#4954)
* Update tree.go

fix issue 4946 CVE-2022-31259
2022-05-23 18:15:13 +08:00
Ming Deng
daf779ffca
Merge pull request #4953 from greenhandatsjtu/feat/refactor-orm
Refactor ORM: rename _modelCache struct to modelCache
2022-05-22 16:36:20 +08:00
Ming Deng
27595bb7db
Merge pull request #4940 from greenhandatsjtu/fix/orm_pg_comment
Fix: Append column comments to `create table` sentence when using postgres
2022-05-22 16:22:49 +08:00
greenhandatsjtu
ada107b3fe refine unit tests for getDbCreateSQL 2022-05-21 19:55:33 +08:00
greenhandatsjtu
f9d2b4cb9a Refactor ORM: rename _modelCache struct to modelCache 2022-05-21 10:06:31 +08:00
greenhandatsjtu
d5a5cdfdb5
Merge branch 'develop' into fix/orm_pg_comment 2022-05-19 14:27:27 +08:00
greenhandatsjtu
a539289b20 Add unit test for getDbCreateSQL() 2022-05-19 14:26:23 +08:00
Ming Deng
411fbb8cdb
Merge pull request #4943 from flycash/dev
logs: multiFileLogWriter uses incorrect formatter
2022-05-16 22:19:47 +08:00
Ming Deng
acbffa87ee
Merge pull request #4926 from beego/dependabot/go_modules/go.etcd.io/etcd/client/v3-3.5.4
build(deps): bump go.etcd.io/etcd/client/v3 from 3.5.2 to 3.5.4
2022-05-16 22:16:23 +08:00
Ming Deng
7a2fd2eae1
Merge pull request #4913 from turrisxyz/setup-permissions
Set permissions for GitHub actions
2022-05-16 22:15:22 +08:00
Deng Ming
981074340a logs: multiFileLogWriter uses incorrect formatter 2022-05-16 22:13:08 +08:00