Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

[WIP] Refactory & Enhancement #96

Open
wants to merge 45 commits into
base: develop
Choose a base branch
from

Conversation

feryardiant
Copy link
Member

@feryardiant feryardiant commented Apr 28, 2017

Perubahan

  • Tidak lagi menggunakan folder www sebagai document root & menambahkan folder asset untuk menampung semua file CSS, JS, Fonts & Images.
  • Mengubah codebase, detail perubahan bisa dilihat di tiap commit message.
  • Penggunaan file .env untuk setting dasar. Meminimalisir terjadinya konflik ketika ada perubahan atau penambahan key di file app/settings.php.

Perbaikan

  • Memperbaiki mailer (terkait SMTP connect() failed after member registration #94), disini mailer akan kita ubah dari sebelumnya menggunakan postmark (SMTP) ke sparkpost (ReST API) dimana kelebihan utama dari penggunaan ReST API adalah proses pengiriman email dibebankan ke provider, bukan server production. Selain itu sparkpost juga menawarkan fitur mail marketing secara gratis jadi jika nantinya kita butuh untuk bulk email dapat di-handle oleh sparkpost dengan lebih efisien.
  • Optimasi tampilan pada mobile (terkait Style Issue #80)

Penambahan (Experimental)

  • Optimasi static asset (CSS, JS & Image) dengan tools. Opsi sementara adalah gulp atau webpack.
  • Menggunakan heroku sebagai staging sekaligus meng-enable fitur review, memungkinkan tiap pull request (nantinya) akan ada online demo yang di generate otomatis oleh heroku.
  • Menyediakan testing, walaupun tidak semuanya akan di test tapi setidaknya kita punya fitur ini untuk memastikan berjalan semestinya.

* develop:
  Fix notfound routes: - Throw NotFoundException if profile not found, - Experimentaly add custom json request
  Fix missing request method
  Fix missing route
  BC contained updates: - Rename JS files based on its functionalities and make membership.js as central API, - Update routes on Account Skills and Portfolios, make it more convenience to interact with its API, - Add new 'formInputMethod' method in view extension, help method override, - Some updates according changes above.
  Change CSS and JS indentation under www folder to 2 spaces
  Fix ajax city on register page, as per phpindonesia#65
  menghilangkan validasi email pada nama perusahaan
  ajax select city
  Fix error
* develop:
  Add request json filter
* develop:
  - Fix docblocks
  - Refactor Slim\Container injection in class __construct to ContainerAware trait
  - Concat all middlewares into single class and simplify its usage
Signed-off-by: Fery Wardiyanto <[email protected]>
* develop:
  Update www/.htaccess
  Update dependencies
Signed-off-by: Fery Wardiyanto <[email protected]>
Signed-off-by: Fery Wardiyanto <[email protected]>
Signed-off-by: Fery Wardiyanto <[email protected]>
Signed-off-by: Fery Wardiyanto <[email protected]>
Signed-off-by: Fery Wardiyanto <[email protected]>
Signed-off-by: Fery Wardiyanto <[email protected]>
Signed-off-by: Fery Wardiyanto <[email protected]>
Signed-off-by: Fery Wardiyanto <[email protected]>
Signed-off-by: Fery Wardiyanto <[email protected]>
Signed-off-by: Fery Wardiyanto <[email protected]>
Signed-off-by: Fery Wardiyanto <[email protected]>
Signed-off-by: Fery Wardiyanto <[email protected]>
Signed-off-by: Fery Wardiyanto <[email protected]>
Signed-off-by: Fery Wardiyanto <[email protected]>
Signed-off-by: Fery Wardiyanto <[email protected]>
@okaprinarjaya
Copy link
Member

Reviewing

@feryardiant
Copy link
Member Author

Thanks om @okaprinarjaya, ada ide apa aja yang perlu dibenahi lagi?

@okaprinarjaya
Copy link
Member

Saya matur suwuunn bangett kepada om @feryardiant , sudah meluangkan waktunya.
apakah ada ide lagi? saya pikir cukup, item-item di section Penambahan (Experimental) adalah ide-ide yg cukup besar dan harus digiring supaya terimplementasi.

Silahkan di-merge om, saya gak berani merge, karena om Fery yg lebih tau apakah PR ini sudah complete atau belom. Atau apakah ada yg butuh ditambahkan lg saya sementara belum tahu.

@feryardiant
Copy link
Member Author

Sami-sami om @okaprinarjaya, kebetulan mumpung saya ada waktu luang weekend ini jadi saya optimalkan untuk ngurusin repo ini (yang sudah saya terlantarkan cukup lama, hiks 😢).

Sementara PR ini masih berstatus WIP & masih ada TODO yang belum selesai tidak akan saya merge dulu sampai saya rasa sudah benar-benar siap. 🥂

@herloct
Copy link

herloct commented May 1, 2017

Menurut ane yg paling penting itu testing-nya dulu oom. Mungkin tepatnya functional atau acceptance testing-nya kali ya, kalo unit atau integration test kayanya rada mubazir kalo liat codebase yg sekarang.

Kalo boleh saran juga, sebaiknya bertahap, sedikit2 langsung​ di-pr n merge, dibanding nunggu banyak n langsung merge sekaligus.
Misal pr pertama ubah struktur direktori, selesai langsung merge.
Trus pr buat functional/acceptance testing, selesai langsung merge.

@herloct
Copy link

herloct commented May 1, 2017

Memperbaiki mailer (terkait #94)...

Yg ini ga langsung di-merge aja oom?

@feryardiant
Copy link
Member Author

Saya perlu memastikan semua todo disini sudah saya selesaikan dulu & maaf kalo mungkin akan sedikit makan waktu.

Saya juga masih ada kendala di salah satu penambahan (eksperimental) fitur yaitu penggunaan Heroku Review App yaitu heroku/heroku-buildpack-php#227

Signed-off-by: Fery Wardiyanto <[email protected]>
- [x] Validates all request thru request object,
- [x] Validation rules defined on model class,
- [x] Add new transaction method on Database class to handle transaction easily,
- [x] Some additional updates due to changes above

Signed-off-by: Fery Wardiyanto <[email protected]>
Signed-off-by: Fery Wardiyanto <[email protected]>
Signed-off-by: Fery Wardiyanto <[email protected]>
Signed-off-by: Fery Wardiyanto <[email protected]>
@feryardiant
Copy link
Member Author

Mailer done thru Sparkpost.

image

Tinggal bershi-bersih yang lain.. 🎉 🎉 🥂

Signed-off-by: Fery Wardiyanto <[email protected]>
Signed-off-by: Fery Wardiyanto <[email protected]>
Signed-off-by: Fery Wardiyanto <[email protected]>
Signed-off-by: Fery Wardiyanto <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants