20 Commits

Author SHA1 Message Date
49d2e98a1a [person] Feature: add a person's center history
The association between Person and Center is now stored in a dedicated
Entity: `PersonCenterHistory`, which have a date interval (start date
and endDate). The SQL counterpart is a table, with a constraint which
ensure that no person might be associated with two center at the same time.

For ease, a view is created to get the current center associated with
the person.

The dedicated migration creates also:

* indexes for a rapid search for person at current date;
* and populate the table from current data, setting the startdate to the
  person's creation date and time if any, `NOW()` unless.

The `Person` entity is also updated to use the information from the
PersonCenterHistory classes, but this commit does not yet delete the
`Center` column.
2022-09-26 21:11:01 +02:00
6331d8fd3e validation fix for person ressource 2022-03-23 14:59:30 +01:00
c5ffca22ff ease docgen normlisation for resources 2022-03-22 22:37:19 +01:00
169d4dc41c finalize normalization on ressources 2022-03-21 17:33:01 +01:00
nobohan
e7299bac4a person: add person ressource to person docgen normaliser 2022-03-17 19:07:11 +01:00
6edf0bcb3b fix delete links in documents 2022-03-03 13:57:00 +01:00
1e146f542e try to fix some things 2022-02-28 16:09:52 +01:00
nobohan
c5d2953ecb php code fix for Residential Address 2022-02-18 09:15:13 +01:00
nobohan
6e1b95aa60 residential address: show residential address or info in PersonRenderBox + add ThirdPartyText 2022-02-17 18:05:34 +01:00
nobohan
2926965400 move residentialAddress entity to the ChillPerson bundle 2022-02-17 15:08:12 +01:00
0378df42b6 fix cs 2022-01-27 17:08:00 +01:00
0a92ad905b variables for docgen 2022-01-26 23:49:24 +01:00
7af7135971 use trait to implement TrackCreationInterface and TrackUpdateInterface 2022-01-26 21:51:13 +01:00
dc0fae7549 fixes person resources 2022-01-26 17:53:09 +01:00
88d1fe24b4 Creation of PersonResource 2022-01-26 12:52:15 +00:00
Pol Dellaiera
cd3be25c22
cs: Remove duplicated headers. 2021-11-30 13:54:58 +01:00
Pol Dellaiera
47c5855a21
cs: Switch to a stricter way of coding - this might break in a lot of places. 2021-11-30 13:33:18 +01:00
Pol Dellaiera
8f96a1121d
cs: Fix code style (safe rules only). 2021-11-23 14:08:50 +01:00
ebb2f5d243 Add shortcut person <-> current address, and update api for
re-implements searching

* add geographic function ST_CONTAINS
* add a link between the current valid address and person, optimized on
database side;
* update PersonACLAwareRepository for re-using methods elsewhere.
2021-09-20 13:56:43 +02:00
50b7554aea optimize query for current address + documentation 2021-09-20 13:56:43 +02:00