-
Notifications
You must be signed in to change notification settings - Fork 67
Add multi promote support to publish/promote entity #1763
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codewise looks good, let's wait for PRT to go through
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested a small proposal for code de-duplication, if possible.
airgun/entities/contentview_new.py
Outdated
if promote and not multi_promote: | ||
view.promote.click() | ||
wait_for(lambda: view.lce_selector.is_displayed, timeout=10) | ||
view.lce_selector.fill({lce: True}) | ||
if promote and multi_promote: | ||
view.promote.click() | ||
wait_for(lambda: view.lce_selector.is_displayed, timeout=10) | ||
view.lce_selector.fill(lce) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we use the lce
being set (not None
) as a flag that we want to do the multi-promote?
Something like
if promote and not multi_promote: | |
view.promote.click() | |
wait_for(lambda: view.lce_selector.is_displayed, timeout=10) | |
view.lce_selector.fill({lce: True}) | |
if promote and multi_promote: | |
view.promote.click() | |
wait_for(lambda: view.lce_selector.is_displayed, timeout=10) | |
view.lce_selector.fill(lce) | |
if promote: | |
view.promote.click() | |
wait_for(lambda: view.lce_selector.is_displayed, timeout=10) | |
view.lce_selector.fill(lce or {lce: True}) |
So when lce=None
the {lce: True}
is passed to the fill
method, otherwise the lce
is passed.
* Add multi promote support to publish/promote entity * Add wait_for checks to allow lce selector to load consistently * Simplify cv publish logic (cherry picked from commit c8d17e3)
* Add multi promote support to publish/promote entity * Add wait_for checks to allow lce selector to load consistently * Simplify cv publish logic (cherry picked from commit c8d17e3)
Updates publish entity to support multi environment promote.
Supports: SatelliteQE/robottelo#17949