Conversation
…ke task for generating Tasks
|
Uffizzi Preview |
67515d5 to
da9c4ab
Compare
da9c4ab to
98ba6b9
Compare
greybutton
suggested changes
Dec 19, 2022
| end | ||
|
|
||
| def create | ||
| params['task']['author_id'] = current_user.id |
Owner
Author
Owner
Author
There was a problem hiding this comment.
Мб я что-то пропустил.
В логах при создании таски вот такие параметры:
web_1 | Started POST "/api/v1/tasks" for 172.30.0.1 at 2022-12-20 05:49:17 +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#create as JSON
web_1 | Parameters: {"task"=>{"name"=>"fdas", "description"=>"asdf", "assignee_id"=>nil, "author_id"=>nil}}
web_1 | User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]]
web_1 | ↳ app/controllers/concerns/auth_helper.rb:21:in `current_user'
В следующем блоке точно передаются, если из селекта выбрать автора, а в противном случае тоже nil.
Owner
Author
|
Еще вопрос по билду: Как можно ошибку победить? Точнее - в чем причина? Конфиг надо править? |
|
по ошибке 500, не понял когда она происходит |
Owner
Author
Это по билдам при пуше ветки. |
Merged
greybutton
approved these changes
Dec 22, 2022
greybutton
left a comment
There was a problem hiding this comment.
насчет 500, у тебя уфизи файлы немного отличаются от примера, может из за этого не срабатывает уфизи деплой
| end | ||
|
|
||
| def create | ||
| params['task']['author_id'] = current_user.id |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

No description provided.