Skip to content

docs: new fractional features#1923

Open
toddbaert wants to merge 2 commits intomainfrom
docs/fractional-updates
Open

docs: new fractional features#1923
toddbaert wants to merge 2 commits intomainfrom
docs/fractional-updates

Conversation

@toddbaert
Copy link
Copy Markdown
Member

@toddbaert toddbaert commented Apr 2, 2026

@toddbaert toddbaert requested review from a team as code owners April 2, 2026 17:06
@netlify
Copy link
Copy Markdown

netlify bot commented Apr 2, 2026

Deploy Preview for polite-licorice-3db33c ready!

Name Link
🔨 Latest commit 12ecef5
🔍 Latest deploy log https://app.netlify.com/projects/polite-licorice-3db33c/deploys/69cec4b9248bab00085299a4
😎 Deploy Preview https://deploy-preview-1923--polite-licorice-3db33c.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Apr 2, 2026
@toddbaert toddbaert force-pushed the docs/fractional-updates branch from efd0f85 to eb81997 Compare April 2, 2026 17:06
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request enhances the fractional operation by introducing support for high-precision weights and dynamic weight calculations using JSONLogic, accompanied by updated documentation and a new gradual rollout scenario in the playground app. It also upgrades @openfeature/flagd-core to version 3 and deprecates the selector field in the gRPC specifications. Review feedback points out that manual modifications to auto-generated proto documentation will be overwritten and currently break Markdown table formatting. Furthermore, it is recommended to maintain a minItems value of 2 for fractional operations in the JSON schema to align with the evaluator's implementation requirements.

@toddbaert toddbaert force-pushed the docs/fractional-updates branch from eb81997 to f15a706 Compare April 2, 2026 18:43
@toddbaert toddbaert changed the title docs: new fractional features docs: new fractional features docs Apr 2, 2026
@toddbaert toddbaert changed the title docs: new fractional features docs docs: new fractional features Apr 2, 2026
@toddbaert toddbaert force-pushed the docs/fractional-updates branch from f15a706 to 024ca05 Compare April 2, 2026 18:47
@toddbaert toddbaert requested a review from suthar26 April 2, 2026 18:54
@@ -3,9 +3,9 @@ import { contextToPrettyJson, featureDefinitionToPrettyJson } from "../utils";

export const progressRollout: Scenario = {
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.

I renamed this one to better highlight the difference between "stepped" and "gradual" (they are both "progressive").

getPalette()
);
const [featureDefinitionLanguage, setFeatureDefinitionLanguage] = useState<DefinitionLanguage>(LANG_JSON);
const [isCustomScenario, setIsCustomScenario] = useState(false);
Copy link
Copy Markdown
Member Author

@toddbaert toddbaert Apr 2, 2026

Choose a reason for hiding this comment

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

New useState to capture whether or not the user modified anything and we should encode the demo in the URL for sharing instead of just pointing to a pre-built scenario. Before we were doing some buggy comparisons.

});
};

const handleButtonClick = (e: React.MouseEvent<HTMLButtonElement>) => {
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.

Adding some better feedback on button clicks.

@toddbaert toddbaert force-pushed the docs/fractional-updates branch from 024ca05 to 14c8ea2 Compare April 2, 2026 18:58
* update public facing schema
* update fractional docs
* update playground demos

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
@toddbaert toddbaert force-pushed the docs/fractional-updates branch from 14c8ea2 to f9912aa Compare April 2, 2026 18:59
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
@toddbaert toddbaert requested a review from suthar26 April 2, 2026 19:34
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 2, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants