updated code comments and added v0.23.0-rc release notes
This commit is contained in:
parent
bc67835de9
commit
292c34ee52
1182
CHANGELOG.md
1182
CHANGELOG.md
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -10,7 +10,7 @@ This document describes how to prepare a PR for a change in the main repository.
|
||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
- Go 1.21+ (for making changes in the Go code)
|
- Go 1.23+ (for making changes in the Go code)
|
||||||
- Node 18+ (for making changes in the Admin UI)
|
- Node 18+ (for making changes in the Admin UI)
|
||||||
|
|
||||||
If you haven't already, you can fork the main repository and clone your fork so that you can work locally:
|
If you haven't already, you can fork the main repository and clone your fork so that you can work locally:
|
||||||
|
|
|
@ -89,7 +89,7 @@ func recordAuthWithOAuth2(e *core.RequestEvent) error {
|
||||||
|
|
||||||
var authRecord *core.Record
|
var authRecord *core.Record
|
||||||
|
|
||||||
// check for existing relation with the auth record
|
// check for existing relation with the auth collection
|
||||||
externalAuthRel, err := e.App.FindFirstExternalAuthByExpr(dbx.HashExp{
|
externalAuthRel, err := e.App.FindFirstExternalAuthByExpr(dbx.HashExp{
|
||||||
"collectionRef": form.collection.Id,
|
"collectionRef": form.collection.Id,
|
||||||
"provider": form.Provider,
|
"provider": form.Provider,
|
||||||
|
|
|
@ -52,6 +52,9 @@ func (app *BaseApp) LogsStats(expr dbx.Expression) ([]*LogsStatsItem, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// DeleteOldLogs delete all requests that are created before createdBefore.
|
// DeleteOldLogs delete all requests that are created before createdBefore.
|
||||||
|
//
|
||||||
|
// For better performance the logs delete is executed as plain SQL statement,
|
||||||
|
// aka. no delete model hook events will be fired.
|
||||||
func (app *BaseApp) DeleteOldLogs(createdBefore time.Time) error {
|
func (app *BaseApp) DeleteOldLogs(createdBefore time.Time) error {
|
||||||
formattedDate := createdBefore.UTC().Format(types.DefaultDateLayout)
|
formattedDate := createdBefore.UTC().Format(types.DefaultDateLayout)
|
||||||
expr := dbx.NewExp("[[created]] <= {:date}", dbx.Params{"date": formattedDate})
|
expr := dbx.NewExp("[[created]] <= {:date}", dbx.Params{"date": formattedDate})
|
||||||
|
|
Loading…
Reference in New Issue