mirror of
https://github.com/ciur/papermerge.git
synced 2026-04-25 12:05:58 +03:00
[PR #219] [MERGED] Introduce document pipelines #567
Labels
No labels
2.1
3.0
3.0.1
3.0.2
3.0.3
3.0.3
3.1
3.2
3.2
3.3
3.5
3.x
Fixed. Waiting for feedback.
Fixed. Waiting for feedback.
UX
Version 2.1 - alpha
XSS
announcement
beta
blocker
bug
cannot reproduce
confirmed
confirmed
critical
demo
dependencies
deployment
detchnical debt
discussion
docker
documentation
donations
duplicate
enhancement
feature request
frontend
fundraising
good first issue
good issue
help wanted
high
implemented
important
improvement
incomplete
invalid
investigation
kubernetes
low
low impact
medium
medium
medium impact
migration from 2.0
migration from 2.1
missing-language
missing-ocr-language
no-activity
note
ocr
outofscope
packaging
performance
popular request
pull-request
pypi
question
raspberry pi
roadmap
search
security
setup
status
task
technical debt
updates
user xp
version 1.4.0 - demo
will be implemented
will not be implemented
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/papermerge#567
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ciur/papermerge/pull/219
Author: @francescocarzaniga
Created: 11/20/2020
Status: ✅ Merged
Merged: 11/22/2020
Merged by: @ciur
Base:
master← Head:document_pipeline📝 Commits (9)
7f8a56aAdded import pipeline1ae379eSpacing6568353Add python-magic to requirements54c96a8Merge branch 'master' into document_pipeline7f56f2dRefactored IMAP and LOCAL importer for pipeline901922bRemoved conflicting test333d660Stub for pluggable pipelines4117e48Improved pipeline apps compatibilityc08739eFixed func signature📊 Changes
7 files changed (+315 additions, -174 deletions)
View changed files
📝
config/settings/base.py(+13 -1)➕
papermerge/core/import_pipeline.py(+195 -0)📝
papermerge/core/importers/imap.py(+51 -69)📝
papermerge/core/importers/local.py(+26 -3)📝
papermerge/core/views/documents.py(+28 -39)➖
papermerge/test/test_imap.py(+0 -61)📝
requirements/base.txt(+2 -1)📄 Description
This PR introduces the concept of document pipeline. Document parts are the way to add plugin compatibility to the document model, while document pipelines have the objective to standardise and make plugins possible in the phase of document ingestion.
Currently the three different importers (web, imap, and local) have a different codebase, this PR tries to unify them. Moreover it is possible to extend the DefaultPipeline class to add functionality as an app, e.g. different file extensions.
Right now I only changed the web upload to work as a proof of concept. If @ciur thinks this is a good way to go forward I will replace the imap and local code as well.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.