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.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(notifier): add ability to scale webhook and script #961
feat(notifier): add ability to scale webhook and script #961
Changes from 15 commits
100649c
959427a
66b1164
0e3d388
e0d82a4
9ce491f
71461b8
bf804fb
e0f3978
075d1f1
c3420aa
fce57ec
f8a6c68
c4189e3
1a18e24
4b4dd24
991ac7d
e68b37e
b8ac3c8
b634152
4c5c480
d5c0634
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
это для меня пометочка: смотрю зачем он остался...
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.
это тоже мне, если нужно, то зачем такой тип поля, кажется, можно иначе
и перенести ближе к сендерам - по смыслу, чтоб не разносить
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.
Кажется, по смыслу оно не зависит от каждого конкретного сендера, а нужно именно для нотифаера. Поле маппит имя типа контакта = имени сендера на тип сендера, а если поле с именем не указано, как сейчас для почти всех сендеров, то маппит тип контакта = типу сендера на тип сендера
Таким образом, если хочется несколько сендеров одного типа, то достаточно добавить поле name и смотреть, чтобы оно совпадало с типом контакта
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.
вот в этом Issue пользователь как раз написал, что такой вариант нужен и я как раз такой и сделал
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.
pkg.Contact.Type - это на самом деле уникальный идентификатор?
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.
не поняла, как мы ловко определим тут, что это нужная нам почта/вебхук/и тд
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.
pkg.Contact.Type - у всех же будет лежать как лежал старое значение
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.
Да, будет лежать старое значение и все будет норм работать, тк будет матчиться тип сендера на тип контакта, а если пользователи захотят добавить несколько сендеров одного типа, то необходимо различать по полю name, которое должно будет совпадать с типом контакта
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.
кажется, что-то непрозрачное
у меня была одна почта
потом появилась вторая
я первую назову: Старая почта, а новую - Новая почта