Skip to content

Conversation

@habibie11
Copy link
Contributor

@habibie11 habibie11 commented Dec 10, 2025

issue terkait #872

penyesuaian api satudata https://github.com/OpenSID/API-Database-Gabungan/pull/281

Fitur Modul Artikel

image image image

Penambahan Fitur

  • CRUD Artikel: Implementasi lengkap untuk membuat, membaca, mengupdate, dan menghapus artikel
  • Upload Gambar: Fitur upload gambar utama artikel dengan preview
  • Rich Text Editor: Integrasi TinyMCE untuk pengeditan konten artikel
  • Kategori Artikel: Dropdown kategori terintegrasi dengan API
  • Status Artikel: Toggle aktif/tidak aktif untuk setiap artikel
  • DataTables: Tampilan daftar artikel dengan pagination, sorting, dan pencarian server-side

File yang Ditambahkan

  1. Controller:

    • ArtikelKabupatenController.php - Handle routing view (index, create, edit)
    • ArtikelUploadController.php - Handle upload gambar artikel
  2. Service:

    • ArtikelService.php - Service layer dengan caching untuk API artikel
  3. Views:

    • index.blade.php - Daftar artikel dengan DataTables
    • create.blade.php - Form tambah artikel baru
    • edit.blade.php - Form edit artikel
  4. Migration:

    • Penambahan menu "Artikel" di sidebar (setelah menu Kategori Artikel)
    • Sync permission master-data-artikel ke semua role

Integrasi API

  • GET /api/v1/artikel/list - List artikel dengan pagination
  • GET /api/v1/artikel/tampil - Detail artikel by ID
  • POST /api/v1/artikel/buat - Buat artikel baru
  • PUT /api/v1/artikel/perbarui/{id} - Update artikel
  • DELETE /api/v1/artikel/hapus/{id} - Hapus artikel

Fitur Teknis

  • Caching artikel dengan TTL 1 jam
  • Clear cache otomatis setelah update
  • Validasi form client-side dan server-side
  • Authorization dengan permission master-data-artikel
  • Upload file dengan validasi (max 2MB, format jpg/jpeg/png/gif)

@habibie11
Copy link
Contributor Author

terkait fitur ini kemungkinan perlu ada penyesuaian di OpenSID :

  • sesuaikan agar tidak bisa dihapus dan edit khusus artikel dari OpenKab
  • gambar artikel di halaman depan (gambar langsung menggunakan url dari openkab)
  • sesuaikan di halaman artikel agar artikel yang dibuat dari openkab tampil (saat ini artikel dengan config_id null adalah dari openkab)

cc mas @vickyrolanda @hasanlq69 @andifahruddinakas

@habibie11
Copy link
Contributor Author

habibie11 commented Dec 15, 2025

penyesuaian di OpenSID sedang diproses di PR https://github.com/OpenSID/premium/pull/5704

@habibie11 habibie11 changed the title modul artikel opensid Penambahan Modul Artikel OpenSID Dec 15, 2025
@habibie11
Copy link
Contributor Author

sebelum test pastikan semua migrasi di aplikasi OpenSID dan Database gabungan sudah berjalan.

cc mas @vickyrolanda

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants