DevHeads.net

com web/bugs: Refactor patches uploading: README.md include/classes/bug_patchtracker.php include/functions.php src/Repository/ObsoletePatchRepository.php src/Repository/PatchRepository.php src/Utils/PatchTracker.php src/Utils/Uploader.php

Link: <a href="http://git.php.net/?p=web/bugs.git;a=commitdiff;h=8ab9a1d1103117a6a185262ebeadba6c2595dcd4" title="http://git.php.net/?p=web/bugs.git;a=commitdiff;h=8ab9a1d1103117a6a185262ebeadba6c2595dcd4">http://git.php.net/?p=web/bugs.git;a=commitdiff;h=8ab9a1d1103117a6a18526...</a>

Log:
Refactor patches uploading

This patch moves patches uploading functionality from the outdated
HTTP_Upload package to a dedicated service class in the app.

Additional changes in this context:
- Functionality concerning retrieving patches data from database has
been moved to a separate repository classes.
- Some missed bugs fixed when uploading patches and no developer info
were recorded.
- Obsoleting patches functionality is now working again.
- Added a simple unit test.

Changed paths:
M README.md
D include/classes/bug_patchtracker.php
M include/functions.php
A src/Repository/ObsoletePatchRepository.php
A src/Repository/PatchRepository.php
A src/Utils/PatchTracker.php
A src/Utils/Uploader.php
M templates/addpatch.php
A tests/Utils/UploaderTest.php
A tests/fixtures/files/patch.txt
M www/bug.php
M www/patch-add.php
M www/patch-display.php
M www/report.php