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 bug in allowing empty repositories to be applied to a GCS registry #1488

Merged
merged 2 commits into from Apr 21, 2021

Conversation

woop
Copy link
Member

@woop woop commented Apr 21, 2021

Signed-off-by: Willem Pienaar git@willem.co

What this PR does / why we need it:

We introduced a bug with #1477. We allow initialization of the registry during apply, even with empty repositories. However, support was only added for the local registry, not the GCS registry.

Does this PR introduce a user-facing change?:

Fix bug in allowing empty repositories to be applied to a GCS registry

Signed-off-by: Willem Pienaar <git@willem.co>
Signed-off-by: Willem Pienaar <git@willem.co>
@feast-ci-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jklegar, woop

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jklegar
Copy link
Collaborator

jklegar commented Apr 21, 2021

/lgtm

@@ -71,7 +69,7 @@ def __init__(self, registry_path: str, repo_path: Path, cache_ttl: timedelta):

def _initialize_registry(self):
"""Explicitly forces the initialization of a registry"""
self._registry_store.update_registry_proto()
self._registry_store.update_registry_proto(updater=None)
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: you don't need updater=None since you added the default

Copy link
Member Author

Choose a reason for hiding this comment

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

Yea, this was a relic from my debugging. Good catch.

@feast-ci-bot feast-ci-bot merged commit 5a2379b into feast-dev:master Apr 21, 2021
woop added a commit that referenced this pull request Apr 21, 2021
#1488)

* Fix no-op for GCS registry

Signed-off-by: Willem Pienaar <git@willem.co>

* Unify signature

Signed-off-by: Willem Pienaar <git@willem.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants