-
Notifications
You must be signed in to change notification settings - Fork 5
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: Add chat/workspaces
with discord map
#215
base: main
Are you sure you want to change the base?
Conversation
- add new field `membersCount`
- add mapping for count of members and description
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.
Looks good to me, I found just one issue in the rate limit mapping.
Co-authored-by: Jan Halama <[email protected]>
2c9177a
to
70967bc
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.
LGTM
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 only non-blocking suggestions, feel free to merge this if you prefer to improve the docs separately.
grid/chat/workspaces/profile.supr
Outdated
input { | ||
""" | ||
As Bot | ||
Boolean representing whether to authorize as bot |
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 don't find this explanation very helpful. Also it's not clear to me why this is needed here since all other maps authorize the user as bot...
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.
My understanding of this field is limited, so pick this suggestion with grain of salt. My issues with this comment:
- the fact that it's boolean is redundant,
- it's not clear what the default behavior is,
- it's not clear what's the impact.
Boolean representing whether to authorize as bot | |
Whether the access token authorizes a user or bot. By default it authorizes a user. |
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.
@jnv I'm not even sure why I added this field when we use bot auth everywhere. Probably to start discussion whether to include it in other usecases as well. 🤔
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.
Do you plan to remove this field? Really, this should be an integration parameter.
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.
Good point, I'll remove it.
grid/chat/workspaces/profile.supr
Outdated
|
||
""" | ||
Icon | ||
Icon of the retrieved workspace |
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.
Is it URL or what?
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.
Icon hash, I'll edit the description.
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.
What is icon hash and how do I use it? IMO only an image URL would make sense here.
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.
Ok, I checked and icon hash can be used to construct URL.
grid/chat/workspaces/profile.supr
Outdated
Name | ||
Name of the retrieved workspace | ||
""" | ||
name string |
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.
Does this need to be optional?
} | ||
} | ||
|
||
model Workspace { |
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.
Shouldn't the workspace include some URL or something? Slack definitely has those and Discord servers have AFAIK vanity URLs (and if it's missing, I think the URL can be easily composed with server ID).
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'll add optional field for it 👍🏻
Co-authored-by: Jan Vlnas <[email protected]>
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.
Thanks for the changes, I still have issue with asBot
input, tell me if you see it as must-have.
grid/chat/workspaces/profile.supr
Outdated
input { | ||
""" | ||
As Bot | ||
Boolean representing whether to authorize as bot |
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.
Do you plan to remove this field? Really, this should be an integration parameter.
@jnv it makes more sense to have it as integration parameter 👍🏻 |
- remove empty input for passing lint
What's the status on this, can this be merged? |
Did not get approve from Honza, so I'm not sure, should be ready for final review. |
Description
Adds new profile
chat/workspaces
with discord map.Motivation and Context
Need of workspace id in
chat/channels
usecases.Types of changes
Checklist: