Commit Graph
17 Commits
Author SHA1 Message Date
Matthew BrownandAlexis Saettler 684ce6bc56 refactor: fix bad return types with Psalter (#2435) 2019-02-16 19:20:28 +01:00
Alexis SaettlerandGitHub 92bef2413c chore: add phpstan (#2383) 2019-02-07 22:44:34 +01:00
Alexis SaettlerandGitHub f660c4fd98 feat: register all app services as singleton (#2337) 2019-01-25 15:56:35 +01:00
Régis FreydandGitHub 69cfdebb1a feat: refactor reminders (#2223)
yolo
2019-01-15 18:03:13 -05:00
Alexis SaettlerandGitHub 566b0b1348 fix: rewrite OAuth login controller (#2014) 2018-11-11 14:45:41 +01:00
Alexis SaettlerandGitHub 444babbb43 test: improve services rules validation (#1986) 2018-11-02 16:34:22 +01:00
Régis FreydandGitHub b3372264c8 chore: remove events table (#1829) 2018-09-22 22:22:34 -04:00
Alexis SaettlerandGitHub 1c70d4ef24 fix: Fix contacts account mismatch (#1625) 2018-08-01 23:28:05 +02:00
Alexis SaettlerandGitHub 0ec0e8591d Use route function everywhere (#1568) 2018-07-22 21:04:31 +02:00
Régis FreydandGitHub 29197090a7 Restructure where models are stored (#1476)
The idea is to clean the repository a little bit by moving models into their respective folders.
2018-06-14 20:49:12 -04:00
Tom RochetteandRégis Freyd d2c9c75644 Fix tests to prepare for foreign keys (#1289)
* Fix AccountTest tests.
Update the model factories not to expect a constant value for account_id.
Add various missing relationships in the model factories.

* Fix AddressTest after the addition of foreign keys.

* Fix ContactTest after the addition of foreign keys.
Set contact/account before saving a special date using Contact::setSpecialDate or Contact::setSpecialDateFromAge.

* Fix DayTest after the addition of foreign keys.

* Fix EntryTest after the addition of foreign keys.

* Fix GiftTest after the addition of foreign keys.

* Fix JournalEntryTest after the addition of foreign keys.

* Fix NoteTest after the addition of foreign keys.

* Fix NotificationTest after the addition of foreign keys.

* Fix PetTest after the addition of foreign keys.

* Return the account id and not the account object in many model factories definition.

* Fix ReminderTest after the addition of foreign keys.

* Fix SpecialDateTest after the addition of foreign keys.

* Fix UserTest after the addition of foreign keys.

* Make instead of creating in Contact::logEvent() as we cannot create an event without giving it an account_id.

* Fix ActivityTest after the addition of foreign keys.

* Fix SendNotificationsTest after the addition of foreign keys.

* Fix SendNotificationsTest after the addition of foreign keys.
- Remove the test_it_deletes_the_notification_if_contact_does_not_exist test because on deletion of a contact, all his associated notifications will be deleted due to cascade constraints.

* Fix SendRemindersTest after the addition of foreign keys.
- Remove the test_it_deletes_the_reminder_if_contact_doesnt_exist test because on deletion of a contact, all his associated reminders will be deleted due to cascade constraints.

* Fix TagTest after the addition of foreign keys.

* Update the logic in Contact::removeSpecialDate so that a foreign key constraint is not triggered when removing the associated relation.
Set a the partner gender before saving the partner as the gender is mandatory.
Add the ConvertEmptyStringsToNull middleware.
Set the metThroughId default option as empty so it is converted to null by the ConvertEmptyStringsToNull middleware.
Set the activity_type_id as empty so it is converted to null by the ConvertEmptyStringsToNull middleware.
Mark the Reminder title has required.
2018-05-08 21:33:12 -04:00
Régis FreydandGitHub 4b1a8200e5 Fix missing views due to a folder restructure (#1288) 2018-05-07 20:45:53 -04:00
DannyandRégis Freyd 3ba96cf18b Add UUID instead of actual ID to identify contacts (#777)
Close #381
2018-04-08 14:23:13 -04:00
Alexis SaettlerandGitHub 558515b59a Fix issues proposed by sonar (#986) 2018-03-08 22:37:27 +01:00
Matthew BrownandAlexis Saettler 749caa2c03 Fix issues found by static analysis (#878) 2018-03-04 18:23:33 +01:00
Régis FreydandGitHub d8bed11785 Add ability to add dates without a year (#677) 2017-12-13 15:38:05 -05:00
Régis FreydandGitHub 84a1461c0f Add the ability to set an external avatar (#662)
This will allow the new Chrome extension for Monica to fetch
contacts from Facebook and retrieve the avatar.
2017-11-27 19:32:45 -05:00