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
Add external_id to WorkflowStepView #1392
Conversation
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.
Hmm, now that I'm reviewing this, I'm wondering if these changes are correct. @seratch @srajiang can you double-check my assumptions below?
In digging into where these types are used, I can see that it is consumed in the @slack/web-api
package: the super-type View
is imported in src/methods.ts
, a e.g. ViewsUpdateArguments
interface uses the View
as a view
property and finally the e.g. views.update
method uses ViewsUpdateArguments
as the arguments to be passed in.
However, the optional external_id
and view_id
properties are set as properties on this ViewsUpdateArguments
interface inside @slack/web-api
- not on the WorkflowStepView
type exported by @slack/types
.
With that context, perhaps this isn't the right change? It seems like the various *View
types exported by @slack/types
are meant to model the view
object to be passed into the various views.*
API methods.
Perhaps there is nothing wrong here? Am I totally off-base?
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.
I have removed |
Thanks for working on this! Not having |
Summary
Fixes #1391 by adding
external_id
properties required by views.update method.Requirements (place an
x
in each[ ]
)