-
Notifications
You must be signed in to change notification settings - Fork 295
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
Persist filters, notifications and source bindings state from commands #746
Conversation
a39b156
to
989ae26
Compare
80d0c7d
to
590a2bb
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.
Left a comment - otherwise the code looks fine.
} | ||
|
||
// PersistSourceBindings persists source bindings configuration for a given channel in a given platform. | ||
func (m *PersistenceManager) PersistSourceBindings(commGroupName string, platform CommPlatformIntegration, channelName string, sourceBindings []string) error { | ||
// TODO: Implement this as a part of https://github.com/kubeshop/botkube/issues/704 | ||
func (m *PersistenceManager) PersistSourceBindings(ctx context.Context, commGroupName string, platform CommPlatformIntegration, channelAlias string, sourceBindings []string) error { |
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.
Quick question:
Other than the tests and theConfigPersistenceManager
interface, is there anywhere else in the code that uses this method?
Maybe I missed it.
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.
Update: looks as Mateusz merged his PR, so after I rebase this PR this part will persist source bindings from the edit
command 👍
About to test locally. |
In the PR testing section:
What does "NextGen" refer to here? The command: |
@ezodude |
Ran the code locally, all works. |
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.
👍
Description
Changes proposed in this pull request:
Limitations
To do
Testing
Get ConfigMaps:
Run command on any configured channel:
Get ConfigMap:
Notice that the Pod doesn't restart.
Run command on
botkube-test
channel on Slack:And e.g. on
test
channel on Discord:See the ConfigMaps again:
You can trigger some notifications:
Also, edit the runtime ConfigMap and e.g. change sources for a given channel:
Wait until Pod restarts.
Related issue(s)
#704