Skip to content
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

feat(history): add sorting in tables #3023

Merged
merged 5 commits into from
Nov 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified _scripts/db/dumps/domifa_test.postgres.custom.gz
Binary file not shown.
48 changes: 19 additions & 29 deletions _scripts/db/dumps/domifa_test.postgres.restore-data-only.sql
Original file line number Diff line number Diff line change
Expand Up @@ -79,35 +79,25 @@ a034b69a-210a-4a3d-b7a9-8987840ef0c7 2021-11-30 15:03:28.817939+01 2023-05-24 17
-- Data for Name: interactions; Type: TABLE DATA; Schema: public; Owner: -
--

COPY public.interactions (uuid, "createdAt", "updatedAt", version, "dateInteraction", "nbCourrier", "structureId", type, "usagerRef", "userId", "userName", content, "usagerUUID", event, "previousValue", "interactionOutUUID") FROM stdin;
4fc32424-3f6e-48c7-9ef1-02b9db388445 2020-11-18 12:01:52.072912+01 2020-11-18 12:01:52.072912+01 1 2020-11-01 19:47:00.286+01 3 1 recommandeIn 1 1 Patrick Roméro 860ffa4c-88c4-4e1c-ad42-5a05cdf39830 create \N \N
44ba43d0-ab44-4449-a6e1-40cbcbc92adc 2020-11-18 12:01:52.072912+01 2020-11-18 12:01:52.072912+01 1 2020-11-01 19:47:03.303+01 4 1 colisIn 1 1 Patrick Roméro 860ffa4c-88c4-4e1c-ad42-5a05cdf39830 create \N \N
b174770d-dfb4-45ea-bf5c-58f1288ff6dd 2020-11-18 12:01:52.072912+01 2020-11-18 12:01:52.072912+01 1 2020-11-01 19:47:06.168+01 1 1 courrierIn 1 1 Patrick Roméro 860ffa4c-88c4-4e1c-ad42-5a05cdf39830 create \N \N
f3b49608-cb17-4fdb-b793-8da431cd6ffe 2021-06-28 15:25:35.998265+02 2021-06-28 15:25:35.998265+02 1 2021-06-28 17:25:35.997+02 2 1 courrierOut 7 1 Patrick Roméro \N b2c26e55-ab37-457d-b307-6fe161050a9b create \N \N
53a50f2d-c906-421e-be21-8857dfca97fc 2021-06-28 15:25:36.005054+02 2021-06-28 15:25:36.005054+02 1 2021-06-28 17:25:36.004+02 2 1 colisOut 7 1 Patrick Roméro \N b2c26e55-ab37-457d-b307-6fe161050a9b create \N \N
7d27aea0-d9ae-4529-b1ee-e40a4eadf1ab 2021-06-28 15:25:37.471534+02 2021-06-28 15:25:37.471534+02 1 2021-06-28 17:25:37.47+02 1 1 courrierIn 7 1 Patrick Roméro \N b2c26e55-ab37-457d-b307-6fe161050a9b create \N \N
212f8184-972a-4cb3-ae83-d1738659cbf9 2021-06-28 15:25:45.842905+02 2021-06-28 15:25:45.842905+02 1 2021-06-28 17:25:45.842+02 1 1 courrierIn 7 1 Patrick Roméro Courrier très important b2c26e55-ab37-457d-b307-6fe161050a9b create \N \N
8abd81e6-403f-49f3-999a-0ead3e6456c5 2021-06-28 15:25:51.252592+02 2021-06-28 15:25:51.252592+02 1 2021-06-28 17:25:51.252+02 1 1 colisIn 7 1 Patrick Roméro \N b2c26e55-ab37-457d-b307-6fe161050a9b create \N \N
b68794a5-1d02-48ca-9cc7-8b43b4a4bbf0 2021-06-28 15:25:28.404973+02 2021-12-24 01:46:32.485168+01 2 2021-06-28 17:25:28.404+02 2 1 courrierIn 7 1 Patrick Roméro b2c26e55-ab37-457d-b307-6fe161050a9b create \N f3b49608-cb17-4fdb-b793-8da431cd6ffe
fb8dde95-b421-4cf0-b205-9e940d9641e5 2021-06-28 15:25:28.512802+02 2021-12-24 01:46:32.491031+01 2 2021-06-28 17:25:28.512+02 1 1 colisIn 7 1 Patrick Roméro b2c26e55-ab37-457d-b307-6fe161050a9b create \N 53a50f2d-c906-421e-be21-8857dfca97fc
0a0dbf1d-055f-47db-b2ae-013c611033e8 2021-06-28 15:25:33.70286+02 2021-12-24 01:46:32.491031+01 2 2021-06-28 17:25:33.702+02 1 1 colisIn 7 1 Patrick Roméro \N b2c26e55-ab37-457d-b307-6fe161050a9b create \N 53a50f2d-c906-421e-be21-8857dfca97fc
3a376ace-f181-421e-abdd-9dfda4a6e93e 2022-03-17 22:40:01.214+01 2022-03-17 22:40:01.214+01 1 2020-12-01 06:00:24.98+01 10 5 courrierIn 1 11 Mauricette Pali Ceci est une liste de courriers 6d93ecf8-c59a-42cc-ac1e-b5bd6f977a01 delete {"type": "courrierIn", "uuid": "0fc803ce-558a-4650-9f8c-3a9a97d94068", "event": "create", "userId": 11, "content": "Ceci est une liste de courriers", "version": 1, "userName": "Mauricette Pali", "createdAt": "2022-03-17T21:40:01.214Z", "updatedAt": "2022-03-17T21:40:01.214Z", "usagerRef": 1, "nbCourrier": 10, "usagerUUID": "6d93ecf8-c59a-42cc-ac1e-b5bd6f977a01", "structureId": 5, "previousValue": null, "dateInteraction": "2020-12-01T05:00:24.980Z", "interactionOutUUID": null} \N
2bbb1a89-c14f-4f32-8928-965dc2565174 2022-03-17 22:40:01.392572+01 2022-03-17 22:40:01.392572+01 1 2020-12-01 06:00:24.98+01 0 5 courrierOut 1 11 Mauricette Pali 6d93ecf8-c59a-42cc-ac1e-b5bd6f977a01 create \N \N
c28d0f25-12f2-44d3-a15c-49523a02bb25 2022-03-17 22:39:10.903+01 2022-03-17 22:39:10.903+01 1 2020-12-01 06:00:24.98+01 10 5 courrierIn 1 11 Mauricette Pali Ceci est une liste de courriers 6d93ecf8-c59a-42cc-ac1e-b5bd6f977a01 delete {"type": "courrierIn", "uuid": "8a1386dc-2b38-4e40-bd99-d603e49ffafa", "event": "create", "userId": 11, "content": "Ceci est une liste de courriers", "version": 1, "userName": "Mauricette Pali", "createdAt": "2022-03-17T21:39:10.903Z", "updatedAt": "2022-03-17T21:39:10.903Z", "usagerRef": 1, "nbCourrier": 10, "usagerUUID": "6d93ecf8-c59a-42cc-ac1e-b5bd6f977a01", "structureId": 5, "previousValue": null, "dateInteraction": "2020-12-01T05:00:24.980Z", "interactionOutUUID": null} \N
eaa91392-fe09-4faa-9bbd-3722b25dd013 2022-03-17 22:39:10.963799+01 2022-03-17 22:39:10.963799+01 1 2020-12-01 06:00:24.98+01 0 5 courrierOut 1 11 Mauricette Pali 6d93ecf8-c59a-42cc-ac1e-b5bd6f977a01 create \N \N
133b29fd-2331-486e-99ca-c90f6f977f32 2022-03-17 22:40:29.833+01 2022-03-17 22:40:29.833+01 1 2020-12-01 11:00:24.98+01 5 1 courrierIn 2 1 Patrick Roméro Le Loyer 97b7e840-0e93-4bf4-ba7d-0a406aa898f2 delete {"type": "courrierIn", "uuid": "122eb4bb-a05f-45c2-9628-3b8a0e03e6b5", "event": "create", "userId": 1, "content": "Le Loyer", "version": 1, "userName": "Patrick Roméro", "createdAt": "2022-03-17T21:40:29.833Z", "updatedAt": "2022-03-17T21:40:29.833Z", "usagerRef": 2, "nbCourrier": 5, "usagerUUID": "97b7e840-0e93-4bf4-ba7d-0a406aa898f2", "structureId": 1, "previousValue": null, "dateInteraction": "2020-12-01T10:00:24.980Z", "interactionOutUUID": null} \N
4900d1a9-a2cf-4e30-b70d-698c37702b8c 2022-03-17 22:40:29.808+01 2022-03-17 22:40:29.808+01 1 2020-12-01 11:00:24.98+01 10 1 courrierIn 2 1 Patrick Roméro Les impôts 97b7e840-0e93-4bf4-ba7d-0a406aa898f2 delete {"type": "courrierIn", "uuid": "4bc7d1c5-3428-466f-b2ce-160edd818db6", "event": "create", "userId": 1, "content": "Les impôts", "version": 1, "userName": "Patrick Roméro", "createdAt": "2022-03-17T21:40:29.808Z", "updatedAt": "2022-03-17T21:40:29.808Z", "usagerRef": 2, "nbCourrier": 10, "usagerUUID": "97b7e840-0e93-4bf4-ba7d-0a406aa898f2", "structureId": 1, "previousValue": null, "dateInteraction": "2020-12-01T10:00:24.980Z", "interactionOutUUID": null} \N
03d2f113-726a-4cab-8cee-f111cdbc2c66 2022-03-17 22:40:29.896899+01 2022-03-17 22:40:29.955167+01 3 2020-12-01 11:00:24.98+01 3 1 colisIn 2 1 Patrick Roméro Colis à donner en urgence 97b7e840-0e93-4bf4-ba7d-0a406aa898f2 create \N \N
14cf7f68-8646-461b-b01b-0c339b374872 2022-03-17 22:40:29.928+01 2022-03-17 22:40:29.928+01 1 2020-12-01 11:00:24.98+01 3 1 colisOut 2 1 Patrick Roméro Colis à donner en urgence 97b7e840-0e93-4bf4-ba7d-0a406aa898f2 delete {"type": "colisOut", "uuid": "07d6fd85-dd6b-40b5-8279-1117837a8b3c", "event": "create", "userId": 1, "content": "Colis à donner en urgence", "version": 1, "userName": "Patrick Roméro", "createdAt": "2022-03-17T21:40:29.928Z", "updatedAt": "2022-03-17T21:40:29.928Z", "usagerRef": 2, "nbCourrier": 3, "usagerUUID": "97b7e840-0e93-4bf4-ba7d-0a406aa898f2", "structureId": 1, "previousValue": null, "dateInteraction": "2020-12-01T10:00:24.980Z", "interactionOutUUID": null} \N
bbf70ce8-d4d6-4318-adc6-143af0a06daa 2022-03-17 22:40:30.030609+01 2022-03-17 22:40:30.030609+01 1 2020-12-01 11:00:24.98+01 0 1 visite 2 1 Patrick Roméro \N 97b7e840-0e93-4bf4-ba7d-0a406aa898f2 create \N \N
faaf021e-8629-41ad-97af-27733c402a16 2022-03-17 22:40:30.064+01 2022-03-17 22:40:30.064+01 1 2020-12-01 11:00:24.98+01 0 1 courrierOut 2 1 Patrick Roméro Courrier transféré à : LA personne DU TRANSFERT - ICI ADRESSE 97b7e840-0e93-4bf4-ba7d-0a406aa898f2 delete {"type": "courrierOut", "uuid": "7eeda496-047e-4156-80d8-35826c308ace", "event": "create", "userId": 1, "content": "Courrier transféré à : LA personne DU TRANSFERT - ICI ADRESSE", "version": 1, "userName": "Patrick Roméro", "createdAt": "2022-03-17T21:40:30.064Z", "updatedAt": "2022-03-17T21:40:30.064Z", "usagerRef": 2, "nbCourrier": 0, "usagerUUID": "97b7e840-0e93-4bf4-ba7d-0a406aa898f2", "structureId": 1, "previousValue": null, "dateInteraction": "2020-12-01T10:00:24.980Z", "interactionOutUUID": null} \N
6d1e5411-c219-47de-a1fa-122fcfd20a37 2022-03-17 22:40:30.149+01 2022-03-17 22:40:30.149+01 1 2020-12-01 11:00:24.98+01 0 1 courrierOut 2 1 Patrick Roméro Courrier remis au mandataire : Jean michel PROCURATION 97b7e840-0e93-4bf4-ba7d-0a406aa898f2 delete {"type": "courrierOut", "uuid": "f2de306b-9f9d-4948-a122-cda78c050d28", "event": "create", "userId": 1, "content": "Courrier remis au mandataire : Jean michel PROCURATION", "version": 1, "userName": "Patrick Roméro", "createdAt": "2022-03-17T21:40:30.149Z", "updatedAt": "2022-03-17T21:40:30.149Z", "usagerRef": 2, "nbCourrier": 0, "usagerUUID": "97b7e840-0e93-4bf4-ba7d-0a406aa898f2", "structureId": 1, "previousValue": null, "dateInteraction": "2020-12-01T10:00:24.980Z", "interactionOutUUID": null} \N
f8c98719-fa58-4439-85b2-b5a0f6f125c8 2022-03-17 22:40:30.269+01 2022-03-17 22:40:30.269+01 1 2020-12-01 06:00:24.98+01 10 5 courrierIn 1 11 Mauricette Pali Ceci est une liste de courriers 6d93ecf8-c59a-42cc-ac1e-b5bd6f977a01 delete {"type": "courrierIn", "uuid": "10f16026-99ce-48ea-9a39-5a218f0fb52d", "event": "create", "userId": 11, "content": "Ceci est une liste de courriers", "version": 1, "userName": "Mauricette Pali", "createdAt": "2022-03-17T21:40:30.269Z", "updatedAt": "2022-03-17T21:40:30.269Z", "usagerRef": 1, "nbCourrier": 10, "usagerUUID": "6d93ecf8-c59a-42cc-ac1e-b5bd6f977a01", "structureId": 5, "previousValue": null, "dateInteraction": "2020-12-01T05:00:24.980Z", "interactionOutUUID": null} \N
efabd6a5-e8d3-464d-a700-f0fd723a43b9 2022-03-17 22:40:30.315091+01 2022-03-17 22:40:30.315091+01 1 2020-12-01 06:00:24.98+01 0 5 courrierOut 1 11 Mauricette Pali 6d93ecf8-c59a-42cc-ac1e-b5bd6f977a01 create \N \N
93b493ee-a972-4ecd-b26a-e4803efaea67 2022-03-17 22:39:21.676+01 2022-03-17 22:39:21.676+01 1 2020-12-01 06:00:24.98+01 10 5 courrierIn 1 11 Mauricette Pali Ceci est une liste de courriers 6d93ecf8-c59a-42cc-ac1e-b5bd6f977a01 delete {"type": "courrierIn", "uuid": "c403132a-99d2-48d7-a90c-9c2ecb5bee2d", "event": "create", "userId": 11, "content": "Ceci est une liste de courriers", "version": 1, "userName": "Mauricette Pali", "createdAt": "2022-03-17T21:39:21.676Z", "updatedAt": "2022-03-17T21:39:21.676Z", "usagerRef": 1, "nbCourrier": 10, "usagerUUID": "6d93ecf8-c59a-42cc-ac1e-b5bd6f977a01", "structureId": 5, "previousValue": null, "dateInteraction": "2020-12-01T05:00:24.980Z", "interactionOutUUID": null} \N
ccfdb5d8-dbb6-4cf8-9818-cd0f4211021e 2022-03-17 22:39:21.729672+01 2022-03-17 22:39:21.729672+01 1 2020-12-01 06:00:24.98+01 0 5 courrierOut 1 11 Mauricette Pali 6d93ecf8-c59a-42cc-ac1e-b5bd6f977a01 create \N \N
3aaaa8a4-cb10-4122-94da-776a7a5a2c3d 2022-03-17 22:37:37.887+01 2022-03-17 22:37:37.887+01 1 2020-12-01 06:00:24.98+01 10 5 courrierIn 1 11 Mauricette Pali Ceci est une liste de courriers 6d93ecf8-c59a-42cc-ac1e-b5bd6f977a01 delete {"type": "courrierIn", "uuid": "2ec8a951-932b-47de-82ab-6790e2d2abb8", "event": "create", "userId": 11, "content": "Ceci est une liste de courriers", "version": 1, "userName": "Mauricette Pali", "createdAt": "2022-03-17T21:37:37.887Z", "updatedAt": "2022-03-17T21:37:37.887Z", "usagerRef": 1, "nbCourrier": 10, "usagerUUID": "6d93ecf8-c59a-42cc-ac1e-b5bd6f977a01", "structureId": 5, "previousValue": null, "dateInteraction": "2020-12-01T05:00:24.980Z", "interactionOutUUID": null} \N
672bae2a-dfb3-41f3-a3d9-8eda89783612 2022-03-17 22:37:37.935256+01 2022-03-17 22:37:37.935256+01 1 2020-12-01 06:00:24.98+01 0 5 courrierOut 1 11 Mauricette Pali 6d93ecf8-c59a-42cc-ac1e-b5bd6f977a01 create \N \N
COPY public.interactions (uuid, "createdAt", "updatedAt", version, "dateInteraction", "nbCourrier", "structureId", type, "usagerRef", "userId", "userName", content, "usagerUUID", "interactionOutUUID") FROM stdin;
4fc32424-3f6e-48c7-9ef1-02b9db388445 2020-11-18 12:01:52.072912+01 2020-11-18 12:01:52.072912+01 1 2020-11-01 19:47:00.286+01 3 1 recommandeIn 1 1 Patrick Roméro 860ffa4c-88c4-4e1c-ad42-5a05cdf39830 \N
44ba43d0-ab44-4449-a6e1-40cbcbc92adc 2020-11-18 12:01:52.072912+01 2020-11-18 12:01:52.072912+01 1 2020-11-01 19:47:03.303+01 4 1 colisIn 1 1 Patrick Roméro 860ffa4c-88c4-4e1c-ad42-5a05cdf39830 \N
b174770d-dfb4-45ea-bf5c-58f1288ff6dd 2020-11-18 12:01:52.072912+01 2020-11-18 12:01:52.072912+01 1 2020-11-01 19:47:06.168+01 1 1 courrierIn 1 1 Patrick Roméro 860ffa4c-88c4-4e1c-ad42-5a05cdf39830 \N
f3b49608-cb17-4fdb-b793-8da431cd6ffe 2021-06-28 15:25:35.998265+02 2021-06-28 15:25:35.998265+02 1 2021-06-28 17:25:35.997+02 2 1 courrierOut 7 1 Patrick Roméro \N b2c26e55-ab37-457d-b307-6fe161050a9b \N
53a50f2d-c906-421e-be21-8857dfca97fc 2021-06-28 15:25:36.005054+02 2021-06-28 15:25:36.005054+02 1 2021-06-28 17:25:36.004+02 2 1 colisOut 7 1 Patrick Roméro \N b2c26e55-ab37-457d-b307-6fe161050a9b \N
7d27aea0-d9ae-4529-b1ee-e40a4eadf1ab 2021-06-28 15:25:37.471534+02 2021-06-28 15:25:37.471534+02 1 2021-06-28 17:25:37.47+02 1 1 courrierIn 7 1 Patrick Roméro \N b2c26e55-ab37-457d-b307-6fe161050a9b \N
212f8184-972a-4cb3-ae83-d1738659cbf9 2021-06-28 15:25:45.842905+02 2021-06-28 15:25:45.842905+02 1 2021-06-28 17:25:45.842+02 1 1 courrierIn 7 1 Patrick Roméro Courrier très important b2c26e55-ab37-457d-b307-6fe161050a9b \N
8abd81e6-403f-49f3-999a-0ead3e6456c5 2021-06-28 15:25:51.252592+02 2021-06-28 15:25:51.252592+02 1 2021-06-28 17:25:51.252+02 1 1 colisIn 7 1 Patrick Roméro \N b2c26e55-ab37-457d-b307-6fe161050a9b \N
b68794a5-1d02-48ca-9cc7-8b43b4a4bbf0 2021-06-28 15:25:28.404973+02 2021-12-24 01:46:32.485168+01 2 2021-06-28 17:25:28.404+02 2 1 courrierIn 7 1 Patrick Roméro b2c26e55-ab37-457d-b307-6fe161050a9b f3b49608-cb17-4fdb-b793-8da431cd6ffe
fb8dde95-b421-4cf0-b205-9e940d9641e5 2021-06-28 15:25:28.512802+02 2021-12-24 01:46:32.491031+01 2 2021-06-28 17:25:28.512+02 1 1 colisIn 7 1 Patrick Roméro b2c26e55-ab37-457d-b307-6fe161050a9b 53a50f2d-c906-421e-be21-8857dfca97fc
0a0dbf1d-055f-47db-b2ae-013c611033e8 2021-06-28 15:25:33.70286+02 2021-12-24 01:46:32.491031+01 2 2021-06-28 17:25:33.702+02 1 1 colisIn 7 1 Patrick Roméro \N b2c26e55-ab37-457d-b307-6fe161050a9b 53a50f2d-c906-421e-be21-8857dfca97fc
2bbb1a89-c14f-4f32-8928-965dc2565174 2022-03-17 22:40:01.392572+01 2022-03-17 22:40:01.392572+01 1 2020-12-01 06:00:24.98+01 0 5 courrierOut 1 11 Mauricette Pali 6d93ecf8-c59a-42cc-ac1e-b5bd6f977a01 \N
eaa91392-fe09-4faa-9bbd-3722b25dd013 2022-03-17 22:39:10.963799+01 2022-03-17 22:39:10.963799+01 1 2020-12-01 06:00:24.98+01 0 5 courrierOut 1 11 Mauricette Pali 6d93ecf8-c59a-42cc-ac1e-b5bd6f977a01 \N
03d2f113-726a-4cab-8cee-f111cdbc2c66 2022-03-17 22:40:29.896899+01 2022-03-17 22:40:29.955167+01 3 2020-12-01 11:00:24.98+01 3 1 colisIn 2 1 Patrick Roméro Colis à donner en urgence 97b7e840-0e93-4bf4-ba7d-0a406aa898f2 \N
bbf70ce8-d4d6-4318-adc6-143af0a06daa 2022-03-17 22:40:30.030609+01 2022-03-17 22:40:30.030609+01 1 2020-12-01 11:00:24.98+01 0 1 visite 2 1 Patrick Roméro \N 97b7e840-0e93-4bf4-ba7d-0a406aa898f2 \N
efabd6a5-e8d3-464d-a700-f0fd723a43b9 2022-03-17 22:40:30.315091+01 2022-03-17 22:40:30.315091+01 1 2020-12-01 06:00:24.98+01 0 5 courrierOut 1 11 Mauricette Pali 6d93ecf8-c59a-42cc-ac1e-b5bd6f977a01 \N
ccfdb5d8-dbb6-4cf8-9818-cd0f4211021e 2022-03-17 22:39:21.729672+01 2022-03-17 22:39:21.729672+01 1 2020-12-01 06:00:24.98+01 0 5 courrierOut 1 11 Mauricette Pali 6d93ecf8-c59a-42cc-ac1e-b5bd6f977a01 \N
672bae2a-dfb3-41f3-a3d9-8eda89783612 2022-03-17 22:37:37.935256+01 2022-03-17 22:37:37.935256+01 1 2020-12-01 06:00:24.98+01 0 5 courrierOut 1 11 Mauricette Pali 6d93ecf8-c59a-42cc-ac1e-b5bd6f977a01 \N
\.


Expand Down
Loading
Loading