Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Persist scopes - #2064

Merged
jasonLaster merged 3 commits into
firefox-devtools:masterfrom
bomsy:persist-scopes
Feb 22, 2017
Merged

Persist scopes#2064
jasonLaster merged 3 commits into
firefox-devtools:masterfrom
bomsy:persist-scopes

Conversation

@bomsy

@bomsy bomsy commented Feb 21, 2017

Copy link
Copy Markdown
Contributor

Associated Issue: #1617

Summary of Changes

  • Added get and set functions which enable us cache the actors and expanded states across ObjectInspector component mounts.
  • Fixed a key bug in the getChildren function. The loaded children were cached against the actor rather than the key. ( Finding this was the nightmare) :)

Test Plan

  • Set a breakpoint
  • Once the breakpoint is hit
  • Open up the scopes
  • Hit the step over button
  • The state should be preserved in the scopes pane

Screenshots/Videos (OPTIONAL)

persist-scopes


const children = makeNodesForProperties(loadedProps, item.path);
this.actorCache[actor] = children;
this.actors[key] = children;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This was the nightmare bug!! :)

@codecov-io

codecov-io commented Feb 22, 2017

Copy link
Copy Markdown

Codecov Report

Merging #2064 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master   #2064   +/-   ##
======================================
  Coverage       0%      0%           
======================================
  Files          40      40           
  Lines         696     696           
======================================
  Misses        696     696

Continue to review full report at Codecov.

Legend - Click here to learn more
螖 = absolute <relative> (impact), 酶 = not affected, ? = missing data
Powered by Codecov. Last update ecb4402...e46641c. Read the comment docs.

bomsy and others added 3 commits February 22, 2017 14:03
* add expanded cache
* add basic caching for the scopes across loads
* add missed property

@jasonLaster jasonLaster left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

馃憤

Lets add some tests in a follow up PR

@jasonLaster
jasonLaster merged commit e6f7702 into firefox-devtools:master Feb 22, 2017
@bomsy
bomsy deleted the persist-scopes branch February 22, 2017 20:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants