Skip to content

Remove results table - #157

Merged
MatejFrnka merged 13 commits into
developfrom
refactor/154-remove-results-table
Sep 18, 2026
Merged

MatejFrnka merged 13 commits into
developfrom
refactor/154-remove-results-table

Conversation

@MatejFrnka

@MatejFrnka MatejFrnka commented Sep 11, 2026 •

Copy link
Copy Markdown
Collaborator
  • Removed results table, moved debug items such as token counts and pre polished dmp to generation table.
  • Added scripts for automatically creating new migrations
  • Removed downgrade function from db migrations
  • Updated stats to be saved as values, not as json

closes #154

@hranasit

Copy link
Copy Markdown
Collaborator

closes #62

Comment thread service/src/ai_document_plugin_service/ai/persistence/schema.py
Comment thread service/src/ai_document_plugin_service/service/pipeline_service.py
pipeline.add_component('assignment_saver_component', assignment_saver_component)
pipeline.add_component('dmp_generator_component', dmp_generator_component)
pipeline.add_component('dmp_polisher_component', dmp_polisher_component)
pipeline.add_component('saver_component', saver_component)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Where is it saved?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

in service/src/ai_document_plugin_service/service/pipeline_service.py

327: await self.database.update_generation(run_id, auth.tenant_uuid, **_succeeded_update(output))


def upgrade() -> None:
${upgrades if upgrades else "pass"}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why do we get rid of the downgrade?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

To me, it either adds development time trying to test that the migration can be downgraded, or we add downgrades without testing they work, which to me is worse than not having them at all.

I am in favor just removing them since I don't think they are needed and it would speed up the development time.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I discussed with Marek as well and noone is using this. We can safely remove it

@MatejFrnka
MatejFrnka merged commit 5a480cb into develop Sep 18, 2026
9 checks passed
@MatejFrnka
MatejFrnka deleted the refactor/154-remove-results-table branch September 18, 2026 14:07
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.

Table "generation" is duplicate of "result"

2 participants