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: refactor the client service to deprecated #5132

Merged
merged 1 commit 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

将原有的 dexie service 转为废弃 service

📝 补充信息 | 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 9:50am
lobe-chat-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 22, 2024 9:50am

@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 2bc7f9a 🚫 Skipped No files need to be tested {"src/services/file/_deprecated.test.ts":"target file(src/services/file/_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/file/index.ts":"The code does not contain any functions or classes.","src/services/import/index.ts":"The code does not contain any functions or classes.","src/services/message/_deprecated.test.ts":"target file(src/services/message/_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/message/index.ts":"The code does not contain any functions or classes.","src/services/plugin/_deprecated.test.ts":"target file(src/services/plugin/_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/plugin/index.ts":"The code does not contain any functions or classes.","src/services/session/_deprecated.test.ts":"target file(src/services/session/_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/session/index.ts":"The code does not contain any functions or classes.","src/services/topic/client.test.ts":"target file(src/services/topic/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/topic/index.ts":"The code does not contain any functions or classes.","src/services/user/_deprecated.test.ts":"target file(src/services/user/_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/user/index.ts":"The code does not contain any functions or classes.","src/store/chat/slices/builtinTool/action.test.ts":"target file(src/store/chat/slices/builtinTool/action.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/store/user/slices/common/action.test.ts":"target file(src/store/user/slices/common/action.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/_deprecated.ts":"no test value","src/services/file/_deprecated.ts":"no test value","src/services/message/_deprecated.ts":"no test value","src/services/session/_deprecated.ts":"no test value","src/services/user/_deprecated.ts":"no test value","src/services/plugin/_deprecated.ts":"no test value","src/services/topic/_deprecated.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 (4131f20) to head (2bc7f9a).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##             main    #5132     +/-   ##
=========================================
  Coverage   92.51%   92.51%             
=========================================
  Files         566      566             
  Lines       43197    43197             
  Branches     3995     2687   -1308     
=========================================
  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.

@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.1](v1.37.0...v1.37.1)
<sup>Released on **2024-12-22**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor the client service to deprecated.

<br/>

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

#### Code refactoring

* **misc**: Refactor the client service to deprecated, closes [#5132](#5132) ([e603234](e603234))

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

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