{"action":"closed","issue":{"url":"https://api.github.com/repos/KWARC/MathHub/issues/127","labels_url":"https://api.github.com/repos/KWARC/MathHub/issues/127/labels{/name}","comments_url":"https://api.github.com/repos/KWARC/MathHub/issues/127/comments","events_url":"https://api.github.com/repos/KWARC/MathHub/issues/127/events","html_url":"https://github.com/KWARC/MathHub/issues/127","id":99942566,"number":127,"title":"Merge oaff_config from Drupal and meta/inf ","user":{"login":"m-iancu","id":4038003,"avatar_url":"https://avatars.githubusercontent.com/u/4038003?v=3","gravatar_id":"","url":"https://api.github.com/users/m-iancu","html_url":"https://github.com/m-iancu","followers_url":"https://api.github.com/users/m-iancu/followers","following_url":"https://api.github.com/users/m-iancu/following{/other_user}","gists_url":"https://api.github.com/users/m-iancu/gists{/gist_id}","starred_url":"https://api.github.com/users/m-iancu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-iancu/subscriptions","organizations_url":"https://api.github.com/users/m-iancu/orgs","repos_url":"https://api.github.com/users/m-iancu/repos","events_url":"https://api.github.com/users/m-iancu/events{/privacy}","received_events_url":"https://api.github.com/users/m-iancu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"aoripov","id":9016282,"avatar_url":"https://avatars.githubusercontent.com/u/9016282?v=3","gravatar_id":"","url":"https://api.github.com/users/aoripov","html_url":"https://github.com/aoripov","followers_url":"https://api.github.com/users/aoripov/followers","following_url":"https://api.github.com/users/aoripov/following{/other_user}","gists_url":"https://api.github.com/users/aoripov/gists{/gist_id}","starred_url":"https://api.github.com/users/aoripov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aoripov/subscriptions","organizations_url":"https://api.github.com/users/aoripov/orgs","repos_url":"https://api.github.com/users/aoripov/repos","events_url":"https://api.github.com/users/aoripov/events{/privacy}","received_events_url":"https://api.github.com/users/aoripov/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-08-10T00:07:06Z","updated_at":"2015-08-21T11:50:26Z","closed_at":"2015-08-21T11:50:26Z","body":"Right now the configuration for archives (which are enabled and what kind of nodes correspond to each archive/extension) are stored in the `OAFF Configuration` section in the Drupal configuration page. The form page is produced via a menu item (`hook_menu`) namely the `oaff_config_form` implemented in `oaff.module`.\r\n\r\nAt the same time, the archive meta/inf has a directory config where we have to folders one for MathHub and one for OAF. There we store additional configuration such as run scripts for MMT and lmh. \r\n\r\nIdeally these should be merged so that the common configuration (e.g. which archives are enabled) \r\nis only stored once.\r\n\r\nThe first step is to move integrate the drupal config with the filesystem so that it reads/writes the config from/to the meta/inf/config/<instance_name>/config.txt  (instead of just storing it inside Drupal DB). \r\nThen, a MathHub instance should have an additional configuration parameter (<name>) which is used to figure out the folder where to read/write config from/to. For example the name of the main instance would be `MathHub` pointing towards the Mathhub config folder while for OAF it will be `OAF`. \r\n\r\nMore instances (which we need), such as \"minimal/hello_world\" or 'docker'  could then be created without issue and committed to gitlab. This will make it it much easier in practice to produce new MathHub instances as well as maintain existing ones. \r\n\r\n"}}