-
Notifications
You must be signed in to change notification settings - Fork 4
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
Use flow-state for Callouts in space, instead of callout-group #4995
base: develop
Are you sure you want to change the base?
Conversation
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
@ccanos thanks for the super summary. The current status once this work goes through is that we will I think not be using the groups functionality at all - right? And we have the secondary consideration that flow states is specific to callouts in use within Collaboration: that does not apply to callouts within a knowledge base. A third one is that it feels odd to be using the callout framing profile for the filtering, this feels more like a direct property on the callout. @valentinyanakiev lets discuss this on Tuesday. |
Problem 1:
On Space Level 0. We were not using innovation_flows at all.
Regardless of the level, all the spaces have a collaboration, and all the collaborations have an innovation_flow. (at least on accepance. the first migration will fail if this is not true in prod).
Innovation flows have a
innovation_flow > profile > tagsets
tagset withname='flow-state'
that specifies the current selected state of the Innovation Flow.tags
(current state), and the allowedValues and defaultValue in the tagset_template.tagset_template
has atagsetTemplateSetId
which has to be set tocallouts_set.tagsetTemplateSetId
of the space.1740738523228-innovation-flow-tagsets.ts
Problem 2:
Callouts in Spaces are organized in tabs using a
tagset
withname='callout-group'
. In subspaces they are organized in those tabs/flow-states with atagset
withname='flow-state'
.Those two tagsets are linked by the
callout > callout_framing > profile > tagsets
.So normally callouts have 3 tagsets:
name = 'default'
,name = 'callout-group'
,name = 'flow-state'
.On Space L0, I have found many cases (with acc data) of callouts that don't have a tagset with
name = 'flow-state'
. Or that have it incorrect.The second migration
1740750569873-callouts-groupsToStates.ts
corrects this, it will loop through all the callouts in L0 spaces, get the profile, also get the InnovationFlow to get the valid states.callout-group
tagset, and identify if it's "HOME", "COMMUNITY", "SUBSPACES" or "KNOWLEDGE", if it's something different it will fail.flow-state
is correct, or will create aflow-state
tagset if it doesn't exist.This is a bigger problem and requires further work:
PENDING:
groups
at the callouts resolver to filter callouts by group.