Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Set metadata to null on gohome event. #252

Merged
merged 1 commit into from Apr 22, 2014
Merged

Set metadata to null on gohome event. #252

merged 1 commit into from Apr 22, 2014

Conversation

jcsackett
Copy link
Contributor

Fix the charm browser's Home button search

  • Set's metadata for sectionA to null on EVT_SEARCH_GOHOME
  • Adds test to test_ui_state ensuring metadata: null results in navigating back to '/' from a search

QA with and without the il flag

this.fire('changeState', { sectionA: {} });
this.fire('changeState', {
sectionA: {
metadata: null
Copy link
Contributor

Choose a reason for hiding this comment

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

it should be setting a component to null as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No problem.

@jujugui
Copy link
Contributor

jujugui commented Apr 22, 2014

Test PASSed.
Refer to this link for build results: http://ci.jujugui.org:8080/job/juju-gui/772/

@bac
Copy link

bac commented Apr 22, 2014

With Rick's comment 👍 Even without that fix the QA was good.

search: 'apache2' }
}, sectionB: {}};
var changeState = {
sectionA: { metadata: null }
Copy link

Choose a reason for hiding this comment

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

Don't you need to show the component being reset here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Components being reset elsewhere are already tested--this is just testing that metadata can be reset safely.

@jujugui
Copy link
Contributor

jujugui commented Apr 22, 2014

Test FAILed.
Refer to this link for build results: http://ci.jujugui.org:8080/job/juju-gui/774/

@mitechie
Copy link
Contributor

:shipit:

@jujugui
Copy link
Contributor

jujugui commented Apr 22, 2014

Status: merge request accepted. Url: http://ci.jujugui.org:8080/job/juju-gui-merge

jujugui added a commit that referenced this pull request Apr 22, 2014
Fix the charm browser's Home button search

* Set's metadata for sectionA to null on `EVT_SEARCH_GOHOME`
* Adds test to test_ui_state ensuring `metadata: null` results in navigating back to '/' from a search

QA with and without the `il` flag
@jujugui jujugui merged commit 372e8b8 into juju:develop Apr 22, 2014
@jcsackett jcsackett deleted the fix-charmbrowser-home-button branch April 23, 2014 14:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants