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 groups to pack metadata #3214
Conversation
Codecov Report@@ Coverage Diff @@
## master #3214 +/- ##
=========================================
- Coverage 77.83% 77.8% -0.03%
=========================================
Files 433 433
Lines 22398 22400 +2
=========================================
- Hits 17433 17428 -5
- Misses 4965 4972 +7
Continue to review full report at Codecov.
|
To me, this change is no different to adding new API. And with that, I need to know how else this groups can be used outside of Suites context and have a better scheme describing this groups. |
Yeah, overall I'm fine with a high-level concept (adding a new "generic" attribute for that), but need to think more about the name (perhaps tags instead of the groups or similar). In addition to that, it would also be great to do that @enykeev - another API schema for the Also to confirm, right now it looks like actions can only be referenced from the same pack, right? I thought the idea was to also allow referencing actions from other packs (suites also being cross-pack grouping mechanism). In any case, I'm fine with that, but just some additional clarification would be nice :) |
@Kami see https://github.com/StackStorm/bwc-ui/pull/5#issuecomment-279305082 for an illustration of how The problem was described in an earlier discussion: BWC packs contain high-level workflows that are going to be used most of the time, and low-level actions that aren't going to be used outside of workflows. Users want a way to filter out the low-level actions and also group the workflows by purpose, hence the groups.
Groups only contain pack actions, there's no cross-pack grouping (I asked Ram specifically, having the same concern). @enykeev There's no clear use outside of BWC. I agree that it's changing API, but right now I'd consider it reserved for future use. |
I'm not ok with phrasing "reserved for future use" when no one has any idea on how it can be used in future outside of the use case we've specifically agreed not to make API changes for. I realize that you want to get over with it as quickly as possible, but I'm not going to +1 something I was against the entire time. |
@enykeev basically, you are right: we don't have any idea about how it can be used in the future. :) That said, I do not have a good way to implement this feature without API changes, but I'm 100% open to suggestions. |
@emedvedev my proposal was to keep this data inside Suite UI and do filtering and grouping client side. In this particular case you would have to have a json dict in suites app matching action names with suites. Suites developers would then have to open a PR there to update this dict when suite composition changes. Eventually, I'm hoping they would take over this Suite UI and keep core team out of the loop. |
This is not how we should do this. The data modeling here doesn't seem right to me. I am with enykeev on this. This is a premature change - one that we can't back away easily from. Until the data model solidifies while we are playing around with the UI and get more information from product owners, let's do what @enykeev says. Keep this logic away from st2. Note that this is also used by open source people. Suites for them has no meaning for them whatsoever. |
👍 |
This feature adds a
groups
field topack.yaml
for action grouping (currently used in Automation Suites).See https://github.com/emedvedev/stackstorm-suite for an example.