Public-Health-Scotland / source-linkage-files

This repo is for the syntax used for the PHS Source Linkage File project
https://public-health-scotland.github.io/source-linkage-files/
Other
4 stars 2 forks source link

Issues with file permissions, need constant monitoring #920

Closed lizihao-anu closed 6 months ago

lizihao-anu commented 8 months ago

This is what I got with the permission issue. This is a file produced by RMarkdown and in a html format.

Zihao Li
01/03/2024, 14:49
✖ +0000 UTC 2024-03-01 14:44 21.19 errored target ch_cost_lookupError: 'costs_care_home-Mar_2024-01_Mar.html' exists in'/conf/hscdiip/SLF_Extracts/Tests' but is not writeable. OK. It is because ch_cost_lookup reports error, consequently no input for source_sc_care_home

The logic of our "patch" on the permission issue before works well. The logic is that changing to a file permission to "write and read for sourcedev users" after a file is created. The issue now is that we only apply this patch to write_file() which includes rds and parquet files. But for files in other formats, we have not applied this patch. Hence, that's why I got the permission issue with this html file format.

The conclusion is:

Here is a list of file formats in which files are written to the disk.

Keep adding comments to this issue if one finds more files with other formats that need to be written to the disk, and I will modify the list above.