-
-
Notifications
You must be signed in to change notification settings - Fork 207
[16.0][ADD] dms_import: Migration data from documents EE to dms CE #409
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
base: 16.0
Are you sure you want to change the base?
Conversation
could you write desctiption on how to use it or configure if necessary, so that we could review easily? |
hi @kobros-tech you will receive an invitation to join the slack workspace where you'll find more information, see you there ;-) |
@nilshamerlinck |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implement Review Only, would recommend adding test cases
what can happen if there is a file that should be for a specific partner, shall we get the same file accessible by the same partner Only after migration? |
As far as I recall, I’d appreciate your thoughts if you have any ideas on how to map these fields between the two models. |
all right I will ping other mind to tell about real life scenario and then we can apply |
Sorry for my omission, I'd like to clarify some points:
|
yes, it is much better. once you are done you can ask me to review, good luck! |
d91427c
to
1650324
Compare
1ebe9f8
to
de8ccd8
Compare
[IMP] dms_import: move pre_init_hook to post_init_hook [REF][FIX] dms_import: Use new syntax, avoid sql injection and fix group creation bug dms_import: also migrate achived data
de8ccd8
to
d98f346
Compare
…default group permissions
9844447
to
e06570c
Compare
nice to have |
90fe58e
to
37ee298
Compare
…heavy compute fields
37ee298
to
951cea0
Compare
c1abd37
to
36420ab
Compare
Purpose
This migration script allows moving data from Enterprise
documents*
(EE) to the OCAdms*
(CE) modules.The goal is to preserve:
Approach
The migration is implemented as a
post-init hook
and works directly at the SQL level to avoid dependencies on EE models. This ensures:The migration flow has three steps:
1. Tags migration
documents.facet
→dms.category
documents.tag
→dms.tag
2. Folders migration
documents.folder
→dms.directory
dms.storage
.documents_folder_res_groups_rel
→dms.access.group
(Write groups)documents_folder_read_groups_rel
→dms.access.group
(Read groups)3. Files migration
documents.document
(binary only) →dms.file
ir.attachment.res_model/res_id
to the newdms.file
.Data Mapping Details
documents.facet
dms.category
documents.tag
dms.tag
documents.folder
dms.directory
documents_folder_res_groups_rel
dms.access.group
documents_folder_read_groups_rel
dms.access.group
documents.folder.facet_ids.tag_ids
dms.directory.tag_ids
documents.document (binary)
dms.file
documents_document_tag_rel
dms_file_tag_rel
ir.attachment
(linked to document)ir.attachment
(relinked)dms.file
Extra Notes
randint(1, 11)
when no valid sequence color is available.dms.storage
) is created if none exists.Example Workflow
dms.category
anddms.tag
.Validation
documents_*
) exist and contain data.Migration should complete successfully and log a summary: