Add mimetype for ReStructuredText
Summary
Mimetype for re structured text. It is aliased to text.
There is no official mimetype for .rst files so text/plain can also work here.
Checklist
- Code is properly formatted
- Sign-off message is added to all commits
If you want to update the mime type for files already existing in oc_filecache an additional change for lib/private/Repair/RepairMimeTypes.php is necessary.
Example: https://github.com/nextcloud/server/pull/41395/files#diff-f89544ac76d4f0e2cd70b4979d625b3992a72fa26c6f0b5fe92ec0364b9716e9
I had assumed repair was a file preview thing. Added it now, thanks for the explanation.
Do the changes in tests/data/integritycheck/mimetypeListModified/core/js/mimetypelist.js also need to be pushed?
I had assumed repair was a file preview thing. Added it now, thanks for the explanation. Do the changes in
tests/data/integritycheck/mimetypeListModified/core/js/mimetypelist.jsalso need to be pushed?
Yep.
There should be a brief inline description in CheckerTest how to update it properly.
The CheckerTest did not update the core/js/mimetypelist.js file, which was updated with ./occ maintenance:mimetype:update-js as mentioned in the file.
Possible performance regression detected
Show Output
564 queries added
= /remote.php/dav/files/test
= /remote.php/dav/files/test/test.txt
= /remote.php/dav/files/test/many_files
= /remote.php/dav/files/test/new_file.txt
= /remote.php/dav/files/test/new_file.txt
= /remote.php/dav/files/test
= /remote.php/dav/files/test/test.txt
= /remote.php/dav/files/test/many_files
= /remote.php/dav/files/test/new_file.txt
= /remote.php/dav/files/test/new_file.txt
+ /remote.php/dav/files/test added with 45 queries
+ /remote.php/dav/files/test/test.txt added with 33 queries
+ /remote.php/dav/files/test/many_files added with 46 queries
+ /remote.php/dav/files/test/new_file.txt added with 67 queries
+ /remote.php/dav/files/test/new_file.txt added with 91 queries
+ /remote.php/dav/files/test added with 45 queries
+ /remote.php/dav/files/test/test.txt added with 33 queries
+ /remote.php/dav/files/test/many_files added with 46 queries
+ /remote.php/dav/files/test/new_file.txt added with 67 queries
+ /remote.php/dav/files/test/new_file.txt added with 91 queries
Conflicts @kyteinsky