When I compose an archive file whose m_def is contained in another file, the ReferenceEditQuantity (Task in this case) is showing the main filename, as showed in the attached image.
Instead, the filename to be displayed is the following:
process.data.archive.yaml
whose content is this (note the filename in m_def is the same one called into movpe_sto.data.archive.yaml):
But isn't this the behaviour you would expect? I assume that Process_movpesto inherits from Task. The file movpe_sto.data.archive.yaml seems to describe a task and shows in the references as expected? I don't see the "the filename of the schema" in the ELN? The screenshot shows a files called "...data.archive.yaml" and this file also seems to contain data?
Anyhow, the ReferenceEditQuantity was recently redone anyways: #1020 (closed). @mnakh maybe you can comment on this issue?
Yes, you're right, we see there movpe_sto.data.archive.yaml. The point is that I actually put in that ReferenceEditQuantity the "process.data.archive.yaml". So I think one wants to visualize the actual data file name referenced there.
The main data file (movpe_sto.data.archive.yaml) looks like this:
I guess setInputValue(archive.metadata.mainfile) is wrong. Isn.t it? What should we show if the target has errors? I guess just an empty input field does not reveal enough info for the user.
The other issue is that why its status is Success when it has 11 errors.
The value of the quantity is a reference (URL). Because this one is rather technical, we wanted to show something else. Ideally whatever we show communicates to the user what the target is.
The mainfile (+ path if availble) could be ok for this purpose. I am more worried that an API call just for this is kinda expensive. I don't think it necessarily needs to indicate an error if the target somehow got compromised. Its more like a nice to have. However, once you try to navigate the error needs to be handled somehow.
I cannot say why the target processing failed from the little information here.
Concerning the process failure pointed out by Mohammad, I figured out the reason, it is due to an incorrect definition of the Argon_flow quantity in the yaml:
argon_flow: type: np.float64 unit: centimeter ** 3 / minute description: Argon process gas flow in to the reaction chamber m_annotations: tabular: name: Processdata/Argon flow unit: centimeter ** 3 / minute eln: component: NumberEditQuantity defaultDisplayUnit: centimeter ** 3 / minute
As you see there is a unit definition inside the tabular key.
Hope this can help in fixing the Success status in presence of these category of errors