-
Notifications
You must be signed in to change notification settings - Fork 33
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
[Hotfix] Cohort dashoard charts and Visibility #1818
Conversation
New netmanager changes available for preview here |
New netmanager changes available for preview here |
@@ -186,7 +186,7 @@ const CohortForm = ({ cohort }) => { | |||
const initialState = { | |||
name: '', | |||
network: activeNetwork.net_name, | |||
visibility: false | |||
visibility: null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Codebmk , thanks for this.
- Is null the most appropriate default value for a Boolean field?
- Could you share some more insights behind this thought process of this hotfix?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default was initially false but that is not the case with the backend. If there's no visibility value, it is empty. Hence using null in the frontend. @Baalmart
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay @Codebmk . thanks for the clarifications. As long as things work as expected. Let us continue to study the situation.
Summary of Changes (What does this PR do?)
null
if a device has no visibility value.Status of maturity (all need to be checked before merging):
Screenshots (optional)