Hi,
I don't know your requirements for CCE service CSV upload so I
won't be able to advise you for or against using/following the
pattern from the ref data seed tool.
For the reference data seed tool itself, it aims to make the
transformation rules (CSV to JSON representation) adjutsable via
what we call "mapping files". Those mappings define what columns
should be translated to which properties and how the
transformation from one to another should be handled. It can for
example rewrite the value directly into the JSON rep. but it can
also take an instance code from the CSV field, find an object of
such code and insert its representation to the JSON rep. More
about this and all available mappings in the tool's README:
https://github.com/OpenLMIS/openlmis-refdata-seed#input-files
The mapping files therefore allow you to easily and quickly modify
the transformation rules, without touching the code or even the
input CSV files. This is especially useful when the contract for
any endpoint changes (eg. field rename). Of course, you would need
to modify an input CSV file in case of new fields, if you wanted
to make use of them.
The only things that are hardcoded in the tool are the endpoints for the specific entities and the recognition of an unique instance for update capability (mostly based on the instance code, except for the entities that do not have one). Since the tool is standalone, it uses OpenLMIS endpoints to load the data, rather than going straight to the DB. If you need to have the upload capability directly from the OpenLMIS app, some effort will be required to do that.
If you need more details or info, we can have a call and I should
be able to provide you with any information you need or demo the
ref data seeding.
Best regards,
Sebastian.
SolDevelo Sp. z o.o. [LLC] / www.soldevelo.com
Al. Zwycięstwa 96/98, 81-451, Gdynia, Poland
Phone: +48 58 782 45 40 / Fax: +48 58 782 45 41
--
You received this message because you are subscribed to the Google Groups "OpenLMIS Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openlmis-dev...@googlegroups.com.
To post to this group, send email to openlm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openlmis-dev/5ece102a-5719-4b4e-9b4f-105f1ff42d62%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sebastian
Brudziński
Software Developer / Team Leader
sbrud...@soldevelo.com
To view this discussion on the web visit https://groups.google.com/d/msgid/openlmis-dev/b6d516af-7f2c-fc3f-69cf-1998601fd2e2%40soldevelo.com.
To unsubscribe from this group and stop receiving emails from it, send an email to openlmis-de...@googlegroups.com.
To post to this group, send email to openl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openlmis-dev/5ece102a-5719-4b4e-9b4f-105f1ff42d62%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Sebastian Brudziński
Software Developer / Team Leader
sbrud...@soldevelo.com
SolDevelo Sp. z o.o. [LLC] / www.soldevelo.com
Al. Zwycięstwa 96/98, 81-451, Gdynia, Poland
Phone: +48 58 782 45 40 / Fax: +48 58 782 45 41
--
You received this message because you are subscribed to the Google Groups "OpenLMIS Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openlmis-dev...@googlegroups.com.
To post to this group, send email to openl...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to openlmis-dev+unsubscribe@googlegroups.com.
To post to this group, send email to openlm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openlmis-dev/6bc1c224-0899-45d1-8e27-19942b22d8c5%40googlegroups.com.