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

♻️ refactor: move pglite to client service #5133

Merged
merged 3 commits into from
Dec 22, 2024

Conversation

arvinxx
Copy link
Contributor

@arvinxx arvinxx commented Dec 22, 2024

💻 变更类型 | Change Type

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

🔀 变更说明 | Description of Change

📝 补充信息 | Additional Information

Copy link

vercel bot commented Dec 22, 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 10:35am
lobe-chat-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 22, 2024 10:35am

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Dec 22, 2024
@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

gru-agent bot commented Dec 22, 2024

TestGru Assignment

Summary

Link CommitId Status Reason
Detail c1d3c18 🚫 Skipped No files need to be tested {"locales/en-US/common.json":"target file(locales/en-US/common.json) not in work scope \n include: /*.ts,/.tsx,**/.js,/*.jsx \n exclude: node_modules,/.test.ts,**/.test.tsx,/*.spec.ts,/.spec.tsx,**/.d.ts,/*.test.js,/.spec.js","src/services/file/client.test.ts":"target file(src/services/file/client.test.ts) not in work scope \n include: **/.ts,/*.tsx,/.js,**/.jsx \n exclude: node_modules,/*.test.ts,/.test.tsx,**/.spec.ts,/*.spec.tsx,/.d.ts,**/.test.js,/.spec.js","src/services/file/index.ts":"The code does not contain any functions or classes.","src/services/import/client.test.ts":"target file(src/services/import/client.test.ts) not in work scope \n include: **/.ts,/.tsx,**/.js,/*.jsx \n exclude: node_modules,/.test.ts,**/.test.tsx,/*.spec.ts,/.spec.tsx,**/.d.ts,/*.test.js,/.spec.js","src/services/import/index.ts":"The code does not contain any functions or classes.","src/services/message/client.test.ts":"target file(src/services/message/client.test.ts) not in work scope \n include: **/.ts,/*.tsx,/.js,**/.jsx \n exclude: node_modules,/*.test.ts,/.test.tsx,**/.spec.ts,/*.spec.tsx,/.d.ts,**/.test.js,/.spec.js","src/services/message/index.ts":"The code does not contain any functions or classes.","src/services/plugin/client.test.ts":"target file(src/services/plugin/client.test.ts) not in work scope \n include: **/.ts,/.tsx,**/.js,/*.jsx \n exclude: node_modules,/.test.ts,**/.test.tsx,/*.spec.ts,/.spec.tsx,**/.d.ts,/*.test.js,/.spec.js","src/services/plugin/index.ts":"The code does not contain any functions or classes.","src/services/session/client.test.ts":"target file(src/services/session/client.test.ts) not in work scope \n include: **/.ts,/*.tsx,/.js,**/.jsx \n exclude: node_modules,/*.test.ts,/.test.tsx,**/.spec.ts,/*.spec.tsx,/.d.ts,**/.test.js,/.spec.js","src/services/session/index.ts":"The code does not contain any functions or classes.","src/services/topic/_deprecated.test.ts":"target file(src/services/topic/_deprecated.test.ts) not in work scope \n include: **/.ts,/.tsx,**/.js,/*.jsx \n exclude: node_modules,/.test.ts,**/.test.tsx,/*.spec.ts,/.spec.tsx,**/.d.ts,/*.test.js,/.spec.js","src/services/topic/index.ts":"The code does not contain any functions or classes.","src/services/topic/pglite.test.ts":"target file(src/services/topic/pglite.test.ts) not in work scope \n include: **/.ts,/*.tsx,/.js,**/.jsx \n exclude: node_modules,/*.test.ts,/.test.tsx,**/.spec.ts,/*.spec.tsx,/.d.ts,**/.test.js,/.spec.js","src/services/user/client.test.ts":"target file(src/services/user/client.test.ts) not in work scope \n include: **/.ts,/.tsx,**/.js,/*.jsx \n exclude: node_modules,/.test.ts,**/.test.tsx,/*.spec.ts,/.spec.tsx,**/.d.ts,/*.test.js,/*.spec.js","src/services/user/index.ts":"The code does not contain any functions or classes.","src/services/import/client.ts":"no test value","src/services/file/client.ts":"no test value","src/services/topic/client.ts":"no test value","src/services/message/client.ts":"no test value","src/services/user/client.ts":"no test value","src/services/session/client.ts":"no test value","src/services/plugin/client.ts":"no test value"}

Tip

You can @gru-agent and leave your feedback. TestGru will make adjustments based on your input

Copy link

codecov bot commented Dec 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

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

Additional details and impacted files
@@            Coverage Diff            @@
##             main    #5133     +/-   ##
=========================================
  Coverage   92.51%   92.51%             
=========================================
  Files         566      566             
  Lines       43197    43197             
  Branches     2528     3996   +1468     
=========================================
  Hits        39965    39965             
  Misses       3232     3232             
Flag Coverage Δ
app 92.51% <100.00%> (ø)
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.

@arvinxx arvinxx merged commit c2ded24 into main Dec 22, 2024
12 checks passed
@arvinxx arvinxx deleted the refactor/move-pglite-to-client branch December 22, 2024 12:50
@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.2](v1.37.1...v1.37.2)
<sup>Released on **2024-12-22**</sup>

#### ♻ Code Refactoring

- **misc**: Move pglite to client service.

<br/>

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

#### Code refactoring

* **misc**: Move pglite to client service, closes [#5133](#5133) ([c2ded24](c2ded24))

</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.2 🎉

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
released size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants