Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

Table + Containers - Handle hiding, and fixup containers code. #2984

Merged
merged 1 commit into from
Jul 12, 2016
Merged

Table + Containers - Handle hiding, and fixup containers code. #2984

merged 1 commit into from
Jul 12, 2016

Conversation

mfalesni
Copy link
Contributor

@mfalesni mfalesni commented May 17, 2016

Handle hiding of the table. Phase #1 involves the .rows() and the things that use it directly. The other things will eventually need this change too once needed.

{{pytest: cfme/tests/containers/test_relationships_tables.py -v --long-running}}

@RonnyPfannschmidt
Copy link
Contributor

looks good

the @landscape-bot is drunk

@mfalesni
Copy link
Contributor Author

@RonnyPfannschmidt I added a couple of other changes, yelling when it cannot find the row when clicking a single row and also ./ in the xpath expressions

@mfalesni mfalesni changed the title Table - Handle hiding, phase #1 Table + Containers - Handle hiding, and fixup containers code. May 19, 2016
@RonnyPfannschmidt
Copy link
Contributor

with the reduction of contexts to single element mappings, would it make sense to move to using the single value as context? @psav @jkrocil

@landscape-bot
Copy link

Code Health
Repository health increased by 0.03% when pulling 9a3f570 on mfalesni:table-no-rows into 50a5d0e on RedHatQE:master.

@mfalesni
Copy link
Contributor Author

@RonnyPfannschmidt I don't think that would work for all use cases, however a simplification could be done, I was thinking about it:

You could just pass objects as *args and the objects' classes would define into what key it should be converted, it would generate the context dictionary automatically then.

class Foo(object):
    context_name = 'foo'

foo = Foo()
force_navigate('bar', foo)

# inside navigation
args = [<Foo instance 0xbar>]
# will be converted to
args = {'foo': <Foo instance 0xbar>}

Handle hiding of the table. Involves the .rows() and the things that use it directly. The other things will eventually need this change too once needed.

I also added an exception when you click a row and it is not found.

Removed the convert_header in favour of attributize_string from the utils which does the same.

Fixups in some places in tables.
@dajoRH
Copy link
Contributor

dajoRH commented Jul 7, 2016

Lint report for commit fd819d5:

Everything seems all right 😄 .
CFME QE Bot

{'Name': ctx['container'].name, 'Pod Name': ctx['pod'].name}),
{
'containers_container_edit_tags':
lambda _: pol_btn('Edit Tags'),
Copy link
Contributor

Choose a reason for hiding this comment

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

We are removing navigation points here......is that a good idea?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They are not used in the code

@jkrocil
Copy link
Contributor

jkrocil commented Jul 12, 2016

Looks good; 5.6 has a single failure that is not caused by this PR.

@jkrocil jkrocil merged commit 1a16b6a into ManageIQ:master Jul 12, 2016
@mfalesni mfalesni deleted the table-no-rows branch July 13, 2016 09:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants