Skip to content

Commit

Permalink
[APPEND][HWORKS-919] Fix setupOnlineFeatureStore (#1475)
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethmhc authored Feb 9, 2024
1 parent 9e5daab commit 01f098c
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,6 @@ public class FeaturegroupController {
@EJB
private Settings settings;
@EJB
private OnlineFeaturestoreController onlineFeaturestoreController;
@EJB
private OnlineFeaturegroupController onlineFeaturegroupController;
@EJB
private FeaturestoreActivityFacade fsActivityFacade;
Expand Down Expand Up @@ -948,7 +946,7 @@ public FeaturegroupPreview getFeaturegroupPreview(Featuregroup featuregroup, Pro
Featurestore userFeatureStore = featurestoreController.getProjectFeaturestore(project);
// Accessing online feature store from a shared project requires online feature store
// being setup in users' project.
onlineFeaturestoreController.setupOnlineFeatureStore(project, userFeatureStore);
onlineFeaturestoreController.setupOnlineFeaturestore(project, userFeatureStore, user);
return onlineFeaturegroupController.getFeaturegroupPreview(featuregroup, project, user, limit);
} else if (online) {
throw new FeaturestoreException(RESTCodes.FeaturestoreErrorCode.FEATUREGROUP_NOT_ONLINE, Level.FINE);
Expand Down

0 comments on commit 01f098c

Please sign in to comment.