{"action":"closed","issue":{"url":"https://api.github.com/repos/jtackaberry/flexrouter/issues/4","labels_url":"https://api.github.com/repos/jtackaberry/flexrouter/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/jtackaberry/flexrouter/issues/4/comments","events_url":"https://api.github.com/repos/jtackaberry/flexrouter/issues/4/events","html_url":"https://github.com/jtackaberry/flexrouter/issues/4","id":124388078,"number":4,"title":"Save/Load rule sets","user":{"login":"stevefal","id":2922912,"avatar_url":"https://avatars.githubusercontent.com/u/2922912?v=3","gravatar_id":"","url":"https://api.github.com/users/stevefal","html_url":"https://github.com/stevefal","followers_url":"https://api.github.com/users/stevefal/followers","following_url":"https://api.github.com/users/stevefal/following{/other_user}","gists_url":"https://api.github.com/users/stevefal/gists{/gist_id}","starred_url":"https://api.github.com/users/stevefal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevefal/subscriptions","organizations_url":"https://api.github.com/users/stevefal/orgs","repos_url":"https://api.github.com/users/stevefal/repos","events_url":"https://api.github.com/users/stevefal/events{/privacy}","received_events_url":"https://api.github.com/users/stevefal/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-30T19:08:40Z","updated_at":"2015-12-30T20:38:13Z","closed_at":"2015-12-30T20:38:13Z","body":"It would be useful to be able to save and load rule sets. Complex rule sets take some time to create, and duplicating them manually is error-prone.\r\n\r\nOne can anticipate that with new versions of FR being released, users will need to recreate their rules after applying an updated script. Supporting Save/Load will ease adoption of updates since users will be able to easily try them using preexisting rule sets that they've saved.\r\n\r\nHowever this feature has its own complication in that some updates may be incompatible with previous rule file formats or schemas. Therefore, a rule-file versioning system would help. Maybe separately from FR script version numbers, the rule file format could have its own version number. That way a script can check a file's format version before attempting to load it, and either accept, filter or reject the load request according to whatever compatibility constraints apply.\r\n\r\nIdeally the rule set file format never changes so much that it breaks in future versions of the script. But this is hard to guarantee, so a simple system to trigger an appropriate behavior will be helpful down the road."}}