Skip to content

Minor doc set fix #4480

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

Merged
merged 4 commits into from
Apr 8, 2025
Merged

Minor doc set fix #4480

merged 4 commits into from
Apr 8, 2025

Conversation

pablonyx
Copy link
Contributor

@pablonyx pablonyx commented Apr 8, 2025

Description

Fixes https://linear.app/danswer/issue/DAN-1780/document-sets-issue

How Has This Been Tested?

[Describe the tests you ran to verify your changes]

Backporting (check the box to trigger backport action)

Note: You have to check that the action passes, otherwise resolve the conflicts manually and tag the patches.

  • This PR should be backported (make sure to check that the backport attempt succeeds)
  • [Optional] Override Linear Check

Copy link

vercel bot commented Apr 8, 2025

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

Name Status Preview Comments Updated (UTC)
internal-search ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 8, 2025 6:46pm

@pablonyx pablonyx marked this pull request as ready for review April 8, 2025 18:35
@pablonyx pablonyx requested a review from a team as a code owner April 8, 2025 18:35
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

This PR introduces a new "document_sets" field to both PersonaSnapshot and FullPersonaSnapshot, clarifies association handling in upsert_persona, and refines the knowledge_source initialization in AssistantEditor.

  • Updated /backend/onyx/server/features/persona/models.py to build document_sets via DocumentSet.from_model with a default empty list.
  • Added a clarifying comment in /backend/onyx/db/persona.py about preserving existing document_set associations.
  • Modified /web/src/app/admin/assistants/AssistantEditor.tsx to set knowledge_source based on existing persona data.

3 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

@Weves Weves enabled auto-merge April 8, 2025 18:43
@Weves Weves added this pull request to the merge queue Apr 8, 2025
Merged via the queue into main with commit 5792261 Apr 8, 2025
11 checks passed
tim-dim pushed a commit to grantgpteu/grantgpt-dev that referenced this pull request Apr 8, 2025
* update

* update

* update

* k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants