Gizra / euei-euwi-migrate

Migrate from euei.net and euwi.net to C4D
0 stars 0 forks source link

The Document type can have multiple files or none. #71

Closed solker closed 9 years ago

solker commented 9 years ago

Add support of many files separated by | to migration of the Documents.

solker commented 9 years ago

@Katya-cap4dev @amitaibu @ckorakas So C4D content system and template system support only one file per Document type. But some imported Documents have none or many files.

Therefore if file doesn't exists in special Document then template will looking like that:

without_file

If document has some files therefore template display only first (and safe in system only first) file:

only_one_file

Katya-cap4dev commented 9 years ago

@solker @amitaibu Apologies but I'm not sure I understand the issue... can you please clarify?

solker commented 9 years ago

@Katya-cap4dev @amitaibu @ckorakas Well, some exported Documents from EUEI and EUWI have few files for one entity. For example: Document with title Application form from ARETEP from EUEI have two files inside: SEDC_Performance_Indicator.doc and SEDC_Cover_Letter.doc.

Another example is Document with title Community Power – Using Mobile to Extend the Grid from EUEI that have not files. Have only body text.

Another example is when Document have only one file. (standard situation)

Result: As you can see node type Document exported from EUEI or EUWI can have zero, one or many files.

Now will look at C4D. If you will try add Document to group on C4D you can see that you have restriction only in one file! E.g. you can't select two files or tree for example. Also you can't not select file because File field is required.

document_one

But i can avoid this restriction because i work directly with database instead of user interface. And as you can see from preview message you get this:

@Katya-cap4dev @amitaibu @ckorakas So C4D content system and template system support only one file per Document type. But some Documents have none or many files.

Therefore if a file doesn't exists (zero files) in Document then template will look like that:

without_file

If document has few files therefore template display only first (and system safe only first) file:

only_one_file

And my question is what we will do with these two situations (many and none files)?

About second solution you need speak with @amitaibu .

amitaibu commented 9 years ago

@solker "fixing" c4d is out of scope - and we won't change this, so for now just migrate a single file

Katya-cap4dev commented 9 years ago

Hi @solker , thanks for the clarification. I think we need to discuss this with @ckorakas and @adevanssay , but my take is that it's not feasible to "fix" C4D now, so we have to go for the first option, with the following considerations:

  1. If a doc has 0 files attached, I'm not even sure there's a point in migrating this doc.. do we have an idea of how many such docs there are in the system?
  2. If a doc has >1 files attached, is it possible to zip them into a single zip and only attach that zip file to the doc? Can this be done automatically? If not, is it feasible to do it manually (same question - how many such docs are there?)?
solker commented 9 years ago

@Katya-cap4dev 1406 Documents in total. 129 Documents without files. 67 Documents have multiple files.

solker commented 9 years ago

@Katya-cap4dev Second solution with zip files is good for me.

amitaibu commented 9 years ago

@solker At this point we won't zip - lets continue with getting the first doc. If time will permit we will try to zip.

Katya-cap4dev commented 9 years ago

@amitaibu what is your approach for documents with multiple attachments? How are you migrating those? Can we please reopen this issue (easier to follow up).

amitaibu commented 9 years ago

@Katya-cap4dev We are migrating the first document.

Katya-cap4dev commented 9 years ago

@amitaibu You mean the first one listed? What about the rest - are we going to drop them? @adevanssay @ckorakas

amitaibu commented 9 years ago

closing in favor of #163

Katya-cap4dev commented 9 years ago

Taking the issue of document items with 0 attachments to https://github.com/Gizra/euei-euwi-migrate/issues/178