Skip to content

Implement docstring, missing methods, basic streaming#56

Merged
Razikus merged 39 commits into
masterfrom
feature/fullapisupport
Oct 25, 2022
Merged

Implement docstring, missing methods, basic streaming#56
Razikus merged 39 commits into
masterfrom
feature/fullapisupport

Conversation

@Razikus

@Razikus Razikus commented Sep 11, 2022

Copy link
Copy Markdown
Contributor

All methods implemented

@tomekkolo tomekkolo requested review from arriqaaq and byo September 19, 2022 15:59
Comment thread immudb/dataconverter.py
Comment thread immudb/client.py Outdated
Comment thread immudb/client.py Outdated
Comment thread immudb/client.py Outdated
Comment thread immudb/client.py Outdated
Comment thread immudb/client.py Outdated
Comment thread immudb/client.py Outdated
key (bytes): Key to retrieve
offset (int): Offset of history
limit (int): Limit of history entries
sortorder (bool): Sort order of history

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please add information what True and False mean here.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I've resolved this with a documentation change, but I also opened a PR against this branch with a change to the method that resolves the confusion: #59

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I commented in #59
We shouldn't introduce new parameter, but just rename first one if we really want to do it. Or just write it in the documentation

Comment thread immudb/client.py Outdated
Comment thread immudb/client.py Outdated
Comment thread immudb/client.py Outdated
Comment thread immudb/client.py

@NickAnderegg NickAnderegg left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Most of the outstanding discussion points have been resolved by my recent commits, but I have a few open points marked in this review that need clarification.

Comment thread immudb/client.py
Comment on lines +536 to +541
Args:
cleanupPercentage (float): Indicates the percentage of the
storage space that will be scanned for unreference data. Although
this operation blocks transaction processing, choosing a small
value (e.g. ``0.1``) may not significantly hinder normal operations,
and will reduce used storage space.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This is a percentage from 0 to 1, correct? If so, then it should be phrased this way instead:

Suggested change
Args:
cleanupPercentage (float): Indicates the percentage of the
storage space that will be scanned for unreference data. Although
this operation blocks transaction processing, choosing a small
value (e.g. ``0.1``) may not significantly hinder normal operations,
and will reduce used storage space.
Args:
cleanupPercentage (float): Fractional decimal indicating the percentage of the
storage space that will be scanned for unreferenced data. Although
this operation blocks transaction processing, choosing a small
value (e.g. ``0.1``) may not significantly hinder normal operations,
and will reduce used storage space.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nope, this is between 0 and 100, the 0.1 value is really 0.1% (which is a sane value in this case)

Comment thread immudb/client.py Outdated
key (bytes): Key to retrieve
offset (int): Offset of history
limit (int): Limit of history entries
sortorder (bool): Sort order of history

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I've resolved this with a documentation change, but I also opened a PR against this branch with a change to the method that resolves the confusion: #59

Comment thread immudb/client.py
Args:
user (str): username
newPassword (str): new password
oldPassword (str): old password

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What is it that's only necessary for the sysadmin user?

Comment thread immudb/client.py
Comment thread immudb/client.py
@NickAnderegg NickAnderegg requested a review from byo October 14, 2022 00:12
Comment thread immudb/client.py Outdated
Comment thread immudb/client.py Outdated
Comment thread immudb/client.py
Args:
user (str): username
newPassword (str): new password
oldPassword (str): old password

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This are restrictions implied by the immudb itself.

SysAdmin can change his own password only by giving old and new password.
SysAdmin user can change password of any other user without old password.
Admin users can change password for user only created by that admin without old password.

@mabmayer mabmayer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@Razikus Razikus merged commit 6af811b into master Oct 25, 2022
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.

5 participants