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

Docstring for pop() #1776

Merged
merged 5 commits into from
May 20, 2024
Merged

Docstring for pop() #1776

merged 5 commits into from
May 20, 2024

Conversation

normandy7
Copy link
Collaborator

Before submitting checklist

  • Did you update the CHANGELOG? (not for test updates, internal changes/refactors or CI/CD setup)
  • Did you ask the docs owner to review all the user-facing changes?

Copy link

codecov bot commented May 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.13%. Comparing base (4716f23) to head (ab37577).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1776      +/-   ##
==========================================
- Coverage   79.52%   73.13%   -6.39%     
==========================================
  Files         371      259     -112     
  Lines       20270    13658    -6612     
==========================================
- Hits        16120     9989    -6131     
+ Misses       4150     3669     -481     
Flag Coverage Δ
e2e ?
e2e-management ?
e2e-s3 ?
e2e-s3-gcs ?
e2e-standard ?
macos 73.07% <ø> (-6.22%) ⬇️
py3.10 ?
py3.11 ?
py3.12 ?
py3.7 72.43% <ø> (-6.40%) ⬇️
py3.8 73.07% <ø> (-6.34%) ⬇️
py3.9 ?
ubuntu 72.43% <ø> (-6.93%) ⬇️
unit 73.13% <ø> (-2.35%) ⬇️
windows ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@normandy7 normandy7 requested a review from szaganek May 15, 2024 08:04
src/neptune/handler.py Outdated Show resolved Hide resolved
@@ -37,6 +37,7 @@
- Move some `OperationProcessor` implementations to `neptune.core.operation_processors` ([#1760](https://github.com/neptune-ai/neptune-client/pull/1760))
- Changed handling of too long custom run id ([#1761](https://github.com/neptune-ai/neptune-client/pull/1761))
- Skip tests that require `GitPython` when not installed ([#1752](https://github.com/neptune-ai/neptune-client/pull/1752))
- Added docstring for the `pop()` function ([#1776](https://github.com/neptune-ai/neptune-client/pull/1776))
Copy link
Contributor

Choose a reason for hiding this comment

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

Would you mind to cherry pick this changes to dev/1.x as well?


Args:
path: Path of the namespace to be removed.
wait: By default, logged metadata is sent to the server in the background.
Copy link
Contributor

Choose a reason for hiding this comment

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

wait seems not to express the effect properly in the context of pop. We will wait to all metadata to be removed 😉

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Isn't it technically the case that with wait=True, any queued operations (which may include earlier logging calls) are completed before continuing? And not just this particular pop() operation.

Conversely, if wait is used in some call after pop(), do we not have the same phrasing problem?

run["huge_field"].pop()
run["a"].assign("aaa", wait=True)

I.e. in this case we'll technically wait for deletion rather than sending of metadata. Just wondering if we should adjust this wording globally.

Copy link
Contributor

Choose a reason for hiding this comment

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

From a technical point of view, you're absolutely right 😉 . I've started to feel that it looks like being copy-pasted and doesn't match the actual use-case but I'm good as long as it's ok for you.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks for confirming 😃 We'll think of some more accurate and helpful phrasing in a separate update.

Raalsky
Raalsky previously approved these changes May 17, 2024
@normandy7 normandy7 merged commit 007a8a2 into master May 20, 2024
4 checks passed
@normandy7 normandy7 deleted the sn/pop-docstring branch May 20, 2024 09:58
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