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

Fix overlay #671

Merged
merged 5 commits into from Jan 17, 2018
Merged

Fix overlay #671

merged 5 commits into from Jan 17, 2018

Conversation

jreidinger
Copy link
Member

@jreidinger jreidinger commented Jan 16, 2018

quoting first commit message:

Fix applying too old backup for overlays (bsc#1070726)

In general problem is that system role selection clears overlay before
creating dialog, but it does it when going back and also when going
forward. So result is that when going back it is properly cleared and
then when going forward when different extensions is chosen, it is again
cleared, but with invalid backup. So this change in the end apply backup
only when going back.

In general problem is that system role selection clears overlay before
creating dialog, but it does it when going back and also when going
forward. So result is that when going back it is properly cleared and
then when going forward when different extensions is chosen, it is again
cleared, but with invalid backup. So this change in the end apply backup
only when going back.
@kobliha
Copy link
Member

kobliha commented Jan 16, 2018

I'm missing a test case

@coveralls
Copy link

Coverage Status

Coverage increased (+0.002%) to 25.458% when pulling 5b82e89 on fix_overlay into aa6d6b3 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.002%) to 25.458% when pulling 53b33c6 on fix_overlay into aa6d6b3 on master.

@mvidner
Copy link
Member

mvidner commented Jan 16, 2018

"No description provided." please provide context for the PR.

WHY are we calling ClearOverlay a second time without an intervening SetOverlay? That is not supposed to happen.

@mvidner
Copy link
Member

mvidner commented Jan 16, 2018

So we are at SelectSystemRole (where ClearOverlay is called) and we go Next Back Back Next, right?

@jreidinger
Copy link
Member Author

@mvidner yes, see mentioned bug. In fact problematic workflow is:

  1. register system
  2. no extensions
  3. select any role ( so first backup is stored )
  4. go back to extension selection ( so first ClearOverlay is called )
  5. select basesystem extension
  6. select role ( here second ClearOverlay is called which removes extensions and then SetOverlay is called, but with Features that no longer have new extensions )
  7. go back ( so now ClearOverlay is called with wrong backup ) and you see broken texts in roles

@coveralls
Copy link

Coverage Status

Coverage increased (+0.004%) to 25.46% when pulling a510371 on fix_overlay into aa6d6b3 on master.

Copy link
Member

@kobliha kobliha left a comment

Choose a reason for hiding this comment

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

Nice that we have a test for the new exception

LGTM

Copy link
Member

@mvidner mvidner left a comment

Choose a reason for hiding this comment

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

Thanks!

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

Successfully merging this pull request may close these issues.

None yet

4 participants