Skip to content
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

Merged
merged 5 commits into from
Sep 5, 2024
Merged

Added feature values #38

merged 5 commits into from
Sep 5, 2024

Conversation

briefausde
Copy link
Collaborator

No description provided.

@briefausde briefausde requested a review from kindermax September 4, 2024 10:23
name: str,
*,
conn: SAConnection,
) -> UUID:
Copy link
Contributor

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 ?

value_default: str,
*,
conn: SAConnection,
) -> UUID:
Copy link
Contributor

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

);
}

function copyToClipboard(text, msg) {
Copy link
Contributor

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

}
break;
case Type.NUMBER:
if (!isNumber(check.value_number || !check.hasOwnProperty('value_number'))) {
Copy link
Contributor

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 ||

Copy link
Contributor

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

@kindermax
Copy link
Contributor

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';
Copy link
Collaborator

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

)
)
}
{/*{!!selected ? <FlagsContainer project={projectMap[selected]}/> :*/}
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe should be uncomented?

@briefausde briefausde merged commit c78ac63 into main Sep 5, 2024
1 check passed
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.

3 participants