enterprise_id in InstallationQuery can be invalid for Slack Connect channel events #935
Closed
4 of 10 tasks
Labels
bug
M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented
semver:minor
Milestone
Bug Report
tl;dr - The fix for #687 was not complete for the events that happen in a Slack Connect channel shared among an Enterprise Grid workspace and non-Enterprise Grid workspace.
In a Slack Connect shared channel, the enterprise_id / team_id to use is always under the
authorizations[0]
. For instance, the following event is coming from workspace:T_this_non_grid_workspace
, which is not in an Enterprise Grid.In this case, the argument for
installationStore#fetchInstallation
includes an invalidenterprise_id
.The
console.log(installQuery);
prints the following:The
enterpriseId
must be null.Reproducible in:
any version
node version:
any
Steps to reproduce:
T_this_non_grid_workspace
)T_connected_grid_workspace
)message
events to theT_this_non_grid_workspace
workspaceinstallationQuery
infetchInstallation
methodExpected result:
The
enterpriseId
is nullActual result:
The
T_connected_grid_workspace
workspace'senterprise_id
is set.What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)The text was updated successfully, but these errors were encountered: