-
Notifications
You must be signed in to change notification settings - Fork 1
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
Added feature values #38
Conversation
featureflags/http/db.py
Outdated
name: str, | ||
*, | ||
conn: SAConnection, | ||
) -> UUID: |
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.
What if there is no Value in db ? Maybe it should be Optional ?
featureflags/http/db.py
Outdated
value_default: str, | ||
*, | ||
conn: SAConnection, | ||
) -> UUID: |
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.
As far as I know, if on_conflict_do_nothing
does nothing, query won't return an id
ui/src/Dashboard/Value.jsx
Outdated
); | ||
} | ||
|
||
function copyToClipboard(text, msg) { |
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.
Ideally this must go to some utils.js
or utils/clipboard.js
.
Same for function _replace(array, value, newValue)
bellow since this code is a duplicate from Flag.jsx
ui/src/Dashboard/actions.js
Outdated
} | ||
break; | ||
case Type.NUMBER: | ||
if (!isNumber(check.value_number || !check.hasOwnProperty('value_number'))) { |
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.
This row has a bug (introduced by me :)).
It should be isNumber(check.value_number) ||
not isNumber(check.value_number ||
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.
And the same bug exists in getFlagSaveOperations
Overall lgtm |
ui/src/Base.jsx
Outdated
@@ -1,4 +1,4 @@ | |||
import { Navigate, useLocation } from 'react-router-dom'; | |||
import {Navigate, useLocation, useNavigate} from 'react-router-dom'; |
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.
looks like linter missed this part
ui/src/Dashboard/Dashboard.jsx
Outdated
) | ||
) | ||
} | ||
{/*{!!selected ? <FlagsContainer project={projectMap[selected]}/> :*/} |
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.
maybe should be uncomented?
No description provided.