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

[Bug] NextAuth(Casdoor)/Docker部署:账户数据统计页话题内容量栏目数据与实际登录账户不匹配 #5285

Closed
Sun-drenched opened this issue Jan 3, 2025 · 4 comments · Fixed by #5283
Labels
🐛 Bug Something isn't working | 缺陷

Comments

@Sun-drenched
Copy link

📦 部署环境

Docker

📌 软件版本

v1.43.0

💻 系统环境

Windows

🌐 浏览器

Chrome

🐛 问题描述

如题,测试环境Casdoor中共有两个账户,我的账户数据统计页话题内容量栏目中显示的话题是另一个账户名下的。

Ps.助手使用率栏目似乎也有相似的问题,不过因为只显示了随便聊聊和两个“自定义助手”,也无法完全确定。(我可以确定没有自定义过助手,都是用的市场里的)
Ps.还有个小问题,话题内容量栏目展开后显示的是“助手名称”、“话题数”
image
image

📷 复现步骤

No response

🚦 期望结果

No response

📝 补充信息

No response

@Sun-drenched Sun-drenched added the 🐛 Bug Something isn't working | 缺陷 label Jan 3, 2025
@github-project-automation github-project-automation bot moved this to Roadmap - Chat 1.x in Lobe Chat Routine Jan 3, 2025
@lobehubbot
Copy link
Member

👀 @Sun-drenched

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


📦 Deployment environment

Docker

📌 Software version

v1.43.0

💻 System environment

Windows

🌐 Browser

Chrome

🐛 Problem description

As the title states, there are two accounts in the test environment Casdoor. The topics displayed in the topic content column of my account data statistics page are under the name of another account.

Ps. The assistant usage column seems to have a similar problem, but since only Casual Chat and two "custom assistants" are displayed, it cannot be completely determined. (I can confirm that I have not customized any assistants, they are all used in the market)
Ps. There is another small problem. After the topic content column is expanded, it displays "Assistant Name" and "Number of Topics"
image
image

📷 Steps to reproduce

No response

🚦 Expected results

No response

📝 Supplementary information

No response

Copy link

dosubot bot commented Jan 3, 2025

The issue you're experiencing with the "话题内容量" (Topic Content Volume) and "助手使用率" (Assistant Usage Rate) sections displaying data from another account could be related to how the system associates user accounts with their respective data. Here are some insights and potential areas to investigate:

  1. Data Filtering by User Account: The MessageModel class is responsible for filtering statistics data by user account using the userId. Ensure that the methods in this class are correctly filtering data based on the logged-in user's userId [1].

  2. Data Synchronization: The application uses Yjs and WebRTC for data synchronization between user accounts. Check if there are any synchronization issues that might cause data from one account to appear in another [2].

  3. Recent Changes: There have been recent changes in the codebase related to user statistics and profile refactoring. It's possible that these changes introduced a bug affecting how data is linked to user accounts [3][4].

  4. Database Queries: Verify that the database queries used to fetch data for the statistics page are correctly filtering by user account. This might involve checking the logic in the useClientDataSWR hook and related services [5].

Investigating these areas might help identify the root cause of the data mismatch issue. If the problem persists, reviewing the recent changes in the codebase or checking for any synchronization issues could provide further insights.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@github-project-automation github-project-automation bot moved this from Roadmap - Chat 1.x to Done in Lobe Chat Routine Jan 3, 2025
@lobehubbot
Copy link
Member

@Sun-drenched

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working | 缺陷
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants