Contents with mimetype starting with application/ but with
no detected programming language were not processed for
display but they can be regular text files.
Closes T3486
Paths
| Differential D6107 Authored by anlambert on Aug 17 2021, 3:30 PM.
Details
Summary Contents with mimetype starting with application/ but with Closes T3486 Test Plan This was really an edge case, nevertheless I have updated tests
Diff Detail
Event TimelineHerald added a reviewer: Reviewers. · View Herald TranscriptAug 17 2021, 3:30 PM2021-08-17 15:30:16 (UTC+2) Comment Actions Build has FAILED Patch application report for D6107 (id=22092)Rebasing onto ddfb988db5... Current branch diff-target is up to date. Changes applied before testcommit 1ea3704d673e7945ad12d70090872db06db08791 Author: Antoine Lambert <anlambert@softwareheritage.org> Date: Tue Aug 17 15:24:44 2021 +0200 browse/utils: Fix edge case in prepare_content_for_display Contents with mimetype starting with application/ but with no detected programming language were not processed for display but they can be regular text files. Closes T3486 Link to build: https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/1002/ Harbormaster returned this revision to the author for changes because remote builds failed.Aug 17 2021, 3:49 PM2021-08-17 15:49:03 (UTC+2) Comment Actions Build is green Patch application report for D6107 (id=22094)Rebasing onto ddfb988db5... Current branch diff-target is up to date. Changes applied before testcommit c9d89d93b7dfb8812f02f7d2bbafa27aed152035 Author: Antoine Lambert <anlambert@softwareheritage.org> Date: Tue Aug 17 15:24:44 2021 +0200 browse/utils: Fix edge case in prepare_content_for_display Contents with mimetype starting with application/ but with no detected programming language were not processed for display but they can be regular text files. Closes T3486 See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/1004/ for more details. Harbormaster completed remote builds in B23051: Diff 22094.Aug 17 2021, 5:11 PM2021-08-17 17:11:30 (UTC+2) This revision is now accepted and ready to land.Aug 18 2021, 11:12 AM2021-08-18 11:12:17 (UTC+2) Closed by commit rDWAPPSc9d89d93b7df: browse/utils: Fix edge case in prepare_content_for_display (authored by anlambert). · Explain WhyAug 18 2021, 12:05 PM2021-08-18 12:05:59 (UTC+2) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 22112 swh/web/browse/utils.py
swh/web/templates/includes/content-display.html
swh/web/tests/browse/views/test_content.py
swh/web/tests/data.py
|