Skip to content

Commit

Permalink
only return user slice count
Browse files Browse the repository at this point in the history
  • Loading branch information
kthare10 committed May 10, 2024
1 parent a07b576 commit 26391d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fabric_cf/actor/core/plugins/db/actor_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def get_slice_count(self, *, project_id: str = None, email: str = None, states:
oidc_sub: str = None, slc_type: List[SliceTypes] = None,
excluded_projects: List[str] = None) -> int:
try:
slice_type = None
slice_type = [SliceTypes.ClientSlice.value]
if slc_type is not None:
slice_type = [x.value for x in slc_type]
return self.db.get_slice_count(project_id=project_id, email=email, states=states, oidc_sub=oidc_sub,
Expand Down
2 changes: 1 addition & 1 deletion fabric_cf/orchestrator/core/orchestrator_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -997,5 +997,5 @@ def get_metrics_overview(self, *, token: str = None, excluded_projects: List[str
return result
except Exception as e:
self.logger.error(traceback.format_exc())
self.logger.error(f"Exception occurred processing get_slices e: {e}")
self.logger.error(f"Exception occurred processing get_metrics_overview e: {e}")
raise e

0 comments on commit 26391d7

Please sign in to comment.