UCL-INGI / ictm-teaching

A small app to help distribute courses among teaching assistants
0 stars 1 forks source link

Apply the changes from the old pull request #2

Closed SamuelVch98 closed 5 months ago

SamuelVch98 commented 6 months ago

I've applied all the changes requested in the old PR + I've added in the name of the DB in the config.json as requested during the previous meeting.

Overall, I've created a new blueprint for users, I've reviewed the way I create HTML files to avoid redundancy and I'm using SQLAlchemy in Flask to avoid duplicating sessions.

CLAassistant commented 6 months ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Samuel Van Campenhout seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

anthonygego commented 6 months ago

We need to be able to review this.

Keep track of all these practice recommandations. They can be part of a chapter. Do not hesitate to complete and/or argue these ones with litterature on software maintenance. You can probably ask Kim for such pointers. That would be a nice addition.

SamuelVch98 commented 6 months ago

Thanks for the advice, it's helping me to improve.

anthonygego commented 5 months ago

There is unfortunately no next time for a pull-request to look good. The commits that will be merged should be split or cleaned to make the review convenient and not pollute the repository (commits history and therefore repo size as well).

The huge commit with external libraries should be split before going further. In an ideal world, fixes following the opening of a pull-request should be squashed in the corresponding implementation commit. In case of small pull-requests (one atomic feature or set of coherent fixes), Github allows us to directly squash all the commits when merging the PR.

Keeping a nice and clean commit history is really helpful when a git blame (or even a revert) is needed. This is easier to revert or identify regressions in atomic commits than trying to find the set of concerned commits, realizing there are not atomic and can't simply be revert, and then having to produce a specific patch for the introduced issue.

I'll close this PR#2 to focus on #1. However as already mentioned I suggest a dedicated PR for the external libraries.