EyeSeeTea / dataset-configuration-blessed

Enhanced dataset manager Dhis2 app (blessed repository)
GNU General Public License v3.0
0 stars 1 forks source link

Confusion over editing DataSet #132

Closed ardhimanshu closed 6 years ago

ardhimanshu commented 6 years ago

DataSet created after linking to a project. When one wants to edit and during that process. As a first step, if I got to project selection and decide not to choose any specific project (thinking that the old project it was linked to will continue to hold) and proceed with the next steps. At the last step, I do not see "project" in the final summary. Image attached in comment for reference.

ardhimanshu commented 6 years ago

Image for reference. Issue_132_in_Waffle_for_DC_App.png

tokland commented 6 years ago

Your expectation is correct, when editing a dataset, the associated project is kept.

The problem is: for this to work, the full name of the dataset must be part of the name of the project. That's not arbitrary, DHIS2 datasets cannot directly reference a project (categoryOption). Therefore, we must rely on naming conventions. Let's see the details:

Project name: IRFM1801 (NMFA (HUM)) Current dataset name: IRFM1801_dataset_(NMFA (HUM))

This _dataset_ in the middle of the name breaks the convention. Correct dataset name should fully include the project name, for example: IRFM1801 (NMFA (HUM)) Dataset. Once you rename it (either using the app or Maintenance), the association should be shown on the next edit. Can you confirm?

ardhimanshu commented 6 years ago

So you mean it should work when the term "DataSet" is put at the end of the DataSet name: For example, IRFM1801 (NMFA (HUM))_DataSet.

tokland commented 6 years ago

For example, IRFM1801 (NMFA (HUM))_DataSet.

Yes, that should work, as it fully includes IRFM1801 (NMFA (HUM)).