-
Notifications
You must be signed in to change notification settings - Fork 186
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 Tags for Organizational Management #362
Comments
I've been working with @bradphilips on this issue, and we are getting close to submitting a PR for it, but we had a quick question. We've included it in the evalContext of any Batch Evaluation that uses it just like we would a Flag ID or Flag Key: {
"evaluationResults": [
{
"evalContext": {
"entityContext": {
"hello": "world"
},
"entityID": "a1234",
"entityType": "report",
**"flagTags": [ "ABTest" ]**
},
"evalDebugLog": {
"segmentDebugLogs": []
},
"flagID": 1,
"flagKey": "koy8411v5o6zc62i2",
"flagSnapshotID": 1699,
"segmentID": 2,
"timestamp": "2020-05-28T20:51:45Z",
"variantAttachment": {
"text": "Hi"
},
"variantID": 1,
"variantKey": "hi"
}
]
} But we were debating including Tags in the rest of the response like the flagID, flagKey, segmentID, etc. so that the analytics logs would include which Tags are on the Flag being evaluated against: {
"evalContext": {
"entityContext": {
"hello": "world"
},
"entityID": "a1234",
"entityType": "report",
"flagKey": "koy8411v5o6zc62i2"
},
"evalDebugLog": {
"segmentDebugLogs": []
},
"flagID": 1,
"flagKey": "koy8411v5o6zc62i2",
**"flagTags": [ "ABTest" ],**
"flagSnapshotID": 1699,
"segmentID": 2,
"timestamp": "2020-05-28T20:52:37Z",
"variantAttachment": {
"text": "Hi"
},
"variantID": 1,
"variantKey": "hi"
} We weren't sure if it would make sense to add that information to the response for analytics, or if hiding it to prevent exposing unnecessary information would make more sense for the larger community. |
Hey, thanks for the thoughtful decision making. If we are not sure what to do about tags in the evaluation response or in analytics, I think we can skip them in the response for now. We can always add them later or make them appear with optional configuration. What do you think? |
Makes sense to me. Thank you! |
Sound good to me as well! Thanks so much for the feedback, @zhouzhuojie. |
At a large organization like Progressive, we need a way of easily identifying Flags that are aligned with certain organizations (e.g. Mobile, Online Servicing) as well as separate types of tags such as Feature Flags, A/B Tests and Configuration Distribution. Tags is a feature that is commonly used to organize and provide searchability across large groupings of like objects, similar to #hashtags on social media or file tags in macOS Finder. This works by assigning descriptive tag(s) to these objects so looking for them is as simple as looking for the tag and anything associated to it will be found. We would like to add a tagging system to Flagr to accomplish the same goals.
This could be used to identify Flags easily by searching their assigned tags and batch evaluate them all in one call.
Outside of this, we could also use this for organization of flags of different types or assigned to different organizations, and potentially for reporting and access control.
Design:
How we are thinking of this from a design perspective is that Tags would be a many to many relationship to Flags. The tasks we have identified are as follows:
a. We’re not sure this is needed – let us know your thoughts
Benefits of this Approach:
There are already a couple issues open for this:
#314 and #323
We are already underway with prototyping the development above, and should have a PR shortly but would like to get your thoughts.
Let us know what you think. Thanks!
The text was updated successfully, but these errors were encountered: