getodk / getodk/central

Return `dataset` name in form attachments API in Backend

Open
#927 2 comments 1 reaction 0 assignees View on GitHub
backend
Dominant language
JavaScript
Stars
226
Forks
235
Avg merge
2d 22h
Merged PRs (30d)
19

Description

There are a couple places in Frontend (and Backend) where a dataset is deduced from an attachment by removing a `.csv` extension from the attachment. The code is pretty straightforward but there could be some capitalization inconsistencies. This has been [centralized in Backend](https://github.com/getodk/central-backend/blob/master/lib/util/util.js#L83) and we could let Backend return the actual Dataset name for an attachment when it knows it is a dataset.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.