Conversation
|
В этой ветке присутствуют изменения из feature/tasks, т.к. последняя не влита, на момент формирования ПР, а изменения из нее необходимы для дальнейшей разработки. |
|
Uffizzi Preview |
greybutton
left a comment
There was a problem hiding this comment.
реквест содержит код от другой задачи
5d90262 to
8bbd271
Compare
greybutton
left a comment
There was a problem hiding this comment.
презентеры нужно использовать во всем проекте
| ); | ||
| } | ||
|
|
||
| // Task.propTypes = TaskPresenter.shape(); |
There was a problem hiding this comment.
если код не нужен, то он удаляется, а не комментируется
| // Task.propTypes = TaskPresenter.shape(); | ||
| Task.propTypes = { | ||
| task: PropTypes.shape().isRequired, | ||
| onClick: PropTypes.func.isRequired, |
There was a problem hiding this comment.
Из-за isRequired была ошибка о том, что функция - undefined. Сейчас вернул без нее, ошибка ушла.
|
|
||
| def task_params | ||
| params.require(:task).permit(:name, :description, :author_id, :assignee_id, :state_event, :expired_at) | ||
| params.require(:task).permit(:id, :name, :description, :author_id, :assignee_id, :state_event, :expired_at) |
There was a problem hiding this comment.
Из-за ошибки при обновлении таски:
web_1 | Started PUT "/api/v1/tasks/60" for 172.30.0.1 at 2022-12-23 07:28:56 +0000
web_1 | Cannot render console from 172.30.0.1! Allowed networks: 127.0.0.0/127.255.255.255, ::1
web_1 | Processing by Api::V1::TasksController#update as JSON
web_1 | Parameters: {"task"=>{"id"=>60, "name"=>"fdsaf", "description"=>"asdfa", "assignee_id"=>4, "author_id"=>2}, "id"=>"60"}
web_1 | Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 60], ["LIMIT", 1]]
web_1 | ↳ app/controllers/api/v1/tasks_controller.rb:27:in `update'
web_1 | Unpermitted parameter: :id
greybutton
left a comment
There was a problem hiding this comment.
презентеры это про сущности в проекте, а не про пропсы компонентов. К юзерам и таскам во всем проекте применить презентеры, пропсы вернуть как было
08b6d48 to
a43ce42
Compare
a43ce42 to
3a2d0f0
Compare
No description provided.