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

Update buildFeatureSets method in Golang SDK to ensure order of FeatureSet in the request follows that from the argument #351

Merged

Conversation

davidheryanto
Copy link
Collaborator

@davidheryanto davidheryanto commented Dec 5, 2019

Current implementation of buildFeatureSets method do not ensure such order. However, the unit test expects the order to be respected. This results in failed Golang unit test occasionally.

This pull request update the implementation by not depending on order of iteration of a map object when creating the FeatureSetRequest slice. Map iteration in Golang has random order and therefore cannot be used to ensure ordered output.

Related to #330

To ensure that the feature set name order in the request follows that from the method argument
@feast-ci-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: davidheryanto

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

@davidheryanto davidheryanto changed the title Update buildFeatureSets method in golang SDK to ensure order of FeatureSet in the request follows that from the argument Update buildFeatureSets method in Golang SDK to ensure order of FeatureSet in the request follows that from the argument Dec 9, 2019
@zhilingc
Copy link
Collaborator

/lgtm

@feast-ci-bot feast-ci-bot removed the lgtm label Dec 10, 2019
@zhilingc
Copy link
Collaborator

/lgtm

@feast-ci-bot feast-ci-bot merged commit 06fe09b into feast-dev:master Dec 10, 2019
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.

3 participants