FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add basic telemetry support by zhiyuanliang-ms · Pull Request #36 · microsoft/FeatureManagement-JavaScript · GitHub

Add basic telemetry support - #36

Merged
Zhiyuan Liang (zhiyuanliang-ms) merged 6 commits into
previewfrom
zhiyuanliang/telemetry-support
Sep 14, 2024
Merged

Add basic telemetry support#36
Zhiyuan Liang (zhiyuanliang-ms) merged 6 commits into
previewfrom
zhiyuanliang/telemetry-support

Conversation

Copy link
Copy Markdown
Member

Why this PR?

Allow user to set onFeatureEvaluated callback which be executed whenever a feature flag with telemetry enabled is evaluated.

}

interface FeatureManagerOptions {
export interface FeatureManagerOptions {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

what's the purpose of code move? to put exported types together? Is there any change other than that?

Zhiyuan Liang (zhiyuanliang-ms) Sep 13, 2024
edited
Loading

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

public stuff should be placed in front of private stuff. I follow this practice in .NET

Is there any change other than that?

No

import * as chai from "chai";
const expect = chai.expect;

import { FeatureManager, ConfigurationObjectFeatureFlagProvider, EvaluationResult, VariantAssignmentReason } from "../";

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Can you put import statements together at the beginning of the file?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

But I found that the testsuite in JS provider, put all import statements in the beginning. I will make them consistent. But personally, I like the way in this repo.

Recall that we've had this discussion before: #24 (comment)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I prefer the imports together. In the /example code- it might be helpful to keep them apart to clearly show the reader which parts relate to what. But I don't think it's valuable outside of an example

Ross Grambo (rossgrambo) left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Have you checked parity with dotnet/python? Using the https://github.com/microsoft/FeatureManagement samples

Copy link
Copy Markdown
Member Author

Ross Grambo (@rossgrambo) Yan used these feature flags for test which are from the centralized feature flag sample. The targeting hash behavior was guarded by it.

Zhiyuan Liang (zhiyuanliang-ms) deleted the zhiyuanliang/telemetry-support branch September 14, 2024 03:35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL