mirror of
https://github.com/fluencelabs/dashboard
synced 2025-03-16 13:30:48 +00:00
Filter blueprints that have less than 4 services (#9)
This commit is contained in:
parent
a89c9f386d
commit
85957413e8
@ -15,17 +15,17 @@ view model =
|
||||
let
|
||||
allBps =
|
||||
getBlueprintsToServices model.blueprints model.discoveredPeers
|
||||
|
||||
info =
|
||||
Dict.values allBps
|
||||
|> List.map
|
||||
(\( bp, servicesByPeers ) ->
|
||||
{ name = bp.name
|
||||
, id = bp.id
|
||||
, author = "Fluence Labs"
|
||||
, instanceNumber = List.length (servicesByPeers |> List.map (\( _, s ) -> s) |> List.concat)
|
||||
}
|
||||
)
|
||||
-- TODO HACK: this is a hack to filter bloat blueprints until we have a predefined list of good ones
|
||||
filteredBps = Dict.values allBps |> List.filter (\(_, services) -> List.length services > 3)
|
||||
info = List.map
|
||||
(\( bp, servicesByPeers ) ->
|
||||
{ name = bp.name
|
||||
, id = bp.id
|
||||
, author = "Fluence Labs"
|
||||
, instanceNumber = List.length (servicesByPeers |> List.map (\( _, s ) -> s) |> List.concat)
|
||||
}
|
||||
)
|
||||
filteredBps
|
||||
|
||||
servicesView =
|
||||
List.map viewService info
|
||||
|
Loading…
x
Reference in New Issue
Block a user