Strings should be shown with quotes so the type is recognizable
Categories
(DevTools :: Netmonitor, defect, P3)
Tracking
(firefox74 fixed)
Tracking | Status | |
---|---|---|
firefox74 | --- | fixed |
People
(Reporter: nachtigall, Assigned: pranavpandey1998official)
References
(Blocks 1 open bug)
Details
(Keywords: good-first-bug)
Attachments
(2 files, 2 obsolete files)
I have a project that enforces type checking (TypeScript, Flow). That is, when data comes from JSON a certain type like number or string is expected for the items in the json.
STR:
- Have a JSON with a number encoded as string type (this happens more often then you'd think), e.g.
{
"numberAsNumberType": 1,
"numberAsStringType": "1"
}
- Download via https://api.myjson.com/bins/l22e0
- Look at the Netmonitor, screenshot.
ER:
The string should be surrounded by quotes. The JSON Viewer does it right.
AR:
The string shows like a number what really puzzled me in my project. Of course the above is just a minimal example.
Comment 1•5 years ago
|
||
Thanks for the report!
@Nicolas, looks like we need to update/fix a rep?
Honza
Updated•5 years ago
|
Comment 2•5 years ago
|
||
This probably comes from: https://searchfox.org/mozilla-central/rev/6bceafe72cad5d5752667b4b6bd595d3a4047ca3/devtools/client/netmonitor/src/components/PropertiesView.js#300
Removing it would add the quotes to all strings
Comment 4•5 years ago
|
||
Can I do it? :)
Comment 5•5 years ago
|
||
(In reply to Andres Ortega :cabezota from comment #4)
Can I do it? :)
Hello Andres!
I assigned the bug to you, thanks for offering help!
If you haven't yet, you should go through http://docs.firefox-dev.tools/getting-started/ to setup the work environment. Don't hesitate to ask any question
Assignee | ||
Comment 6•5 years ago
|
||
(In reply to Andres Ortega :cabezota from comment #4)
Can I do it? :)
Hi Andres if you are not working on it can I give it a try :)
Comment 7•5 years ago
|
||
Sure, Pranav. You can do it. I haven't had the time
Assignee | ||
Comment 8•5 years ago
|
||
Updated•5 years ago
|
Assignee | ||
Comment 9•5 years ago
|
||
Assignee | ||
Comment 10•5 years ago
|
||
hi I have submitted a patch for this bug https://phabricator.services.mozilla.com/D60104
Updated•5 years ago
|
Assignee | ||
Comment 11•5 years ago
|
||
Assignee | ||
Comment 12•5 years ago
|
||
Hi ,
Sorry I have to submit a new patch I tried soo hard but couldn't find a way to add new commits to patch then I destroyed my branch by trying different things then, I also do not how to attach to a branch in phabricator.
Pranav
Updated•5 years ago
|
Updated•5 years ago
|
Comment 13•5 years ago
|
||
(In reply to Pranav pandey from comment #12)
Sorry I have to submit a new patch I tried soo hard but couldn't find a way to add new commits to patch then I destroyed my branch by trying different things then, I also do not how to attach to a branch in phabricator.
No problem.
Here is, what I usually do to update an existing patch/revision on phabricator
arc diff .^ --update DXXXX
DXXXX => revision number
Honza
Assignee | ||
Comment 14•5 years ago
|
||
the arc thing was not working for me I also asked it on slack then people said why are you using it .. I have switched to git now and using phlay it is working fine for me
Updated•5 years ago
|
Comment 15•5 years ago
|
||
Comment 16•5 years ago
|
||
bugherder |
Description
•