MM-60200 Fix for Plugin Dialog with wrong channel ID. (#28122)
* save arguments to state for later usage * add test * feat: Add tests for submitInteractiveDialog with channel and thread context * fix: Add missing properties to DialogSubmission in integration_actions.test.ts * feat: Add channel_id to DialogSubmission objects in test file * refactor: Move selectedThreadIdInTeam to views.threads state * add channel id to state * add unit test * add unit test * update submitInteractiveDialog * update tests for changes * remove log line * refactor: Enhance submitInteractiveDialog proxy action with improved error handling * add userID to submit data to plugin * remove log message * remove unnecessary default state * lint fixes * update unit test * fixes from code review * fixes from code review * fixes from code review * fix test, add userID to expected --------- Co-authored-by: Mattermost Build <build@mattermost.com> Co-authored-by: Caleb Roseland <caleb@calebroseland.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
0cacee570a
Коммит
ee0361894f
@@ -69,6 +69,10 @@ export type CommandArgs = {
|
||||
root_id?: string;
|
||||
}
|
||||
|
||||
export type DialogArgs = {
|
||||
channel_id: string;
|
||||
}
|
||||
|
||||
export type CommandResponse = {
|
||||
response_type: string;
|
||||
text: string;
|
||||
@@ -134,6 +138,7 @@ export type IntegrationsState = {
|
||||
appsBotIDs: string[];
|
||||
systemCommands: IDMappedObjects<Command>;
|
||||
commands: IDMappedObjects<Command>;
|
||||
dialogArguments?: DialogArgs;
|
||||
dialogTriggerId: string;
|
||||
dialog?: {
|
||||
url: string;
|
||||
|
||||
Ссылка в новой задаче
Block a user