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

All the sessions are not displayed in the history #289

Closed
ajaylamba-provar opened this issue Dec 27, 2023 · 0 comments
Closed

All the sessions are not displayed in the history #289

ajaylamba-provar opened this issue Dec 27, 2023 · 0 comments

Comments

@ajaylamba-provar
Copy link
Contributor

I am facing an issue where all the chat sessions of a user are not loaded in the history session. When I am starting a new session, the data is being stored in the DynamoDB table SessionsTable. I can explore the items from DynamoDB console manually.
But all the items are not loaded on the UI. The UI returns only 41 sessions for that user while the dynamo db table has 179 records for that user.

The following code in sessions.tsx class returns only 41 records consistently for that user. While for other users, the issue is not reproducible.

  const getSessions = useCallback(async () => {
    if (!appContext) return;

    const apiClient = new ApiClient(appContext);
    const result = await apiClient.sessions.getSessions();
    if (ResultValue.ok(result)) {
      setSessions(result.data);
    }
  }, [appContext]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants