{"action":"closed","issue":{"url":"https://api.github.com/repos/sh4nks/flaskbb/issues/382","repository_url":"https://api.github.com/repos/sh4nks/flaskbb","labels_url":"https://api.github.com/repos/sh4nks/flaskbb/issues/382/labels{/name}","comments_url":"https://api.github.com/repos/sh4nks/flaskbb/issues/382/comments","events_url":"https://api.github.com/repos/sh4nks/flaskbb/issues/382/events","html_url":"https://github.com/sh4nks/flaskbb/issues/382","id":283353969,"number":382,"title":"Hooks","user":{"login":"sh4nks","id":1510708,"avatar_url":"https://avatars3.githubusercontent.com/u/1510708?v=4","gravatar_id":"","url":"https://api.github.com/users/sh4nks","html_url":"https://github.com/sh4nks","followers_url":"https://api.github.com/users/sh4nks/followers","following_url":"https://api.github.com/users/sh4nks/following{/other_user}","gists_url":"https://api.github.com/users/sh4nks/gists{/gist_id}","starred_url":"https://api.github.com/users/sh4nks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sh4nks/subscriptions","organizations_url":"https://api.github.com/users/sh4nks/orgs","repos_url":"https://api.github.com/users/sh4nks/repos","events_url":"https://api.github.com/users/sh4nks/events{/privacy}","received_events_url":"https://api.github.com/users/sh4nks/received_events","type":"User","site_admin":false},"labels":[{"id":55923832,"url":"https://api.github.com/repos/sh4nks/flaskbb/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":783213541,"url":"https://api.github.com/repos/sh4nks/flaskbb/labels/hook","name":"hook","color":"006b75","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/sh4nks/flaskbb/milestones/2","html_url":"https://github.com/sh4nks/flaskbb/milestone/2","labels_url":"https://api.github.com/repos/sh4nks/flaskbb/milestones/2/labels","id":1042944,"number":2,"title":"2.0","description":"","creator":{"login":"sh4nks","id":1510708,"avatar_url":"https://avatars3.githubusercontent.com/u/1510708?v=4","gravatar_id":"","url":"https://api.github.com/users/sh4nks","html_url":"https://github.com/sh4nks","followers_url":"https://api.github.com/users/sh4nks/followers","following_url":"https://api.github.com/users/sh4nks/following{/other_user}","gists_url":"https://api.github.com/users/sh4nks/gists{/gist_id}","starred_url":"https://api.github.com/users/sh4nks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sh4nks/subscriptions","organizations_url":"https://api.github.com/users/sh4nks/orgs","repos_url":"https://api.github.com/users/sh4nks/repos","events_url":"https://api.github.com/users/sh4nks/events{/privacy}","received_events_url":"https://api.github.com/users/sh4nks/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":28,"state":"open","created_at":"2015-03-28T14:46:47Z","updated_at":"2018-04-07T18:03:39Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2017-12-19T20:07:41Z","updated_at":"2018-04-07T18:03:39Z","closed_at":"2018-04-07T18:03:39Z","author_association":"OWNER","body":"I want to get in some more hooks before releasing 2.0:\r\nIt's easier to keep track of them in an issue instead of the wiki.\r\n\r\n- [x] Register blueprints -- return a list of blueprints to register\r\n- [x] Register template hooks -- probably a bit related to ``register_admin_panels`` and ``register_user_dropdown``. Like [this](https://github.com/sh4nks/flaskbb/blob/master/flaskbb/templates/layout.html#L73) one.\r\n- [x] Register Jinja2 stuff -- filters, tests, etc. I'd imagine this'll probably be pretty low on the prioritization though\r\n- [x] Register command -- return a list to register into the CLI\r\n- [x] Register models -- return a list of models for things like migrations (not a hook)\r\n- [x] Topic create -- probably one for pre and one for post\r\n    - [x] before create\r\n    - [x] after create\r\n- [x] Post create -- probably one for pre and one for post\r\n    - [x] before create\r\n    - [x] after create\r\n- [x] Register shell context -- return a list to register into the default shell context\r\n- [x] Register tasks -- return a list of things to register as celery tasks\r\n- [x] Register WSGI middleware\r\n- [x] We'll probably want hooks for placing registered blueprints into the UI. e.g. `register_admin_panels`, `register_user_dropdown` etc\r\n- [x] ~Private Messages -- probably one for pre and one for post~ --> is a plugin now\r\n- [x] Should be able to add buttons to the post edit box (eg: add attachment 'paperclip' icon)\r\n- [x] Should be able to intercept/modify/independently validate the forms displayed (eg for polls etc, or to customise the registration screen) - some of this can be done with various AJAX tricks and intercepting the submit button, but it's a bit less than ideal)\r\n    - [x] new post/reply\r\n    - [x] new topic\r\n    - [x] registration (see #421, #424, #426, implemented in #436)\r\n- [x] Register auth handlers -- maybe separate hooks for actual handlers and post handlers to support the MFA flow that was proposed a while back (see #424, #426)\r\n- [x] Customising the markup renderer (see #379, #357, implemented in #435)\r\n- [x] Should be able to to modify the way that posts are displayed either by a before/after or some kind of hookwrapper (eg: inline attachments)\r\n\r\nAre there any other hooks that should go into 2.0?"}}
{"actor":{"display_login":"sh4nks"}}