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

[Expressions] should have a unique key#3543

Merged
jasonLaster merged 2 commits into
firefox-devtools:masterfrom
codehag:bug/3496-expressions-should-have-a-unique-key
Aug 3, 2017
Merged

[Expressions] should have a unique key#3543
jasonLaster merged 2 commits into
firefox-devtools:masterfrom
codehag:bug/3496-expressions-should-have-a-unique-key

Conversation

@codehag
Copy link
Copy Markdown
Contributor

@codehag codehag commented Aug 3, 2017

Associated Issue: #3496

Summary of Changes

  • change getKey to getPath to maybe make it clearer that it has more
    tasks than setting the key

  • make objectInspector getPath method create a unique path, even if the
    element is undefined

Test Plan

Unit tests

- change getKey to getPath to maybe make it clearer that it has more
tasks than setting the key

- make objectInspector getPath method create a unique path, even if the
element is undefined
Copy link
Copy Markdown
Contributor

@jasonLaster jasonLaster left a comment

Choose a reason for hiding this comment

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

Looks good


const isEmpty = sourceTree.contents.length === 0;

console.log(listItems);
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.

:/

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.

ack

@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 3, 2017

Codecov Report

Merging #3543 into master will decrease coverage by 0.31%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3543      +/-   ##
==========================================
- Coverage   52.26%   51.94%   -0.32%     
==========================================
  Files         118      113       -5     
  Lines        4556     4653      +97     
  Branches      937      957      +20     
==========================================
+ Hits         2381     2417      +36     
- Misses       2175     2236      +61
Impacted Files Coverage Δ
src/components/shared/ManagedTree.js 5.26% <0%> (-0.1%) ⬇️
src/components/shared/ObjectInspector.js 7.4% <0%> (ø) ⬆️
src/utils/sources-tree/getURL.js
src/utils/sources-tree/utils.js
src/utils/sources-tree/createTree.js
src/utils/sources-tree/getDirectories.js
src/utils/sources-tree/addToTree.js
src/utils/sources-tree/collapseTree.js
src/utils/sources-tree/formatTree.js
src/components/SecondaryPanes/Expressions.js 33.33% <0%> (ø)
... and 2 more

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 139f4ff...0b79598. Read the comment docs.

@jasonLaster jasonLaster merged commit daebcfd into firefox-devtools:master Aug 3, 2017
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.

2 participants