Task #3147 (closed)
Opened 9 years ago
Closed 6 years ago
Possibly omit original_metadata.txt if it's empty
| Reported by: | jamoore | Owned by: | cblackburn |
|---|---|---|---|
| Priority: | minor | Milestone: | 5.0.0-rc1 |
| Component: | Import | Version: | 4.4.9 |
| Keywords: | n.a. | Cc: | melissa-x, cxallan, cblackburn |
| Resources: | n.a. | Referenced By: | n.a. |
| References: | n.a. | Remaining Time: | n.a. |
| Sprint: | n.a. |
Description
In the case of png imports, the original_metadata.txt consists of this:
[GlobalMetadata] [SeriesMetadata]
which could almost certainly be omitted.
Change History (10)
comment:1 Changed 8 years ago by jmoore
- Cc cblackburn added
- Milestone changed from Unscheduled to OMERO-Beta4.4
comment:3 Changed 7 years ago by cblackburn
- Milestone changed from OMERO-Beta4.4 to Future
comment:4 Changed 6 years ago by jamoore
- Milestone changed from Future to 5.0.0-beta2
- Version set to 4.4.9
Moving this into beta2. Likely we should just close it, since we are no longer generating these files. The only thing that occurs to me is that we could look for original_metadata.txt files which equal exactly this value and delete them. Thoughts?
comment:5 Changed 6 years ago by jburel
Agree, we should delete them,
we now also handle file of size=0
comment:6 Changed 6 years ago by cblackburn
Delete the zero-sized files as part of the import process? Or delete them as a periodic clean-up?
comment:7 Changed 6 years ago by jburel
I will delete during the import process. No real need to create and keep a zero-size file
comment:8 Changed 6 years ago by cblackburn
Is this something that is in Insight's control or does it also need to be done by other import clients? Or does it need to be done server-side. If it is only an Insight issue do you want to take this ticket?
comment:9 Changed 6 years ago by jburel
In my view, this is not an insight specific issue but an import sequence issue.
We could argue that the deletion of the file could be part of a "clean-up" phase if an error occurred e.g. the image object is created even if failure
That could be done later.
comment:10 Changed 6 years ago by cblackburn
- Resolution set to invalid
- Status changed from new to closed
original_metadata.txt files are no longer created during import. Any zero-sized or minimal files that exist because of an upgrade from 4.4 to 5.0 should be handled by an improved cleanse.py script. See https://trac.openmicroscopy.org.uk/ome/ticket/11791
Is this something that should be evaluated along with the fs work?