Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
force-bdss
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Adham Hashibon
force-bdss
Commits
69debdca
Commit
69debdca
authored
6 years ago
by
Stefano Borini
Browse files
Options
Downloads
Patches
Plain Diff
Removed KPI from factory registry
parent
4f98470a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!120
Allow KPIs to be specified as datasource outputs.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
force_bdss/factory_registry_plugin.py
+0
-26
0 additions, 26 deletions
force_bdss/factory_registry_plugin.py
with
0 additions
and
26 deletions
force_bdss/factory_registry_plugin.py
+
0
−
26
View file @
69debdca
...
...
@@ -56,12 +56,6 @@ class FactoryRegistryPlugin(Plugin):
List
(
IDataSourceFactory
),
id
=
ExtensionPointID
.
DATA_SOURCE_FACTORIES
)
#: A list of the available Key Performance Indicator calculators.
#: It will be populated by plugins.
kpi_calculator_factories
=
ExtensionPoint
(
List
(
IKPICalculatorFactory
),
id
=
ExtensionPointID
.
KPI_CALCULATOR_FACTORIES
)
#: Notification listeners are pluggable entities that will listen
#: to MCO events and act accordingly.
notification_listener_factories
=
ExtensionPoint
(
...
...
@@ -97,26 +91,6 @@ class FactoryRegistryPlugin(Plugin):
raise
KeyError
(
id
)
def
kpi_calculator_factory_by_id
(
self
,
id
):
"""
Finds a given kpi factory by means of its id.
The ID is as obtained by the function factory_id() in the
plugin api.
Parameters
----------
id: str
The identifier returned by the factory_id() function.
Raises
------
KeyError: if the entry is not found.
"""
for
kpic
in
self
.
kpi_calculator_factories
:
if
kpic
.
id
==
id
:
return
kpic
raise
KeyError
(
id
)
def
mco_factory_by_id
(
self
,
id
):
"""
Finds a given Multi Criteria Optimizer (MCO) factory by means of
its id. The ID is as obtained by the function factory_id() in the
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment