farmOS / farmOS.js

A JavaScript library for working with farmOS data structures and interacting with farmOS servers.
MIT License
15 stars 13 forks source link

File support #82

Closed jgaehring closed 1 year ago

jgaehring commented 1 year ago

I'll merge this together with #81 but thought I'd open this separately to highlight the changes. Still needs some documentation and I'm seeing how it works in Field Kit before nailing that down, but the tests are in place and I think the general structure should remain the same.

Resolves #47.

jgaehring commented 1 year ago

Gave up on trying to configure the file system for the testing environment. This was the closest I got it to working:

https://github.com/farmOS/farmOS.js/actions/runs/3944906072/jobs/6751452036

I tried adding this to the workflow but no dice:

      - name: Configure private file system
        run: docker-compose exec -u 0 -T www bash -c "echo $'$settings[\'file_private_path\'] = \'/opt/drupal/web/sites/default/private/files\';' >> web/sites/default/settings.php"

In the end, I just tacked on an extra commit to skip the test b/c I've had enough messing with it and it works fine locally so...