Repository navigation
Remove dead code, unused files and outdated build docs (#335) - #347
Merged
Merged
Conversation
- routes: page#do_echo (no such method) and ajax#index (empty method) - files: img/void.png, img/tiny-loader.gif, templates/settings/index.php (old interface, unused) - methods: AjaxController::index/isUserAdmin, TimelineMapper::findByStatus, UserToClientMapper::findAllForUser, UserToProjectMapper::findAllForUser - commented-out debug code - Makefile: only the targets in use (build, appstore, test, test-integration with the server's PHPUnit as in CI, clean); no gmake/gtar, no downloading of Composer and PHPUnit - README: current development setup and tests instead of bower/gulp No behaviour change. Fixes #335 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The previous commit removed findByStatus() and the two findAllForUser() methods but left their doc comments behind. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Build the frontend in a subshell so the working directory doesn't change, mention make as the alternative, and run occ from the Nextcloud root as the web server user (with a Docker/AIO example). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #335. No behaviour change.
Removed
page#do_echo(POST /echo)ajax#index+ emptyAjaxController::index()img/void.png,img/tiny-loader.giftemplates/settings/index.phpAjaxController::isUserAdmin(),TimelineMapper::findByStatus(),UserToClientMapper::findAllForUser(),UserToProjectMapper::findAllForUser()lib/ortests/var_dump,echo,//$this->endTimer()Makefile
Rewritten with only the targets in use, keeping the original licence header:
make/make build: frontend intojs/dist;make appstore: unchanged;make test: unit tests;make test-integration: now uses the server's PHPUnit (../../vendor-bin/phpunit), as CI does. Before it used the app's PHPUnit 10, which doesn't fit the server's test classes, and its comment said CI doesn't run integration tests;make clean.Removed:
gmake/gtar, downloading Composer and PHPUnit from the web, thesource/dist/distcleantargets, andphp-8.2as a hard-coded PHP binary.README
npm ci && npm run build,occ app:enable) and on the tests (unit, integration, phpstan, lint, plus what CI runs)..git).The spot where #326 adds its "Features and clients" section is untouched, so both merge without conflict.
Testing
make testworks too); phpstan and lint are clean.make appstorebuilds the archive; underimg/it now contains onlyapp.svg.🤖 Generated with Claude Code