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

Fix/remember namespace #1873

Merged
merged 3 commits into from
Jun 13, 2024
Merged

Fix/remember namespace #1873

merged 3 commits into from
Jun 13, 2024

Conversation

romain-intel
Copy link
Contributor

No description provided.

This would fix the following issue:

namespace("B")
r = Run("myFlow/123") # r in namespace B
namespace("A")
r["end"] # Currently does not work -- this would make it work
Copy link
Collaborator

@savingoyal savingoyal left a comment

Choose a reason for hiding this comment

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

lgtm! one minor nit - otherwise good to ship as soon as the changes to the test are made.

@@ -268,11 +268,13 @@ def __init__(
_object: Optional["MetaflowObject"] = None,
_parent: Optional["MetaflowObject"] = None,
_namespace_check: bool = True,
_create_namespace: Optional[str] = None,
Copy link
Collaborator

Choose a reason for hiding this comment

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

minor nit - this can be _current_namespace to aid readability

@romain-intel
Copy link
Contributor Author

Approved offline by @savingoyal

@romain-intel romain-intel merged commit ae2fee2 into master Jun 13, 2024
26 checks passed
@romain-intel romain-intel deleted the fix/remember-namespace branch June 13, 2024 07:26
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.

None yet

2 participants