(project_string_id, action_id)
| 25 | @limiter.limit("20 per day") |
| 26 | @swag_from('../../docs/actions/action_update.yml') |
| 27 | def api_action_update(project_string_id, action_id): |
| 28 | """ |
| 29 | |
| 30 | """ |
| 31 | |
| 32 | spec_list = [ |
| 33 | {'public_name': str}, |
| 34 | {'kind': str}, |
| 35 | {'icon': str}, |
| 36 | {'config_data': dict}, |
| 37 | {'description': str}, |
| 38 | {'template_id': int}, |
| 39 | {'workflow_id': int}, |
| 40 | {'ordinal': int}, |
| 41 | {'archived': bool}, |
| 42 | {'precondition': |
| 43 | { |
| 44 | 'default': None, |
| 45 | 'kind': dict |
| 46 | } |
| 47 | }, |
| 48 | {'trigger_data': |
| 49 | { |
| 50 | 'default': None, |
| 51 | 'kind': dict |
| 52 | } |
| 53 | }, |
| 54 | {'completion_condition_data': |
| 55 | { |
| 56 | 'default': None, |
| 57 | 'kind': dict |
| 58 | } |
| 59 | }, |
| 60 | { |
| 61 | 'output_interface': { |
| 62 | 'default': None, |
| 63 | 'kind': dict |
| 64 | } |
| 65 | }, |
| 66 | { |
| 67 | 'precondition': { |
| 68 | 'default': None, |
| 69 | 'kind': dict |
| 70 | } |
| 71 | }, |
| 72 | |
| 73 | ] |
| 74 | |
| 75 | log, input, untrusted_input = regular_input.master(request = request, |
| 76 | spec_list = spec_list) |
| 77 | if len(log["error"].keys()) >= 1: |
| 78 | return jsonify(log = log), 400 |
| 79 | |
| 80 | with sessionMaker.session_scope() as session: |
| 81 | |
| 82 | user = User.get(session = session) |
| 83 | member = get_member(session) |
| 84 | project = Project.get(session, project_string_id) |
nothing calls this directly
no test coverage detected