-
Notifications
You must be signed in to change notification settings - Fork 473
Add name column for webhook and change dashboard messages for webhook #1581
Conversation
@@ -1,5 +1,4 @@ | |||
# frozen_string_literal: true | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
spec/factories/webhooks.rb
Outdated
@@ -1,5 +1,4 @@ | |||
# frozen_string_literal: true | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert
spec/models/webhook_spec.rb
Outdated
@@ -1,5 +1,4 @@ | |||
# frozen_string_literal: true | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert
@@ -0,0 +1,4 @@ | |||
class AddNameToWebhooks < ActiveRecord::Migration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove file? Leftover?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to create a migration which adds the name. Moreover, this column should never be empty (hence I'd make it mandatory)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a backup file ending with ~
. Please remove it.
18773be
to
e71c62c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests are missing. You should update tests so you also check that:
- Creating a webhook gives you the right name.
- You can rename a webhook
@@ -0,0 +1,4 @@ | |||
class AddNameToWebhooks < ActiveRecord::Migration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to create a migration which adds the name. Moreover, this column should never be empty (hence I'd make it mandatory)
2f17655
to
92be8f6
Compare
a3f814d
to
af377af
Compare
@@ -8,7 +8,7 @@ def change | |||
t.integer :request_method | |||
t.integer :content_type | |||
t.boolean :enabled, default: false | |||
|
|||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove whitespace.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
File still here...
@@ -8,7 +8,6 @@ def change | |||
t.integer :request_method | |||
t.integer :content_type | |||
t.boolean :enabled, default: false | |||
|
|||
t.timestamps null: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing changed in this file. You can simply revert the file or create an empty line here to restore the previous state of the file and avoid this change.
The failure on travis does not look related to this PR (flaky test ? 😨) |
I don't think so... Let's hope not. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Add a name column for webhook and change dashboard messages for webhook activities (e.g updating a webhook or creating a webhook).
Fix #1578
Fix #1340