Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

完善初始化流程 #3230

Closed
ruibaby opened this issue Feb 5, 2023 · 4 comments · Fixed by #4306
Closed

完善初始化流程 #3230

ruibaby opened this issue Feb 5, 2023 · 4 comments · Fixed by #4306
Assignees
Labels
area/console Issues or PRs related to the Halo Console area/core Issues or PRs related to the Halo Core kind/improvement Categorizes issue or PR as related to a improvement. priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now.
Milestone

Comments

@ruibaby
Copy link
Member

ruibaby commented Feb 5, 2023

你当前使用的版本

2.2.0

描述一下此特性

目前在首次安装的时候登录 Console 会有一个简单的初始化页面,仅支持设定站点标题,期望对其进行以下完善:

  1. 保存初始化状态,首次安装时如果没有初始化,那么重定向到初始化页面,包括首页(目前的状态是可以访问首页,但没有任何数据,这会一定程度导致观感不佳。并且有一定概率主题模板因为没有数据而导致异常)。
  2. 支持以下初始化内容
    1. 管理员
    2. 站点标题
    3. 插件、主题

相关 issue:#3120

/area core
/area console
/kind improvement

附加信息

No response

@f2c-ci-robot f2c-ci-robot bot added area/core Issues or PRs related to the Halo Core area/console Issues or PRs related to the Halo Console kind/improvement Categorizes issue or PR as related to a improvement. labels Feb 5, 2023
@ruibaby ruibaby added this to the 2.3.x milestone Feb 6, 2023
@JohnNiang
Copy link
Member

初步想法:

创建一个 Extension 专门用于保存初始化数据,同时运行 Reconciler 进行初始化(包括创建管理员,文章,页面,分类,标签,菜单等),初始化完毕之后在 status 中设置已初始化的状态。

@ruibaby ruibaby modified the milestones: 2.3.x, 2.4.x Feb 23, 2023
@JohnNiang JohnNiang modified the milestones: 2.4.x, 2.5.x Apr 6, 2023
@ruibaby ruibaby modified the milestones: 2.5.x, 2.6.x Apr 29, 2023
@ruibaby ruibaby added the priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. label Apr 29, 2023
@guqing
Copy link
Member

guqing commented May 4, 2023

/assign

f2c-ci-robot bot pushed a commit that referenced this issue May 4, 2023
…not initialized (#3892)

#### What type of PR is this?
/kind improvement
/area core
/milestone 2.5.2
#### What this PR does / why we need it:
添加系统初始化检查,如果未初始化则重定向到控制台。

此检查只针对首页,当用户访问首页时检查到未初始化则跳转到 Console 让用户初始化以优化没有数据时的访问体验。

SetupStateCache 用于缓存系统初始化状态,当数据库状态改变时会更新缓存以优化性能,避免每次访问首页都查询数据。

#### Which issue(s) this PR fixes:

A part of #3230

#### Does this PR introduce a user-facing change?

```release-note
添加系统初始化检查,如果未初始化则重定向到控制台
```
@ruibaby ruibaby modified the milestones: 2.6.x, Backlog May 26, 2023
@JohnNiang
Copy link
Member

/milestone 2.8.x

@f2c-ci-robot f2c-ci-robot bot modified the milestones: Backlog, 2.8.x Jul 26, 2023
@JohnNiang
Copy link
Member

/assign @ruibaby

@JohnNiang JohnNiang modified the milestones: 2.9.x, 2.9.0 Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/console Issues or PRs related to the Halo Console area/core Issues or PRs related to the Halo Core kind/improvement Categorizes issue or PR as related to a improvement. priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants