[17.0][FIX] dms: Change save_type when migrate to another storage#467
[17.0][FIX] dms: Change save_type when migrate to another storage#467
Conversation
8fa2542 to
94cfc2a
Compare
victoralmau
left a comment
There was a problem hiding this comment.
IMP, this change isn't appropriate. Currently, the save_type field is set to compute (not store); perhaps it should be store, but in any case, the value shouldn't be defined this way. The proper approach is to set the appropriate value in the compute (_compute_save_type) based on different scenarios and/or add a depends clause if necessary.
To clarify, I have never used this migration action.
When executes action_migrate they need change the |
|
Although I've never used the The` Line 247 in 5bcd966 In my opinion, the correct change should be:
What do you think, @etobella ? |
The reason for this change is precisely to support that kind of use case: allowing files currently stored in the filestore to be migrated to another storage backend, such as S3, by changing the storage configuration and moving the existing file contents accordingly. So the goal is not only database ↔ file migration, but making storage backend transitions possible without requiring a separate manual action on dms.file. |
When migrating files from one storage to another, their save type needs to change to match the storage's save_type. After that, these files will no longer require migration.
cc https://github.com/APSL 38655
@miquelalzanillas @lbarry-apsl @javierobcn @mpascuall @BernatObrador @ppyczko please review