Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make containers view navlist #1204

Merged
merged 3 commits into from
May 10, 2017

Conversation

yaacov
Copy link
Member

@yaacov yaacov commented Apr 30, 2017

Description

Currently the containers explorer page (https:///container/explorer) crashes when there is a large number of containers (e.g. ~4000).

This PR fixes that problem by using the navlist layout.

BZ:
https://bugzilla.redhat.com/show_bug.cgi?id=1443743
https://bugzilla.redhat.com/show_bug.cgi?id=1446247 ( fixed by changing the way tag edit works )

Screenshots
screenshot-localhost 3000-2017-04-30-17-03-20

screenshot-localhost 3000-2017-04-30-20-41-22

@yaacov
Copy link
Member Author

yaacov commented Apr 30, 2017

@miq-bot add_label compute/containers, bug

cc// @simon3z @zeari @moolitayer @himdel

@yaacov yaacov force-pushed the make-containers-navlist branch 7 times, most recently from 50af654 to ec65a47 Compare April 30, 2017 14:42
@yaacov
Copy link
Member Author

yaacov commented Apr 30, 2017

@himdel Help, can't find where to enable "filters" in the left bar, any clue ? :-)

[EDIT]
Fixed :-)

@yaacov yaacov force-pushed the make-containers-navlist branch 7 times, most recently from 8bb6de6 to 16185d5 Compare April 30, 2017 18:59
@yaacov yaacov changed the title [WIP]Make containers view navlist Make containers view navlist Apr 30, 2017
@miq-bot miq-bot removed the wip label Apr 30, 2017
@yaacov
Copy link
Member Author

yaacov commented Apr 30, 2017

@simon3z @zeari @moolitayer @himdel please review

@yaacov
Copy link
Member Author

yaacov commented May 1, 2017

cc @nimrodshn

- elsif @showtype == "main"
= render :partial => "layouts/textual_groups_generic"
- elsif @showtype == "topology"
= render :file => 'container_topology/show'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont think topology is relevant here.

@himdel it seems this part is mostly the same for a lot of entities. any smart refactoring we can do for this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont think topology is relevant here.

@zeari , Right 👍 thanks fixed.

@yaacov yaacov force-pushed the make-containers-navlist branch from 16185d5 to ca4959a Compare May 1, 2017 09:14
@Loicavenel
Copy link

I really like this approach, make it easier to use

@yaacov yaacov force-pushed the make-containers-navlist branch from ca4959a to 6b579f7 Compare May 3, 2017 08:40
@miq-bot
Copy link
Member

miq-bot commented May 3, 2017

Checked commits yaacov/manageiq-ui-classic@bfae3bb~...6b579f7 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
11 files checked, 1 offense detected

app/views/configuration/_ui_2.html.haml

  • ⚠️ - Line 42 - Line is too long. [413/160]

@yaacov
Copy link
Member Author

yaacov commented May 3, 2017

@himdel Thanks 👍 done

p.s.
In https://github.com/ManageIQ/manageiq-ui-classic/pull/1204/files#diff-8d54b753701485016bbb2ce8bf826529R1 we have a big if that look suspicious but I was afraid to delete ... do we need it ?

@himdel
Copy link
Contributor

himdel commented May 3, 2017

@yaacov 👍

About that big if .. have you tried removing it to see what breaks? :) But .. you probably do, at least, it looks rather similar to other app/views/*/show.html.haml..

@yaacov
Copy link
Member Author

yaacov commented May 3, 2017

you probably do

leaving it :-)

@nimrodshn
Copy link
Contributor

I really like the way it looks now make much more sense to me 👍 .

@nimrodshn
Copy link
Contributor

nimrodshn commented May 3, 2017

@yaacov @himdel I know that with other entities where there are realtionships shown in the navbar we keep a count in parentheses - does it make sense for us to do the same here? i.e. instead of having State \ Running it will show State \ Running (num of containers running) .

@yaacov
Copy link
Member Author

yaacov commented May 3, 2017

with other entities where there are realtionships week keep a count in parentheses

@nimrodshn I looked and didn't find that, I may be looking in the wrong place :-) , can you be more specific, what entity and where the data (screenshot may help here)

@yaacov
Copy link
Member Author

yaacov commented May 3, 2017

with other entities where there are realtionships week keep a count in parentheses

@nimrodshn
Ahhh ... realtionships ... not filters, it's implicitly 1, a container has 1 ems, 1 project, 1 ... , so we do not explicitly display (1) it's clear from the context.

@nimrodshn
Copy link
Contributor

Yeah wasn't sure if it applies here - Still, looks really good @yaacov!

@yaacov
Copy link
Member Author

yaacov commented May 7, 2017

@himdel @martinpovolny please re-review.

@martinpovolny
Copy link
Member

Sorry, was not at work.

The code looks good. But I lack the time to test this in the UI today and tomorrow at least. Can you get someone from your group run this in the UI and test it in detail? It's a big change and proper UI testing is needed.

Thx!

@martinpovolny
Copy link
Member

Ping @nimrodshn, @zeari ? ^^^

@yaacov
Copy link
Member Author

yaacov commented May 9, 2017

cc @cben ^^

Copy link
Contributor

@dkorn dkorn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks good. But I lack the time to test this in the UI today and tomorrow at least. Can you get someone from your group run this in the UI and test it in detail? It's a big change and proper UI testing is needed.

@martinpovolny I tested the change locally, works for me 👍
LGTM

@simon3z
Copy link
Contributor

simon3z commented May 10, 2017

@yaacov @moolitayer should this have the label for backporting?

@yaacov
Copy link
Member Author

yaacov commented May 10, 2017

should this have the label for backporting?

@miq-bot add_label fine/yes

https://bugzilla.redhat.com/show_bug.cgi?id=1443743
Target is 5.8.1

p.s.
The filters in the screenshots are from:
ManageIQ/manageiq#14893

cc// @simon3z @moolitayer

@cben
Copy link
Contributor

cben commented May 10, 2017

Works for me 👍 . links (relationships) seem to work. breadcrumbs seem to work.

I don't see the filters without ManageIQ/manageiq#14893, upside is I confirm this works without it:
image

@cben
Copy link
Contributor

cben commented May 10, 2017

Code reviewed (superficially), massive deletion Looks Great To Me ✂️ 🔥 🎆

codeclimate go home, you're drunk.

@dclarizio
Copy link

@martinpovolny looks like @cben took this for a spin, perhaps ready to go?

@martinpovolny martinpovolny merged commit 70aec6d into ManageIQ:master May 10, 2017
@martinpovolny martinpovolny added this to the Sprint 61 Ending May 22, 2017 milestone May 10, 2017
@martinpovolny
Copy link
Member

Thanks for the testing!

@simaishi
Copy link
Contributor

simaishi commented Jun 8, 2017

Fine backport details:

$ git log -1
commit 10be54bc8b9ec852e7162b7c9a4c17d62a62e3b8
Author: Martin Povolny <[email protected]>
Date:   Wed May 10 21:29:44 2017 +0200

    Merge pull request #1204 from yaacov/make-containers-navlist
    
    Make containers view navlist
    (cherry picked from commit 70aec6d45b200a44f7c81bb7357cb916c7290aff)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1458934
    https://bugzilla.redhat.com/show_bug.cgi?id=1458935

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.