Skip to content

Include file name as importable field #1590

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
combinatorist opened this issue May 1, 2025 · 1 comment
Open

Include file name as importable field #1590

combinatorist opened this issue May 1, 2025 · 1 comment

Comments

@combinatorist
Copy link
Contributor

Describe the problem to be solved

In some cases, it could be useful to trace back to specific csv files that supplied rows of data. For example, if the files are backed up in dropbox and have audit significance.

Today, the best workaround is to copy and paste a file name onto all the new rows right after importing or perhaps
to use a new record trigger that look it up in another table based on date (or something like that).

Describe the solution you would like

I would like grist to provide 1 additional field of the file name being loaded in which can be mapped to a column of the table.

Obviously, the default name would have to be carefully chosen (something like grist_import_file_name) to avoid name conflicts as best as possible, but at least I know grist has access to the file name since it because the default table name for new tables.

It might also be that this minor convenience isn't worth it on it's own, but becomes more worthwhile if there's other metadata that be persisted with imports on the row level.

@paulfitz
Copy link
Member

paulfitz commented May 1, 2025

Oh, that's an interesting idea!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants