)]}'
{"tools/cookiecutter-mistral-custom/README.rst":[{"author":{"_account_id":8731,"name":"Renat Akhmerov","email":"renat.akhmerov@gmail.com","username":"rakhmerov"},"change_message_id":"cc43e420bda832725bf56a47f691b97ef323ae53","unresolved":false,"context_lines":[{"line_number":1,"context_line":"cookiecutter-mistral-custom"},{"line_number":2,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":3,"context_line":""},{"line_number":4,"context_line":"An minimal [cookiecutter](https://github.com/audreyr/cookiecutter) template for Mistral custom actions, expressions"},{"line_number":5,"context_line":""},{"line_number":6,"context_line":"Usage"},{"line_number":7,"context_line":"-----"}],"source_content_type":"text/x-rst","patch_set":5,"id":"5faad753_295cea7c","line":4,"range":{"start_line":4,"start_character":0,"end_line":4,"end_character":2},"updated":"2019-09-11 07:31:35.000000000","message":"A","commit_id":"166489b289b1cc97eaaca9c1a9a6bbda1754ac0a"},{"author":{"_account_id":8731,"name":"Renat Akhmerov","email":"renat.akhmerov@gmail.com","username":"rakhmerov"},"change_message_id":"cc43e420bda832725bf56a47f691b97ef323ae53","unresolved":false,"context_lines":[{"line_number":6,"context_line":"Usage"},{"line_number":7,"context_line":"-----"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"| pip install cookiecutter"},{"line_number":10,"context_line":"| cookiecutter cookiecutter-mistral-custom"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"| Install the python project when finish editing (pip install [folder])"},{"line_number":13,"context_line":"| Run the script to update the actions in the database"}],"source_content_type":"text/x-rst","patch_set":5,"id":"5faad753_a9921af5","line":10,"range":{"start_line":9,"start_character":2,"end_line":10,"end_character":42},"updated":"2019-09-11 07:31:35.000000000","message":"Would be cool to have just a shell script under \"tools\" that 1) installs cookiecutter, if needed 2) calls it. That way we would hide the underlying technology and make it easier to use (users won\u0027t have to remember the command, they can just run a script).","commit_id":"166489b289b1cc97eaaca9c1a9a6bbda1754ac0a"}],"tools/cookiecutter-mistral-custom/cookiecutter.json":[{"author":{"_account_id":8731,"name":"Renat Akhmerov","email":"renat.akhmerov@gmail.com","username":"rakhmerov"},"change_message_id":"cc43e420bda832725bf56a47f691b97ef323ae53","unresolved":false,"context_lines":[{"line_number":3,"context_line":"    \"email\": \"mistral@mistral.com\","},{"line_number":4,"context_line":""},{"line_number":5,"context_line":"    \"project_name\": \"example-action\","},{"line_number":6,"context_line":"    \"project_slug\": \"{{ cookiecutter.project_name|lower|replace(\u0027 \u0027, \u0027-\u0027) }}\","},{"line_number":7,"context_line":"    \"pkg_name\": \"{{ cookiecutter.project_slug|replace(\u0027-\u0027, \u0027\u0027) }}\","},{"line_number":8,"context_line":"    \"summery\": \"A mistral custome action example\","},{"line_number":9,"context_line":"    \"version\": \"0.1.0\","}],"source_content_type":"application/json","patch_set":5,"id":"5faad753_29b86a74","line":6,"range":{"start_line":6,"start_character":5,"end_line":6,"end_character":17},"updated":"2019-09-11 07:31:35.000000000","message":"Do we need this parameter? I\u0027m not sure I understand it.","commit_id":"166489b289b1cc97eaaca9c1a9a6bbda1754ac0a"},{"author":{"_account_id":8731,"name":"Renat Akhmerov","email":"renat.akhmerov@gmail.com","username":"rakhmerov"},"change_message_id":"cc43e420bda832725bf56a47f691b97ef323ae53","unresolved":false,"context_lines":[{"line_number":5,"context_line":"    \"project_name\": \"example-action\","},{"line_number":6,"context_line":"    \"project_slug\": \"{{ cookiecutter.project_name|lower|replace(\u0027 \u0027, \u0027-\u0027) }}\","},{"line_number":7,"context_line":"    \"pkg_name\": \"{{ cookiecutter.project_slug|replace(\u0027-\u0027, \u0027\u0027) }}\","},{"line_number":8,"context_line":"    \"summery\": \"A mistral custome action example\","},{"line_number":9,"context_line":"    \"version\": \"0.1.0\","},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"    \"action\": \"example.runner\","}],"source_content_type":"application/json","patch_set":5,"id":"5faad753_c9a67654","line":8,"range":{"start_line":8,"start_character":26,"end_line":8,"end_character":33},"updated":"2019-09-11 07:31:35.000000000","message":"-\u003e custom","commit_id":"166489b289b1cc97eaaca9c1a9a6bbda1754ac0a"},{"author":{"_account_id":8731,"name":"Renat Akhmerov","email":"renat.akhmerov@gmail.com","username":"rakhmerov"},"change_message_id":"cc43e420bda832725bf56a47f691b97ef323ae53","unresolved":false,"context_lines":[{"line_number":5,"context_line":"    \"project_name\": \"example-action\","},{"line_number":6,"context_line":"    \"project_slug\": \"{{ cookiecutter.project_name|lower|replace(\u0027 \u0027, \u0027-\u0027) }}\","},{"line_number":7,"context_line":"    \"pkg_name\": \"{{ cookiecutter.project_slug|replace(\u0027-\u0027, \u0027\u0027) }}\","},{"line_number":8,"context_line":"    \"summery\": \"A mistral custome action example\","},{"line_number":9,"context_line":"    \"version\": \"0.1.0\","},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"    \"action\": \"example.runner\","}],"source_content_type":"application/json","patch_set":5,"id":"5faad753_e9b1f290","line":8,"range":{"start_line":8,"start_character":5,"end_line":8,"end_character":12},"updated":"2019-09-11 07:31:35.000000000","message":"-\u003e summary","commit_id":"166489b289b1cc97eaaca9c1a9a6bbda1754ac0a"},{"author":{"_account_id":8731,"name":"Renat Akhmerov","email":"renat.akhmerov@gmail.com","username":"rakhmerov"},"change_message_id":"cc43e420bda832725bf56a47f691b97ef323ae53","unresolved":false,"context_lines":[{"line_number":8,"context_line":"    \"summery\": \"A mistral custome action example\","},{"line_number":9,"context_line":"    \"version\": \"0.1.0\","},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"    \"action\": \"example.runner\","},{"line_number":12,"context_line":"    \"action_class\": \"{{cookiecutter.action.split(\u0027.\u0027)|last|capitalize}}Action\","},{"line_number":13,"context_line":"    \"expression_function\": \"random_uuid\","},{"line_number":14,"context_line":"    \"use_scm_version\": \"False\","},{"line_number":15,"context_line":"    \"mistral_config\": \"/etc/mistral/mistral.conf\""},{"line_number":16,"context_line":"}"}],"source_content_type":"application/json","patch_set":5,"id":"5faad753_a9077a1c","line":13,"range":{"start_line":11,"start_character":4,"end_line":13,"end_character":41},"updated":"2019-09-11 07:31:35.000000000","message":"I would make it simpler it skip these parameters completely.  Maybe let\u0027s just generate hardcoded names like TestAction and TestFunction? IMO, it\u0027d be easy enough to change class names in an editor later. While creating a project though it may be something that\u0027s not clear to a user.\n\nSo, in other words, I\u0027d suggest we have a minimal number of parameters when we\u0027re generating a project skeleton.","commit_id":"166489b289b1cc97eaaca9c1a9a6bbda1754ac0a"},{"author":{"_account_id":8731,"name":"Renat Akhmerov","email":"renat.akhmerov@gmail.com","username":"rakhmerov"},"change_message_id":"cc43e420bda832725bf56a47f691b97ef323ae53","unresolved":false,"context_lines":[{"line_number":11,"context_line":"    \"action\": \"example.runner\","},{"line_number":12,"context_line":"    \"action_class\": \"{{cookiecutter.action.split(\u0027.\u0027)|last|capitalize}}Action\","},{"line_number":13,"context_line":"    \"expression_function\": \"random_uuid\","},{"line_number":14,"context_line":"    \"use_scm_version\": \"False\","},{"line_number":15,"context_line":"    \"mistral_config\": \"/etc/mistral/mistral.conf\""},{"line_number":16,"context_line":"}"}],"source_content_type":"application/json","patch_set":5,"id":"5faad753_e976d2d8","line":14,"range":{"start_line":14,"start_character":5,"end_line":14,"end_character":20},"updated":"2019-09-11 07:31:35.000000000","message":"May be this is a too fancy parameter for someone who just want to create a bunch of custom actions. What is it?","commit_id":"166489b289b1cc97eaaca9c1a9a6bbda1754ac0a"},{"author":{"_account_id":8731,"name":"Renat Akhmerov","email":"renat.akhmerov@gmail.com","username":"rakhmerov"},"change_message_id":"cc43e420bda832725bf56a47f691b97ef323ae53","unresolved":false,"context_lines":[{"line_number":12,"context_line":"    \"action_class\": \"{{cookiecutter.action.split(\u0027.\u0027)|last|capitalize}}Action\","},{"line_number":13,"context_line":"    \"expression_function\": \"random_uuid\","},{"line_number":14,"context_line":"    \"use_scm_version\": \"False\","},{"line_number":15,"context_line":"    \"mistral_config\": \"/etc/mistral/mistral.conf\""},{"line_number":16,"context_line":"}"}],"source_content_type":"application/json","patch_set":5,"id":"5faad753_314e946f","line":15,"range":{"start_line":15,"start_character":5,"end_line":15,"end_character":19},"updated":"2019-09-11 07:31:35.000000000","message":"I think we shouldn\u0027t ask to provide a mistral config when creating a skeleton because 1) We may want to plugin these actions to different Mistral instances 2) IMO, it\u0027s better to make it a parameter of update_actions.sh script because it\u0027s the only place where the config is needed. 3) Less initial parameters.","commit_id":"166489b289b1cc97eaaca9c1a9a6bbda1754ac0a"}]}
