Fix parameter query tidak diteruskan pada getAllPoint - #1285
Open
pandigresik wants to merge 1 commit into
Open
pandigresik wants to merge 1 commit into
pandigresik wants to merge 1 commit into
Conversation
|
🔄 AI PR Review sedang antri di server...
|
pandigresik
force-pushed
the
fix/point_detail
branch
from
September 8, 2026 06:43
aa061ea to
2910520
Compare
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.
Description
Method
getAllPointdiPemetaanServicetidak meneruskan parameter$queryke methodapiRequest, sehingga filter, pagination, dan parameter lainnya diabaikan saat mengambil data point. Perbaikan menambahkan parameter$querypada pemanggilanapiRequest.Changes made:
$querypada pemanggilan$this->apiRequest('/api/v1/point', $query)di methodgetAllPointpadaapp/Services/PemetaanService.phpReason for change:
getAllPointmenerima parameter$querytetapi tidak diteruskan keapiRequest, menyebabkan filter dan parameter lainnya tidak sampai ke APIImpact of change:
✅ Query Parameter: Parameter filter, pagination, dan search sekarang diteruskan ke API dengan benar
✅ Data Point: Data point yang dikembalikan sesuai dengan filter yang diminta
✅ Fitur Pemetaan: Fitur yang menggunakan
getAllPointdengan filter berfungsi normalRelated Issue
Closes #1279
#1279
Steps to Reproduce
Before fix (problem):
getAllPointdengan parameter query (filter, pagination)After fix (solution):
getAllPointdengan parameter query (filter, pagination)Testing on related features:
Checklist
Technical Details
Technical Explanation
Perubahan pada method
getAllPointdiapp/Services/PemetaanService.php:public function getAllPoint(array $query = []) { - return $this->apiRequest('/api/v1/point'); + return $this->apiRequest('/api/v1/point', $query); }Konteks:
getAllPointmendefinisikan parameter$querytetapi tidak menggunakannyaBaseApiService::apiRequest()menerima parameter kedua sebagai query parameters$query, semua filter/pagination diabaikanConfiguration changes
None
Dependencies added
No new dependencies
Testing
Manual Testing
getAllPoint()tanpa parameter - harus mengembalikan semua datagetAllPoint(['filter' => 'value'])- harus mengembalikan data yang ter-filtergetAllPoint(['page' => 1])- harus mengembalikan data pagination yang benarScreenshots / Video
simplescreenrecorder-2026-09-08_13.38.46.mp4
Breaking Changes
None
Migration Guide
Not required
References
Additional notes: Perubahan minimalis (1 baris) - memastikan parameter query diteruskan ke API saat mengambil data point.