-
Notifications
You must be signed in to change notification settings - Fork 7
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
Need for a unique and permanent identifier of channels #29
Comments
nice catch, also also document that the ID needs to stay stable in our examples and documentations. |
So, do we have to address each social media channel with an ID instead of a label? |
Not completely sure about this. |
I was thinking about this and I got a new idea that I am unsure if it fits our situation. - name: slack
class: slack.slack_client
accounts:
'1':
enabled: true
config:
access_token: "$SLACK_ACCESS_TOKEN"
channel_id: "$SLACK_CHANNEL_ID"
max_content_length: 40000
'2':
enabled: true
config:
access_token: "$SLACK_ACCESS_TOKEN2"
channel_id: "$SLACK_CHANNEL_ID2"
max_content_length: 40000 We can therefore call them in the post configs media, for example, |
Looks neat, but I'm still worried about poorly chosen names that you'd later like to change. |
@wm75 So, something like this would be better?: - name: slack
class: slack.slack_client
accounts:
'1':
name: 'usegalaxy-eu-eu'
enabled: true
config:
access_token: "$SLACK_ACCESS_TOKEN"
channel_id: "$SLACK_CHANNEL_ID"
max_content_length: 40000
'2':
name: 'usegalaxy-eu-org'
enabled: true
config:
access_token: "$SLACK_ACCESS_TOKEN2"
channel_id: "$SLACK_CHANNEL_ID2"
max_content_length: 40000 The label would be |
An additional aspect that we discussed yesterday is that we should probably record commit IDs of what got posted where. An example where that could be useful is #72 where one would like to modify the post content for better formatting on bluesky, but that same content has already been posted to other platforms. Alternatively, we could of course enforce that a new file must be created in such cases. |
I guess a new file is less black magic and more transparent. |
atm, we're keeping track of where things got posted and work out where to post new items through the
name
attributes in the plugins.yml, so this implies that these names will never change.At the same time we're using these as "labels" to hint at their meaning, and that means we would perhaps want to change them (for example there might be more than just one "slack" channel in the future.
So it would be good to separate the "id" and "label" concepts and never change ids afterwards.
The text was updated successfully, but these errors were encountered: