AI-multimodal / aimmdb

BSD 3-Clause "New" or "Revised" License
0 stars 10 forks source link

Upgrade aimmdb to new tiled #64

Closed dylanmcreynolds closed 10 months ago

dylanmcreynolds commented 10 months ago

AIMMDB is based on a pretty old version of tiled, where everything was based on and stored in Mongo. Tiled has progressed to use sqllite or postgres. We need to upgrade the aimmdb to a more modern version of tiled, which should be a single effort that also lets us remove much of the custom code that was built along the way into the aimmdb.

Some functionality will be lost, at the expense of much better maintainabilty:

I think the work looks something like:

example config.yaml addition:

trees:
  - path: /
    tree: catalog
    args:
      uri: /data/aimm/catalog.db # change to postgres
      writable_storage: /data/aimm/data
    access_control:
      access_policy: tiled.access_policies:SimpleAccessPolicy
      args:
        provider: orcid
        access_lists:
          <an orcid> : tiled.access_policies:ALL_ACCESS 
          <another orcid> : tiled.access_policies:ALL_ACCESS