goplus / community

Go+ Community written in Go+
Apache License 2.0
11 stars 15 forks source link

3.4-3.8 sprint planning #222

Closed IRONICBo closed 8 months ago

IRONICBo commented 8 months ago

3.4-3.8 sprint planning

Peer Review

Bug lists

Article

CI/CD processing

Go+ doc

Go+ Vscode extensions

Go+ Engineering

IRONICBo commented 8 months ago

MVP Feature List Testing

1. Login and Registration @LiusCraft

2. Posting and Editing Articles @Baihhh

3. Viewing Posts @xhyqaq

4. Video Playback @Baihhh

5. Translate Articles @IRONICBo

6. Yap API Interface Testing @IRONICBo

7. Media Resource Operations @xhyqaq

PRA Test

1. User Information @LiusCraft

LiusCraft commented 8 months ago

Fix goplus slow compilation issues in the Windows environment.

Troubleshooting found that the problem was caused by the slow Windows file system.

Read the source code to find that go build recursively caches the folder and loads the contents of the file to calculate the hash value

The test found that recursive files under Windows is a very slow behavior: code:

package main

import (
    "fmt"
    "log"
    "os"
    "path/filepath"
    "time"
)

func recursiveFiles(directory string) error {
    err := filepath.Walk(directory, func(path string, info os.FileInfo, err error) error {
        if err != nil {
            return err
        }
        if info.Mode().IsRegular() {
            // fmt.Println(path)
        }
        return nil
    })
    return err
}

func main() {
    start := time.Now()
    directory := `go-build path`
    err := recursiveFiles(directory)
    if err != nil {
        fmt.Println(err)
    }
    log.Printf("%.2f", time.Since(start).Seconds())
}

windows 11 result: image linux(ubuntu) result: image

LiusCraft commented 8 months ago

read go source code: go build scope: https://hxfoszvibov.feishu.cn/docx/OVy7d6rV5oMQgMxilEScVs7XnBb?from=from_copylink

LiusCraft commented 8 months ago

test results(3/7 pass):

    • [x] Test that the casdoor login page loads properly.
    • [x] Tests valid and invalid login credentials, verifies the accuracy of error messages, and verifies that you can successfully login and be redirected to the expected page.
    • [ ] Attempting to log in with invalid login credentials, i.e., logging in with the wrong token.
      • [ ] Token has expired on casdoor, but community can still be used
    • [ ] Test the integrity of the multi-account login process, including WeChat, X, and Facebook, verifying that each login method is able to successfully log in and correctly handle the post-login state.
      • [x] After successful login, returning to the community is blocked (no pop-up window or redirect permission) (pr: 2778)
      • [x] There is a problem with Wechat binding.(Feedback to casdoor) (pr: 2774)
      • [ ] facebook need add vpn, and Only developers' account login is supported.
      • [ ] Twitter: There is a limit of 100 logins per day.
    • [ ] Verify multi-account binding, unbinding functionality
      • [x] unLink api url change, Need to rewrite the request code (pr: 235)
    • [ ] Verify that regular users can access admin user list operations beyond their privileges.
      • [ ] wait admin code mrege to main repo
    • [x] Verify that a normal user can access other user's editing privileges and pages directly via URL.
IRONICBo commented 8 months ago

Test doc has moved to #259.