Skip to content

feat: prompt editor#657

Open
kverushi wants to merge 2 commits intoRitechSolutions:origin/developmentfrom
kverushi:feat/prompt_editor
Open

feat: prompt editor#657
kverushi wants to merge 2 commits intoRitechSolutions:origin/developmentfrom
kverushi:feat/prompt_editor

Conversation

@kverushi
Copy link
Copy Markdown
Contributor

Description

Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 🏗️ Core implementation (refactoring, architectural changes)
  • 💡 Improvement (enhancement to existing functionality)
  • 📚 Documentation update
  • 🔧 Configuration change
  • 🧪 Test update
  • 💬 New release chat plugin
  • 🚀 New platform release

Changes Made

  • Change 1
  • Change 2

Testing

  • Unit tests
  • Integration tests
  • Manual testing
  • E2E tests (if applicable)

Ritech Contribution Checklist

  • My code follows GenAssist's style guidelines (see CONTRIBUTING.md)
  • I have performed a self-review of my code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix/feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published
  • Multi-tenant considerations addressed (if applicable)

Related Issues

Closes #

Screenshots (if applicable)


Note: This PR follows Ritech's contribution guidelines for GenAssist. For questions, refer to CONTRIBUTING.md or contact the Ritech team.

@kverushi kverushi requested a review from a team April 15, 2026 13:53
@github-actions github-actions bot added backend Means, the <backend> folder is changed in the work progress frontend Means, the <frontend> folder is changed in the work progress size/extra-large enhancement New feature or request labels Apr 15, 2026
@@ -0,0 +1,71 @@
"""add prompt_versions and prompt_configs tables

Revision ID: a1b2c3d4e5f6
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Revision ID here doesn't match with revision line 14

stmt = (
select(PromptVersionModel)
.where(
PromptVersionModel.workflow_id == str(workflow_id),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why do we use the cast as a string here? PromptVersionModel expects workflow_id to be UUID.

prompt_field: str,
) -> int:
stmt = select(func.max(PromptVersionModel.version_number)).where(
PromptVersionModel.workflow_id == str(workflow_id),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same here, is that required to be a string?

versions = await self.get_versions_for_context(workflow_id, node_id, prompt_field)
for v in versions:
v.is_active = False
await self.db.flush()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we need a bulk update here using db statement execution vs. flush?

Copy link
Copy Markdown
Contributor

@edritech edritech left a comment

Choose a reason for hiding this comment

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

Please check the comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Means, the <backend> folder is changed in the work progress enhancement New feature or request frontend Means, the <frontend> folder is changed in the work progress size/extra-large

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants