Cross Reference: status_overview_viewhelper.rb
xref
: /
ontohub
/
app
/
viewhelpers
/
status_overview_viewhelper.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
status_overview_viewhelper.rb revision 53f02fa364ceb584160b0dec4d5a9128073a4d13
class
StatusOverviewViewhelper
<
ViewhelperBase
include
WrappingRedis
def
ontology_count_by_state
states_map
(
0
)
.
merge
!
(
Ontology.group
(:
state
)
.
count
)
end
def
processing_iris_count
redis.smembers
(
ConcurrencyBalancer
::
REDIS_KEY
)
.
size
end
private
def
states_map
(
default
)
hash
= {}
Ontology
::
States
::
STATES.each
do
|
state
|
hash
[
state
] =
default
end
hash
end
end