Skip to content

Add optional metadata field to FeatureFlagState. #5876

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

Merged
merged 1 commit into from
Aug 15, 2022

Conversation

bmd3k
Copy link
Contributor

@bmd3k bmd3k commented Aug 15, 2022

Add metadata?: FeatureFlagMetadataMapType field to FeatureFlagState and populate it in OSS TensorBoard.

We have use cases for accessing the Metadata through NgRx state and this is the first step to safely integrating that metadata into state for all TensorBoard instances, internal and external.

The optionality of the field will be removed when internal TensorBoards are updated to also populate the metadata field.

@bmd3k bmd3k requested a review from rileyajones August 15, 2022 15:38
@bmd3k bmd3k merged commit 025eb00 into tensorflow:master Aug 15, 2022
bmd3k added a commit that referenced this pull request Aug 17, 2022
Now that we can consume FeatureFlagMetadata from state. (See #5876 and, Googlers, cl/467745607), we can start using it.

We update DashboardDeeplinkProvider to use metadata from FeatureFlagState instead of via constructor. The constructor argument is left optional for the time being, until we can update internal code to remove usage.

We also make the metadata field mandatory now that it is specified universally.
bmd3k added a commit that referenced this pull request Aug 22, 2022
…5890)

Now that we can use feature flag metadata from state (#5876) we use it in FeatureFlagOverrideDataSource instead of hardcoding the FeatureFlagMetadataMap value.

This will actually allow us to delete all internal implementations of TBFeatureFlagDataSource (googlers, see cl/469204869) since all feature flag parsing logic is now controllable via metadata.
yatbear pushed a commit to yatbear/tensorboard that referenced this pull request Mar 27, 2023
Add `metadata?: FeatureFlagMetadataMapType` field to FeatureFlagState and populate it in OSS TensorBoard.

We have use cases for accessing the Metadata through NgRx state and this is the first step to safely integrating that metadata into state for all TensorBoard instances, internal and external.

The optionality of the field will be removed when internal TensorBoards are updated to also populate the metadata field.
yatbear pushed a commit to yatbear/tensorboard that referenced this pull request Mar 27, 2023
…5877)

Now that we can consume FeatureFlagMetadata from state. (See tensorflow#5876 and, Googlers, cl/467745607), we can start using it.

We update DashboardDeeplinkProvider to use metadata from FeatureFlagState instead of via constructor. The constructor argument is left optional for the time being, until we can update internal code to remove usage.

We also make the metadata field mandatory now that it is specified universally.
yatbear pushed a commit to yatbear/tensorboard that referenced this pull request Mar 27, 2023
…ensorflow#5890)

Now that we can use feature flag metadata from state (tensorflow#5876) we use it in FeatureFlagOverrideDataSource instead of hardcoding the FeatureFlagMetadataMap value.

This will actually allow us to delete all internal implementations of TBFeatureFlagDataSource (googlers, see cl/469204869) since all feature flag parsing logic is now controllable via metadata.
dna2github pushed a commit to dna2fork/tensorboard that referenced this pull request May 1, 2023
Add `metadata?: FeatureFlagMetadataMapType` field to FeatureFlagState and populate it in OSS TensorBoard.

We have use cases for accessing the Metadata through NgRx state and this is the first step to safely integrating that metadata into state for all TensorBoard instances, internal and external.

The optionality of the field will be removed when internal TensorBoards are updated to also populate the metadata field.
dna2github pushed a commit to dna2fork/tensorboard that referenced this pull request May 1, 2023
…5877)

Now that we can consume FeatureFlagMetadata from state. (See tensorflow#5876 and, Googlers, cl/467745607), we can start using it.

We update DashboardDeeplinkProvider to use metadata from FeatureFlagState instead of via constructor. The constructor argument is left optional for the time being, until we can update internal code to remove usage.

We also make the metadata field mandatory now that it is specified universally.
dna2github pushed a commit to dna2fork/tensorboard that referenced this pull request May 1, 2023
…ensorflow#5890)

Now that we can use feature flag metadata from state (tensorflow#5876) we use it in FeatureFlagOverrideDataSource instead of hardcoding the FeatureFlagMetadataMap value.

This will actually allow us to delete all internal implementations of TBFeatureFlagDataSource (googlers, see cl/469204869) since all feature flag parsing logic is now controllable via metadata.
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.

2 participants