Skip to content

Conversation

evan-onyx
Copy link
Contributor

Description

Addresses https://linear.app/danswer/issue/DAN-1910/fix-jira-migration-with-tests
Test for #4614
Turns out the downgrade had a small bug

TODO: skip the integration test once confirmed to work on the cloud

How Has This Been Tested?

Ran the integration test locally

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

@evan-onyx evan-onyx requested a review from a team as a code owner April 25, 2025 20:30
Copy link

vercel bot commented Apr 25, 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 25, 2025 8:33pm

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 fixes a bug in the Jira connector migration's downgrade path and adds comprehensive integration tests to verify both upgrade and downgrade functionality.

  • Fixed serialization issue in backend/alembic/versions/da42808081e3_migrate_jira_connectors_to_new_format.py by adding json.dumps() for old_config
  • Added thorough integration test in backend/tests/integration/tests/migrations/test_migrations.py covering full, minimal, and partial Jira connector configurations
  • Test verifies correct handling of URL splitting into base_url/project_key and preservation of optional fields like comment_email_blacklist
  • Includes verification of proper reconstruction during downgrade path

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

@Weves Weves enabled auto-merge April 25, 2025 20:39
@Weves Weves added this pull request to the merge queue Apr 25, 2025
Merged via the queue into main with commit 5ca7a7d Apr 25, 2025
11 checks passed
@Weves Weves deleted the test-jira-migration-fields branch April 25, 2025 23:08
aronszanto pushed a commit to aronszanto/onyx that referenced this pull request Apr 26, 2025
AnkitTukatek pushed a commit to TukaTek/onyx that referenced this pull request Sep 23, 2025
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