-
Notifications
You must be signed in to change notification settings - Fork 17
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
define channel defaults via a command and/or make configurable #141
Comments
Great stuff. This brings up a bunch of thoughts/questions.
|
thanks for the clarification concerning underlying YB components -- it creates a more clear picture about what is happening, and what is available to me as a YB dev/ops person .. i have seen references to #130 and wondered how it would affect my current ask .. if it makes sense to drop this issue and instead focus on #130, then by all means -- please do so and i can adjust to the new norm when it the time comes .. i REALLY like the idea of a priority override order -- that would greatly expand the abilities of the #global
deploy to dev ->> "please set a channel or personal setting"
# channel setting "app=login"
deploy to dev ->> YB triggers deploy of "login" app to dev
#personal setting - "app=yb" (i am part of the "login" app team)
deploy to dev ->> YB triggers deploy of YB app to dev anyhoo -- all good stuff |
as a YB dev/ops person,
i would like my channel defaults to be defined via an enabled command and/or configureable,
so that my channel settings are representative of my initial desired state
https://github.com/yetibot/yetibot.core/blob/master/src/yetibot/core/models/channel.clj#L19-L32
so let's talk about "defined via a command" .. i was looking at how you define a commands "category" via simple metadata ::
https://github.com/yetibot/yetibot.core/blob/master/src/yetibot/core/commands/echo.clj#L8
it would be neat if i had the option to create channel defaults in the same manner ::
and so if a command is enabled, when YB enters a channel -- it will have the aforementioned defaults ..
so let's talk about "configureable" .. i was looking at the config.edn example -- and i do see a reference to "jenkins" and "default" -- and as you are aware -- "jenkins-default" is a default channel setting ..
https://github.com/yetibot/yetibot.core/blob/master/config/config.sample.edn
but when i try and set this in my
config.edn
and restart YB -- when i check channel settings (<< even on new channel joins) -- i see that the channel setting is what is in the previously linked code ..that makes sense, simply because the config is NOT a channel default, but a jenkins default -- and when checking YB code (<< note, not core) -- i think i see references to it ::
https://github.com/yetibot/yetibot/blob/master/src/yetibot/models/jenkins.clj#L29-L30
one thing i want to call out is that this default is getting set even tho i do not have any jenkins command enabled .. so it's possible a inexperienced YB user will look at their channel settings, see references to "jenkins" and "jira" and the like -- and wonder why there is a channel setting for it when said commands do not even exist to them ..
it would be great if there is a way to NOT show these defaults if the command doesn't exist AND/OR i simply don't want it there ..
finally -- if i had to choose between one or the other -- i think i would want to be able to define via a command's "metadata" >> sorry, i don't know want to call this line ::
https://github.com/yetibot/yetibot.core/blob/master/src/yetibot/core/commands/echo.clj#L8
i hope this all makes sense ..
thanks !!
The text was updated successfully, but these errors were encountered: