socra not creating when attaching file to content
When creating a socra with files, backend responds with bad request.
General problem statement:
we want files to be tied to parent nodes, which would mean File should have FK to Socra.
However,
When creating a socra with files, backend responds with bad request.
General problem statement:
- we want files to be tied to parent nodes, which would mean File should have FK to Socra.
- However, Socra of type File already exists, and we can nest files under socras, so the issue is really centered around optimistic retrieval of the File objects.
- For this reason, to keep it as simple as possible and to allow for embedding of file summary identically to embedding tree node content, we'll just use Socra of type File and perform a subquery when fetching socras for now.
Stuff to do:
- [x] implement file overhaul**file**
**not**
**working**.
By Eduarda Ferreira