Review UI for JSON files
Review Request #10716 — Created Sept. 13, 2019 and updated
Create a prettified JSON rendered version and a custom Review UI for JSON files.
Summary | ID | Author |
---|---|---|
4902e455577db34ce9f1b2301adba949ca2b492f | nicolelisa | |
60548d031592e5e94da2081a59d83605d3d6abe0 | nicolelisa |
Description | From | Last Updated |
---|---|---|
Can you upload screenshots of your review UI in the normal rendered JSON view, as well as in the diff … |
amalik2 | |
F401 'logging' imported but unused |
reviewbot | |
F401 'reviewboard.diffviewer.chunk_generator.RawDiffChunkGenerator' imported but unused |
reviewbot | |
E501 line too long (92 > 79 characters) |
reviewbot | |
This should go in your Review UI. |
brennie | |
F821 undefined name 'force_bytes' |
reviewbot | |
F821 undefined name 'force_bytes' |
reviewbot | |
F821 undefined name 'force_bytes' |
reviewbot | |
F821 undefined name 'force_bytes' |
reviewbot | |
W292 no newline at end of file |
reviewbot | |
This commented import should either be removed or uncommented |
amalik2 | |
You should handle invalid JSON being parsed. If the user uploads a JSON file that json.dumps is unable to process, … |
amalik2 | |
E501 line too long (80 > 79 characters) |
reviewbot | |
Make sure to delete this file once you're finished testing. |
amalik2 | |
Make sure to revert all changes in this file once Christian's PR with the same changes is merged |
amalik2 | |
Can you upload an image of where this CSS rule is used, and how the UI differs when it isn't … |
amalik2 | |
E303 too many blank lines (3) |
reviewbot | |
E127 continuation line over-indented for visual indent |
reviewbot | |
E116 unexpected indentation (comment) |
reviewbot | |
E501 line too long (147 > 79 characters) |
reviewbot | |
E501 line too long (138 > 79 characters) |
reviewbot | |
E501 line too long (80 > 79 characters) |
reviewbot | |
E126 continuation line over-indented for hanging indent |
reviewbot |
- Commits:
-
Summary ID Author a911b063b2091b7cd98fa3b852142915a006e562 nicolelisa b779a443c89b40b4680656133a66bc476fcd3c88 nicolelisa 681c0fd63ccec568d6643182fdd58fcf40265510 nicolelisa 8a34f74b78d77bacde8b590586ade2ef5028059c nicolelisa ed6af20d1999577a29a24e5a16bb7f4479266127 nicolelisa d93362bac30bc18fdc385c72644eb4cc2f92d206 nicolelisa a911b063b2091b7cd98fa3b852142915a006e562 nicolelisa b779a443c89b40b4680656133a66bc476fcd3c88 nicolelisa 681c0fd63ccec568d6643182fdd58fcf40265510 nicolelisa 8a34f74b78d77bacde8b590586ade2ef5028059c nicolelisa ed6af20d1999577a29a24e5a16bb7f4479266127 nicolelisa d93362bac30bc18fdc385c72644eb4cc2f92d206 nicolelisa 2b2ee52e5b953affb8babc80cc4ab36f683c9516 nicolelisa - Diff:
-
Revision 2 (+292 -58)
-
-
Can you upload screenshots of your review UI in the normal rendered JSON view, as well as in the diff viewer?
-
-
You should handle invalid JSON being parsed. If the user uploads a JSON file that json.dumps is unable to process, it would be best to display an error message to the user indicating that their JSON is invalid. In the markdown UI file, the try/catch in the generate_render() function handled this purpose. You should follow that same pattern, and wrap your code with a try/catch block. In the catch clause, you can yield the error message, and that error message will be visible in the render view when a parsing error occurs.
-
-
-
- Commits:
-
Summary ID Author a911b063b2091b7cd98fa3b852142915a006e562 nicolelisa b779a443c89b40b4680656133a66bc476fcd3c88 nicolelisa 681c0fd63ccec568d6643182fdd58fcf40265510 nicolelisa 8a34f74b78d77bacde8b590586ade2ef5028059c nicolelisa ed6af20d1999577a29a24e5a16bb7f4479266127 nicolelisa d93362bac30bc18fdc385c72644eb4cc2f92d206 nicolelisa 2b2ee52e5b953affb8babc80cc4ab36f683c9516 nicolelisa a911b063b2091b7cd98fa3b852142915a006e562 nicolelisa b779a443c89b40b4680656133a66bc476fcd3c88 nicolelisa 681c0fd63ccec568d6643182fdd58fcf40265510 nicolelisa 8a34f74b78d77bacde8b590586ade2ef5028059c nicolelisa ed6af20d1999577a29a24e5a16bb7f4479266127 nicolelisa d93362bac30bc18fdc385c72644eb4cc2f92d206 nicolelisa 2b2ee52e5b953affb8babc80cc4ab36f683c9516 nicolelisa 995b853ce3d6ae2f1f987cba61ca802af57f629d nicolelisa
Checks run (2 succeeded)
- Commits:
-
Summary ID Author a911b063b2091b7cd98fa3b852142915a006e562 nicolelisa b779a443c89b40b4680656133a66bc476fcd3c88 nicolelisa 681c0fd63ccec568d6643182fdd58fcf40265510 nicolelisa 8a34f74b78d77bacde8b590586ade2ef5028059c nicolelisa ed6af20d1999577a29a24e5a16bb7f4479266127 nicolelisa d93362bac30bc18fdc385c72644eb4cc2f92d206 nicolelisa 2b2ee52e5b953affb8babc80cc4ab36f683c9516 nicolelisa 995b853ce3d6ae2f1f987cba61ca802af57f629d nicolelisa 525f146eeaf2c87768cb832f4bcd7fa90d6d622a nicolelisa 55b3e8a7e15653f2b679ff41eb0795fcb6e654f8 nicolelisa cbd4262bc517a427c4846d72804d1847c8d2559c nicolelisa cc57a6f030109ca9f5beb988d93d59e1a36cea96 nicolelisa f813e9ca16f3463a156c8ceab92088051ec158a2 nicolelisa 3844b6180b6ca9bb24d3f85c36733e447771e93a nicolelisa 02de0e02bb76744ef1cfb737d34c320b2ab902c0 nicolelisa b75b7170e7b937f0934a9081fd01a6f2e5f478d9 nicolelisa
Checks run (2 succeeded)
- Commits:
-
Summary ID Author 525f146eeaf2c87768cb832f4bcd7fa90d6d622a nicolelisa 55b3e8a7e15653f2b679ff41eb0795fcb6e654f8 nicolelisa cbd4262bc517a427c4846d72804d1847c8d2559c nicolelisa cc57a6f030109ca9f5beb988d93d59e1a36cea96 nicolelisa f813e9ca16f3463a156c8ceab92088051ec158a2 nicolelisa 3844b6180b6ca9bb24d3f85c36733e447771e93a nicolelisa 02de0e02bb76744ef1cfb737d34c320b2ab902c0 nicolelisa b75b7170e7b937f0934a9081fd01a6f2e5f478d9 nicolelisa 525f146eeaf2c87768cb832f4bcd7fa90d6d622a nicolelisa 55b3e8a7e15653f2b679ff41eb0795fcb6e654f8 nicolelisa cbd4262bc517a427c4846d72804d1847c8d2559c nicolelisa cc57a6f030109ca9f5beb988d93d59e1a36cea96 nicolelisa f813e9ca16f3463a156c8ceab92088051ec158a2 nicolelisa 3844b6180b6ca9bb24d3f85c36733e447771e93a nicolelisa 02de0e02bb76744ef1cfb737d34c320b2ab902c0 nicolelisa b75b7170e7b937f0934a9081fd01a6f2e5f478d9 nicolelisa c45235513c64e981a8975798330e75d7565a1dfc nicolelisa - Diff:
-
Revision 5 (+415 -83)
Checks run (2 succeeded)
- Commits:
-
Summary ID Author 525f146eeaf2c87768cb832f4bcd7fa90d6d622a nicolelisa 55b3e8a7e15653f2b679ff41eb0795fcb6e654f8 nicolelisa cbd4262bc517a427c4846d72804d1847c8d2559c nicolelisa cc57a6f030109ca9f5beb988d93d59e1a36cea96 nicolelisa f813e9ca16f3463a156c8ceab92088051ec158a2 nicolelisa 3844b6180b6ca9bb24d3f85c36733e447771e93a nicolelisa 02de0e02bb76744ef1cfb737d34c320b2ab902c0 nicolelisa b75b7170e7b937f0934a9081fd01a6f2e5f478d9 nicolelisa c45235513c64e981a8975798330e75d7565a1dfc nicolelisa 525f146eeaf2c87768cb832f4bcd7fa90d6d622a nicolelisa 55b3e8a7e15653f2b679ff41eb0795fcb6e654f8 nicolelisa cbd4262bc517a427c4846d72804d1847c8d2559c nicolelisa cc57a6f030109ca9f5beb988d93d59e1a36cea96 nicolelisa f813e9ca16f3463a156c8ceab92088051ec158a2 nicolelisa 3844b6180b6ca9bb24d3f85c36733e447771e93a nicolelisa 02de0e02bb76744ef1cfb737d34c320b2ab902c0 nicolelisa b75b7170e7b937f0934a9081fd01a6f2e5f478d9 nicolelisa 5cc736b51aac899ba629e485453a1a81dcae69e1 nicolelisa - Diff:
-
Revision 6 (+531 -83)
Checks run (2 succeeded)
- Summary:
-
Review UI for JSON files - WIPWIP: Review UI for JSON files
- Commits:
-
Summary ID Author 525f146eeaf2c87768cb832f4bcd7fa90d6d622a nicolelisa 55b3e8a7e15653f2b679ff41eb0795fcb6e654f8 nicolelisa cbd4262bc517a427c4846d72804d1847c8d2559c nicolelisa cc57a6f030109ca9f5beb988d93d59e1a36cea96 nicolelisa f813e9ca16f3463a156c8ceab92088051ec158a2 nicolelisa 3844b6180b6ca9bb24d3f85c36733e447771e93a nicolelisa 02de0e02bb76744ef1cfb737d34c320b2ab902c0 nicolelisa b75b7170e7b937f0934a9081fd01a6f2e5f478d9 nicolelisa 5cc736b51aac899ba629e485453a1a81dcae69e1 nicolelisa 525f146eeaf2c87768cb832f4bcd7fa90d6d622a nicolelisa 55b3e8a7e15653f2b679ff41eb0795fcb6e654f8 nicolelisa cbd4262bc517a427c4846d72804d1847c8d2559c nicolelisa cc57a6f030109ca9f5beb988d93d59e1a36cea96 nicolelisa f813e9ca16f3463a156c8ceab92088051ec158a2 nicolelisa 3844b6180b6ca9bb24d3f85c36733e447771e93a nicolelisa 02de0e02bb76744ef1cfb737d34c320b2ab902c0 nicolelisa b75b7170e7b937f0934a9081fd01a6f2e5f478d9 nicolelisa 5cc736b51aac899ba629e485453a1a81dcae69e1 nicolelisa 37fc47024f5810f58d509d1b764c57f7e18f1c72 nicolelisa - Diff:
-
Revision 7 (+873 -87)
- Commits:
-
Summary ID Author 525f146eeaf2c87768cb832f4bcd7fa90d6d622a nicolelisa 55b3e8a7e15653f2b679ff41eb0795fcb6e654f8 nicolelisa cbd4262bc517a427c4846d72804d1847c8d2559c nicolelisa cc57a6f030109ca9f5beb988d93d59e1a36cea96 nicolelisa f813e9ca16f3463a156c8ceab92088051ec158a2 nicolelisa 3844b6180b6ca9bb24d3f85c36733e447771e93a nicolelisa 02de0e02bb76744ef1cfb737d34c320b2ab902c0 nicolelisa b75b7170e7b937f0934a9081fd01a6f2e5f478d9 nicolelisa 5cc736b51aac899ba629e485453a1a81dcae69e1 nicolelisa 37fc47024f5810f58d509d1b764c57f7e18f1c72 nicolelisa 525f146eeaf2c87768cb832f4bcd7fa90d6d622a nicolelisa 55b3e8a7e15653f2b679ff41eb0795fcb6e654f8 nicolelisa cbd4262bc517a427c4846d72804d1847c8d2559c nicolelisa cc57a6f030109ca9f5beb988d93d59e1a36cea96 nicolelisa f813e9ca16f3463a156c8ceab92088051ec158a2 nicolelisa 3844b6180b6ca9bb24d3f85c36733e447771e93a nicolelisa 02de0e02bb76744ef1cfb737d34c320b2ab902c0 nicolelisa b75b7170e7b937f0934a9081fd01a6f2e5f478d9 nicolelisa 5cc736b51aac899ba629e485453a1a81dcae69e1 nicolelisa 8b59fe2b4920c1776af77304d0a0e49c40fcf1ad nicolelisa - Diff:
-
Revision 8 (+869 -87)
Checks run (2 succeeded)
- Commits:
-
Summary ID Author 525f146eeaf2c87768cb832f4bcd7fa90d6d622a nicolelisa 55b3e8a7e15653f2b679ff41eb0795fcb6e654f8 nicolelisa cbd4262bc517a427c4846d72804d1847c8d2559c nicolelisa cc57a6f030109ca9f5beb988d93d59e1a36cea96 nicolelisa f813e9ca16f3463a156c8ceab92088051ec158a2 nicolelisa 3844b6180b6ca9bb24d3f85c36733e447771e93a nicolelisa 02de0e02bb76744ef1cfb737d34c320b2ab902c0 nicolelisa b75b7170e7b937f0934a9081fd01a6f2e5f478d9 nicolelisa 5cc736b51aac899ba629e485453a1a81dcae69e1 nicolelisa 8b59fe2b4920c1776af77304d0a0e49c40fcf1ad nicolelisa 525f146eeaf2c87768cb832f4bcd7fa90d6d622a nicolelisa 55b3e8a7e15653f2b679ff41eb0795fcb6e654f8 nicolelisa cbd4262bc517a427c4846d72804d1847c8d2559c nicolelisa cc57a6f030109ca9f5beb988d93d59e1a36cea96 nicolelisa f813e9ca16f3463a156c8ceab92088051ec158a2 nicolelisa 3844b6180b6ca9bb24d3f85c36733e447771e93a nicolelisa 02de0e02bb76744ef1cfb737d34c320b2ab902c0 nicolelisa b75b7170e7b937f0934a9081fd01a6f2e5f478d9 nicolelisa 5cc736b51aac899ba629e485453a1a81dcae69e1 nicolelisa 38f1e834099efeb290f7cde48e437f994dd0c91b nicolelisa - Diff:
-
Revision 9 (+881 -87)
- Commits:
-
Summary ID Author 525f146eeaf2c87768cb832f4bcd7fa90d6d622a nicolelisa 55b3e8a7e15653f2b679ff41eb0795fcb6e654f8 nicolelisa cbd4262bc517a427c4846d72804d1847c8d2559c nicolelisa cc57a6f030109ca9f5beb988d93d59e1a36cea96 nicolelisa f813e9ca16f3463a156c8ceab92088051ec158a2 nicolelisa 3844b6180b6ca9bb24d3f85c36733e447771e93a nicolelisa 02de0e02bb76744ef1cfb737d34c320b2ab902c0 nicolelisa b75b7170e7b937f0934a9081fd01a6f2e5f478d9 nicolelisa 5cc736b51aac899ba629e485453a1a81dcae69e1 nicolelisa 38f1e834099efeb290f7cde48e437f994dd0c91b nicolelisa 53b7ac8f5688c3fe3efaa270e7d924ee2ef26ff6 nicolelisa 6a2394880a868f7cbf92e3ea65c4132d34f6ac11 nicolelisa 1efa4ef808c3cbc66f73780657e16e9962f6a764 nicolelisa a2d5c2dc8a52a2a3285724f3614c0adb3af9a31f nicolelisa 2e14e0e95f43dbf775fb5d9af969c7b56a89652e nicolelisa 9fdf3e00a79c019df3dbce99b7f90284c4142320 nicolelisa a1f582af7a35db5ae77795b8050bd2e2be987aca nicolelisa e01d17ed24a699577d3ec3619d5ed0bf40f6f6e6 nicolelisa 61e191c3427b67cef2b30aaab11ed1c6d8c56c33 nicolelisa b86b0e1713a13e2e3f5a44c9714cefcc06bf6f2f nicolelisa c2af08ff6c81982919a7f59cf6fc17d16ff8fdac nicolelisa 6cdb46b8ef4c03b4f99f4c82fd7275d7c47d785c nicolelisa - Diff:
-
Revision 10 (+1043 -157)
- Commits:
-
Summary ID Author 53b7ac8f5688c3fe3efaa270e7d924ee2ef26ff6 nicolelisa 6a2394880a868f7cbf92e3ea65c4132d34f6ac11 nicolelisa 1efa4ef808c3cbc66f73780657e16e9962f6a764 nicolelisa a2d5c2dc8a52a2a3285724f3614c0adb3af9a31f nicolelisa 2e14e0e95f43dbf775fb5d9af969c7b56a89652e nicolelisa 9fdf3e00a79c019df3dbce99b7f90284c4142320 nicolelisa a1f582af7a35db5ae77795b8050bd2e2be987aca nicolelisa e01d17ed24a699577d3ec3619d5ed0bf40f6f6e6 nicolelisa 61e191c3427b67cef2b30aaab11ed1c6d8c56c33 nicolelisa b86b0e1713a13e2e3f5a44c9714cefcc06bf6f2f nicolelisa c2af08ff6c81982919a7f59cf6fc17d16ff8fdac nicolelisa 6cdb46b8ef4c03b4f99f4c82fd7275d7c47d785c nicolelisa 53b7ac8f5688c3fe3efaa270e7d924ee2ef26ff6 nicolelisa 6a2394880a868f7cbf92e3ea65c4132d34f6ac11 nicolelisa 1efa4ef808c3cbc66f73780657e16e9962f6a764 nicolelisa a2d5c2dc8a52a2a3285724f3614c0adb3af9a31f nicolelisa 2e14e0e95f43dbf775fb5d9af969c7b56a89652e nicolelisa 9fdf3e00a79c019df3dbce99b7f90284c4142320 nicolelisa a1f582af7a35db5ae77795b8050bd2e2be987aca nicolelisa e01d17ed24a699577d3ec3619d5ed0bf40f6f6e6 nicolelisa 61e191c3427b67cef2b30aaab11ed1c6d8c56c33 nicolelisa b86b0e1713a13e2e3f5a44c9714cefcc06bf6f2f nicolelisa c2af08ff6c81982919a7f59cf6fc17d16ff8fdac nicolelisa 7a62deaed181d3191745b6e1e10e0a063d4d1fc5 nicolelisa - Diff:
-
Revision 11 (+1045 -161)
Checks run (2 succeeded)
- Commits:
-
Summary ID Author 53b7ac8f5688c3fe3efaa270e7d924ee2ef26ff6 nicolelisa 6a2394880a868f7cbf92e3ea65c4132d34f6ac11 nicolelisa 1efa4ef808c3cbc66f73780657e16e9962f6a764 nicolelisa a2d5c2dc8a52a2a3285724f3614c0adb3af9a31f nicolelisa 2e14e0e95f43dbf775fb5d9af969c7b56a89652e nicolelisa 9fdf3e00a79c019df3dbce99b7f90284c4142320 nicolelisa a1f582af7a35db5ae77795b8050bd2e2be987aca nicolelisa e01d17ed24a699577d3ec3619d5ed0bf40f6f6e6 nicolelisa 61e191c3427b67cef2b30aaab11ed1c6d8c56c33 nicolelisa b86b0e1713a13e2e3f5a44c9714cefcc06bf6f2f nicolelisa c2af08ff6c81982919a7f59cf6fc17d16ff8fdac nicolelisa 7a62deaed181d3191745b6e1e10e0a063d4d1fc5 nicolelisa 4902e455577db34ce9f1b2301adba949ca2b492f nicolelisa 60548d031592e5e94da2081a59d83605d3d6abe0 nicolelisa
Checks run (2 succeeded)
- Summary:
-
WIP: Review UI for JSON filesReview UI for JSON files
- Description:
-
~ modified json file
~ Create a prettified JSON rendered version and a custom Review UI for JSON files.
- jsonui file created - create json specific page - Add JsonLexer - Add prettified version of JSON files to rendered - - Currently an issue with diff for file attachments.