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

编写文章时,如果浏览器 Tab 不活跃(未在当前页),不会轮询请求 health 接口,导致无法 session 保活 #5265

Closed
ruibaby opened this issue Jan 29, 2024 · 0 comments · Fixed by #5266
Labels
area/console Issues or PRs related to the Halo Console kind/bug Categorizes issue or PR as related to a bug.
Milestone

Comments

@ruibaby
Copy link
Member

ruibaby commented Jan 29, 2024

系统信息

  • 外部访问地址:
  • 启动时间: 2024-01-29 10:36
  • 版本: 2.12.0-SNAPSHOT
  • 构建时间: 2024-01-29 10:36
  • Git Commit: 7a8e430
  • Java: OpenJDK Runtime Environment / 17.0.9+0
  • 数据库: PostgreSQL / 15.2 (Debian 15.2-1.pgdg110+1)
  • 操作系统: Mac OS X / 14.3
  • 已激活主题: Walker
  • 已启动插件:

使用的哪种方式运行?

Docker

在线站点地址

No response

发生了什么?

如题,目前发现浏览器 Tab 不活跃时,不会轮询 health 接口。

/kind bug
/area console
/milestone 2.12.x

相关日志输出

No response

附加信息

No response

@f2c-ci-robot f2c-ci-robot bot added the kind/bug Categorizes issue or PR as related to a bug. label Jan 29, 2024
@f2c-ci-robot f2c-ci-robot bot added this to the 2.12.x milestone Jan 29, 2024
@f2c-ci-robot f2c-ci-robot bot added the area/console Issues or PRs related to the Halo Console label Jan 29, 2024
f2c-ci-robot bot pushed a commit that referenced this issue Jan 29, 2024
…nactive (#5266)

#### What type of PR is this?

/area console
/kind bug
/milestone 2.12.x

#### What this PR does / why we need it:

修复当浏览器标签页不活跃时,文章编辑页面的 health 接口没有定时请求的问题。

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

Fixes #5265 

#### Special notes for your reviewer:

测试方式:

1. 可以在本地先将 refetchInterval 改为 1000 以方便测试。
2. 进入文章编辑页面。
3. 切换至其他标签页。
4. 返回之后查看浏览器开发者工具的 Network ,观察 health 接口是否有请求。

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

```release-note
修复当浏览器标签页不活跃时,文章编辑页面的 health 接口没有定时请求的问题。
```
@ruibaby ruibaby modified the milestones: 2.12.x, 2.12.0 Jan 29, 2024
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 kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant