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

✨ feat: support to use pglite as client db #4873

Merged
merged 5 commits into from
Dec 22, 2024
Merged

✨ feat: support to use pglite as client db #4873

merged 5 commits into from
Dec 22, 2024

Conversation

arvinxx
Copy link
Contributor

@arvinxx arvinxx commented Dec 3, 2024

💻 变更类型 | Change Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 👷 build
  • ⚡️ perf
  • 📝 docs
  • 🔨 chore

🔀 变更说明 | Description of Change

  • 现存 client service 保持不变
  • 新增一个 pglite service ,并迁移到 pglite db 实现
  • 新增 pglite db 启用弹窗image
  • 新增 pglite db 初始化指示器image

📝 补充信息 | Additional Information

Copy link

vercel bot commented Dec 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lobe-chat-database ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 22, 2024 8:56am
lobe-chat-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 22, 2024 8:56am

@lobehubbot
Copy link
Member

👍 @arvinxx

Thank you for raising your pull request and contributing to our Community
Please make sure you have followed our contributing guidelines. We will review it as soon as possible.
If you encounter any problems, please feel free to connect with us.
非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。
如果您遇到任何问题,请随时与我们联系。

Copy link

codecov bot commented Dec 3, 2024

Codecov Report

Attention: Patch coverage is 93.63992% with 65 lines in your changes missing coverage. Please review.

Project coverage is 92.51%. Comparing base (dba432f) to head (5824503).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
src/store/global/actions/clientDb.ts 52.94% 24 Missing ⚠️
src/services/session/pglite.ts 95.10% 9 Missing ⚠️
src/services/import/pglite.ts 76.47% 8 Missing ⚠️
src/services/message/server.ts 11.11% 8 Missing ⚠️
src/database/client/db.ts 97.56% 6 Missing ⚠️
src/services/topic/pglite.ts 95.29% 4 Missing ⚠️
src/services/user/pglite.ts 95.65% 4 Missing ⚠️
src/services/message/pglite.ts 98.30% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4873      +/-   ##
==========================================
+ Coverage   92.18%   92.51%   +0.33%     
==========================================
  Files         549      566      +17     
  Lines       41566    43197    +1631     
  Branches     2530     3839    +1309     
==========================================
+ Hits        38318    39965    +1647     
+ Misses       3248     3232      -16     
Flag Coverage Δ
app 92.51% <93.63%> (+0.33%) ⬆️
server 97.65% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

refactor modal name

pin pglite@0.2.13

add serverExternalPackages for pglite

fix tests

update model

remove migration

back previous test file
@arvinxx arvinxx marked this pull request as ready for review December 22, 2024 09:20
@dosubot dosubot bot added size:XXL This PR changes 1000+ lines, ignoring generated files. 🌠 Feature Request New feature or request | 特性与建议 labels Dec 22, 2024
@arvinxx arvinxx merged commit 4131f20 into main Dec 22, 2024
11 checks passed
@arvinxx arvinxx deleted the refactor/pglite branch December 22, 2024 09:20
@lobehubbot
Copy link
Member

❤️ Great PR @arvinxx ❤️

The growth of project is inseparable from user feedback and contribution, thanks for your contribution! If you are interesting with the lobehub developer community, please join our discord and then dm @arvinxx or @canisminor1990. They will invite you to our private developer channel. We are talking about the lobe-chat development or sharing ai newsletter around the world.
项目的成长离不开用户反馈和贡献,感谢您的贡献! 如果您对 LobeHub 开发者社区感兴趣,请加入我们的 discord,然后私信 @arvinxx@canisminor1990。他们会邀请您加入我们的私密开发者频道。我们将会讨论关于 Lobe Chat 的开发,分享和讨论全球范围内的 AI 消息。

github-actions bot pushed a commit that referenced this pull request Dec 22, 2024
## [Version&nbsp;1.37.0](v1.36.46...v1.37.0)
<sup>Released on **2024-12-22**</sup>

#### ✨ Features

- **misc**: Support to use pglite as client db.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Support to use pglite as client db, closes [#4873](#4873) ([4131f20](4131f20))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
@lobehubbot
Copy link
Member

🎉 This PR is included in version 1.37.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit to bentwnghk/lobe-chat that referenced this pull request Dec 22, 2024
## [Version&nbsp;1.79.0](v1.78.18...v1.79.0)
<sup>Released on **2024-12-22**</sup>

#### ♻ Code Refactoring

- **misc**: Move pglite to client service, refactor the client service to deprecated.

#### ✨ Features

- **misc**: Support to use pglite as client db.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Move pglite to client service, closes [lobehub#5133](https://github.com/bentwnghk/lobe-chat/issues/5133) ([c2ded24](c2ded24))
* **misc**: Refactor the client service to deprecated, closes [lobehub#5132](https://github.com/bentwnghk/lobe-chat/issues/5132) ([e603234](e603234))

#### What's improved

* **misc**: Support to use pglite as client db, closes [lobehub#4873](https://github.com/bentwnghk/lobe-chat/issues/4873) ([4131f20](4131f20))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌠 Feature Request New feature or request | 特性与建议 released size:XXL This PR changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants