forked from flipboxstudio/tech-handbook
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Task/update panduan web development #7
Open
shani-asad
wants to merge
11
commits into
master
Choose a base branch
from
task/update-panduan-web-development
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
9119b4d
Update README.md
htjuliantara f919977
[UPDATE] Use trello for issue number
3a952b3
[ADD] Commit message for code linter
d20a861
[ADD] docs, perf, style, and refactor tag
agungroyat 9db6f19
[DOCS] Fix whitespace difference
agungroyat d897ddc
[ADD] pull request template and example
agungroyat a7b3e3a
Merge pull request #3 from medigoid/update-readme-to-trello
aqidd 5363bc8
update panduan web development
3d6eac0
update link
9fcd3ab
mode changes to programming concepts
bdb850d
Merge branch 'develop' of github.com:klinikpintar/tech-handbook into …
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,14 +27,21 @@ Dalam proses _Pull Request_ ini terdapat tiga peran utama, yakni: | |
|
||
Pilihan nama *branch* yang dapat digunakan adalah | ||
|
||
- **story**/[nomor redmine] [deskripsi] | ||
- **story**/[nomor trello]-[deskripsi] | ||
|
||
> Untuk *Story* yang dirasa terlalu besar, pecah ke dalam *Task* yang lebih kecil untuk kemudian di merge ke *branch* `story` sebelum melakukan *Pull Request* ke *branch* `develop` | ||
|
||
- **task**/[nomor redmine] [deskripsi] | ||
- **improvement**/[nomor redmine] [deskripsi] | ||
- **bug**/[nomor redmine] [deskripsi] | ||
- **hotfix**/[nomor redmine] [deskripsi] | ||
- **task**/[nomor trello]-[deskripsi] | ||
- **improvement**/[nomor trello]-[deskripsi] | ||
- **bugfix**/[nomor trello]-[deskripsi] | ||
- **hotfix**/[nomor trello]-[deskripsi] | ||
|
||
Contoh: | ||
|
||
- task/TQ-091-post-schedule-to-medigo-webhook | ||
- improvement/w-165-use-promise-all-to-get-schedules-api | ||
- bugfix/w-150-slot-number-is-undefined | ||
- hotfix/w-199-health-center-config-not-loaded | ||
|
||
**Notes** | ||
|
||
|
@@ -46,11 +53,122 @@ Untuk repository yang tidak akan mengalami banyak pengembangan ( one and done ), | |
|
||
### Konsep Git | ||
|
||
- Gunakan pesan *commit* yang relevan dan masukkan *tag* yang sesuai. | ||
- [ADD] deskripsi penambahan berkas yang dilakukan | ||
- [UPDATE] deskripsi *update* yang dilakukan | ||
- Gunakan pesan *commit* yang relevan dan masukkan *tag* yang sesuai. | ||
- [DOCS] deskripsi perubahan pada dokumentasi | ||
- [ADD] deskripsi penambahan fitur yang dilakukan | ||
- [UPDATE] deskripsi *update* yang dilakukan pada fitur yang ada | ||
- [FIX] deskripsi perbaikan yang dilakukan | ||
- [PERF] deskripsi perubahan yang meningkatkan *performance* | ||
- [STYLE] deskripsi perapian code sesuai *standard* yang dilakukan | ||
- [REFACTOR] deskripsi code yang diubah tetapi bukan perbaikan atau penambahan fitur | ||
- [Git Cheatsheet](https://www.git-tower.com/blog/git-cheat-sheet/) | ||
- [Rewrite Commit History](https://git-scm.com/book/id/v2/Git-Tools-Rewriting-History) | ||
- [Squash Published Commits](https://stackoverflow.com/questions/5667884/how-to-squash-commits-in-git-after-they-have-been-pushed) | ||
|
||
### Ketentuan *Pull Request* | ||
|
||
*Template* yang digunakan untuk membuat *pull request* (dalam format markdown) adalah | ||
|
||
#### ISSUE LINK | ||
|
||
Berisi tautan *Trello card* yang berkaitan dengan perubahan yang dilakukan. | ||
|
||
#### WHAT TO TEST | ||
|
||
Apa saja yang perlu dites untuk memastikan fitur baru atau perbaikan fitur berjalan dengan baik. | ||
|
||
#### EXPECTATION | ||
|
||
Daftar apa saja yang perlu diperiksa yang dijadikan patokan bahwa fitur berjalan sebagaimana mestinya. | ||
|
||
#### HOW | ||
|
||
Berisi langkah-langkah mengenai bagaimana cara QA mereproduksi *state* fitur agar bisa melakukan *review* *pull request* tanpa kendala seperti setup, inisialisasi database, software yang perlu di-*install*, dll. | ||
|
||
#### ADDITIONAL NOTES | ||
|
||
Berisi catatan tambahan atau hal-hal pendukung yang perlu diketahui oleh QA dalam melakukan *review*. Biasanya aset atau *file* yang harus di-*download*, ketergantungan *pull request* di repositori ini dengan *pull request* di repositori lain, dll. | ||
|
||
--- | ||
|
||
Contoh: | ||
|
||
#### ISSUE LINK | ||
|
||
https://trello.com/c/uPka4Ic7 | ||
|
||
#### WHAT TO TEST | ||
|
||
##### GET POSTS API | ||
|
||
Send request to endpoint `GET /api/posts` and give query params as following: | ||
|
||
| Key | Value | | ||
|-----------------|-----------------| | ||
| `category_slug` | `dinosaur` | | ||
| `page` | `1` | | ||
|
||
#### EXPECTATION | ||
|
||
- [ ] Returns status code 200 OK | ||
- [ ] Returns object like this | ||
|
||
```json | ||
{ | ||
"data": [ | ||
{ | ||
"id": 1, | ||
"title": "What's my favorite dinosaur? I like any dinosaur that wants to worship my problems", | ||
"excerpt": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam ac lectus dolor. Donec enim tortor, cursus interdum facilisis quis, aliquam ac ipsum. Sed malesuada lacinia molestie. In non diam massa. Duis viverra dictum risus, at pretium erat. Morbi a diam faucibus, placerat lectus nec, dapibus lectus. Donec id massa urna.", | ||
"image": "http://localhost:8002/storage/posts/2020-01/iPZcSQJfvroaMobBoYcX.png", | ||
"link": "http://localhost:8002/blog/whats-my-favorite-dinosaur-i-like-any-dinosaur-that-wants-to-worship-my-problems", | ||
"meta_description": "Amtocephale Pamparaptor Daxiatitan Kundurosaurus Carcharodontosaurus Shuosaurus Unaysaurus Shenzhouraptor Lexovisaurus Bradycneme.", | ||
"meta_keywords": "cephale, raptor, saurus, bradycneme, titan", | ||
"created_at": { | ||
"date": "2020-01-20 08:00:10.000000", | ||
"timezone_type": 3, | ||
"timezone": "UTC" | ||
} | ||
} | ||
], | ||
"links": { | ||
"first": "http://localhost:8002/api/posts?page=1", | ||
"last": "http://localhost:8002/api/posts?page=1", | ||
"prev": null, | ||
"next": null | ||
}, | ||
"meta": { | ||
"current_page": 1, | ||
"from": 1, | ||
"last_page": 1, | ||
"path": "http://localhost:8002/api/posts", | ||
"per_page": 5, | ||
"to": 1, | ||
"total": 1 | ||
} | ||
} | ||
``` | ||
|
||
#### HOW | ||
|
||
1. Install and use PHP 7.1, | ||
2. Install and use MySQL 5.6 or MariaDB, | ||
3. Create a database for this app (name is up to you), | ||
4. Restore the database with attached SQL script, | ||
5. Clone this repo to your local machine, | ||
6. Change directory to the cloned repo, | ||
7. Run `composer install`, | ||
8. Run `php artisan key:generate`, | ||
9. Change `APP_URL` to `http://localhost:8002` in `.env` file, | ||
10. Change DB related variables according to your own database in `.env` file, | ||
11. Run `php artisan serve --port:8002`, | ||
12. Login to http://localhost:8002/admin using `[email protected]` and `secret` as credentials, | ||
13. Go to Categories menu from sidebar, | ||
14. Add new category with Name Dinosaur (don’t change the slug), | ||
15. Edit any post and change the Post Category to Dinosaur, | ||
16. Send request the API endpoint mentioned above using Postman or any other REST client. | ||
17. See if the returned posts are only of Dinosaur category. | ||
|
||
#### ADDITIONAL NOTES | ||
|
||
SQL script: [download link](https://google.co.id) |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ini harusnya pake yang Klinik Pintar
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dan ga pake trello @shani-asad