d42a1296c4
Add integration and unit tests for PersonJsonNormalizer
to verify normalization behavior
...
- Introduce `PersonJsonNormalizerIntegrationTest` to test database-driven normalization scenarios.
- Expand `PersonJsonNormalizerTest` with cases covering minimal group normalization and extended keys.
- Refactor test setup to use mock objects and improve coverage of normalization logic.
2025-09-25 14:51:39 +02:00
4b7e3c1601
Restrict deletion of identifier_definition
to prevent errors and ensure data integrity
...
- Updated foreign key constraint on `chill_person_identifier.definition_id` to use `ON DELETE RESTRICT` instead of `ON DELETE CASCADE`.
- Adjusted migration script to handle both the upgrade and downgrade paths for the new restriction.
2025-09-24 12:40:37 +02:00
6ea9af588b
Replace value
with canonical
in PersonIdentifier
unique constraint, repository logic, and tests
...
- Update unique constraint on `PersonIdentifier` to use `canonical` instead of `value`.
- Refactor repository method `findByDefinitionAndValue` to `findByDefinitionAndCanonical`, updating logic accordingly.
- Adjust validation logic in `UniqueIdentifierConstraintValidator` to align with the new canonical-based approach.
- Modify related integration and unit tests to support the changes.
- Inject `PersonIdentifierManagerInterface` into the repository to handle canonical value generation.
2025-09-24 12:40:16 +02:00
0fd76d3fa8
Add PersonIdentifierManagerInterface
to PersonACLAwareRepository
and enhance search logic for identifiers
...
- Inject `PersonIdentifierManagerInterface` into `PersonACLAwareRepository` for improved identifier handling.
- Update search queries to include logic for filtering and matching `PersonIdentifier` values.
- Modify test cases to support the new dependency and ensure proper coverage.
2025-09-24 00:01:28 +02:00
34af53130b
Refactor and enhance ValidationException
handling across types and components
...
- Simplify and extend type definitions in `types.ts` for dynamic and normalized keys.
- Update `ValidationExceptionInterface` to include new methods for filtering violations.
- Refactor `apiMethods.ts` to leverage updated exception types and key parsing.
- Adjust `WritePersonViolationMap` for stricter type definitions.
- Enhance `PersonEdit.vue` to use refined violation methods, improving validation error handling.
2025-09-23 21:26:12 +02:00
a1fd395868
Add unique constraint for PersonIdentifier
, implement UniqueIdentifierConstraint
with validation logic, and include supporting tests
...
- Introduce `UniqueIdentifierConstraint` and its validator for ensuring identifier uniqueness.
- Add a database-level unique constraint on `PersonIdentifier` (`definition_id`, `value`).
- Implement repository method to fetch identifiers by definition and value.
- Include integration and unit tests for validation and repository functionality.
- Update `Person` entity with `Assert\Valid` annotation for `identifiers`.
2025-09-23 12:36:30 +02:00
b8a7cbb321
Add identifiers
field in CreationPersonType
and handle on_create
logic in PersonIdentifiersType
...
- Introduce `identifiers` field to `CreationPersonType` with a dedicated form type.
- Update `PersonIdentifiersType` to support `step` option (`on_create` and `on_edit`).
- Skip certain identifiers in `on_create` step based on presence configuration.
- Adjust Twig template to display `identifiers` conditionally.
2025-09-22 14:03:59 +02:00
6124eb9e34
Fix isEmpty
logic in StringIdentifier
: Correct boolean comparison for trimmed content.
2025-09-22 14:03:58 +02:00
a5b06de92a
Refactor validation handling in PersonEdit.vue
: Replace hasValidationError
and validationError
with hasViolation
and violationTitles
. Introduce hasViolationWithParameter
and violationTitlesWithParameter
for enhanced field validation. Update RequiredIdentifierConstraint
messages, improve API error mapping, and refine ValidationException
structure with violationsList
. Add tests and translations for identifier validation.
2025-09-22 14:03:58 +02:00
52404956d2
Trim PersonIdentifier
values during denormalization, implement RequiredIdentifierConstraint
and validator, and add tests for empty value validation.
2025-09-22 14:03:57 +02:00
4207efd6bf
Remove empty PersonIdentifier
values during denormalization and add isEmpty
logic to PersonIdentifierWorker
. Include tests for empty value handling.
2025-09-22 14:03:57 +02:00
840fde4ad4
Filter PersonIdentifierWorker
by presence
during initialization and update type definitions. Add presence
field to PersonIdentifierWorkerNormalizer
.
2025-09-22 14:03:56 +02:00
3611ea2518
Refactor PersonIdentifierDefinition
: Replace fully qualified \Doctrine\DBAL\Types\Types
references with simplified Types
aliases.
2025-09-22 14:03:55 +02:00
bbd4292cb9
Enhance PersonEdit
form: Add birthdate input with validation, improve field error handling using hasValidationError
, refactor birthDate
to respect timezone offsets, and update translations for better user feedback. Replace DateTimeCreate
with DateTimeWrite
across types and components.
2025-09-22 14:03:55 +02:00
54f8c92240
Update DateNormalizer
: Add return type hints for denormalize
and normalize
methods
2025-09-22 14:03:54 +02:00
5330befc8f
eslint fixes
2025-09-22 14:03:54 +02:00
c19206be0c
Enhance validation in PersonEdit
: Introduce hasValidationError
and validationError
helpers for form inputs. Improve error feedback for fields such as firstName
, lastName
, gender
, and others. Refactor postPerson
to handle validation exceptions and map errors to specific fields. Update related methods, styles, and API error type definitions.
2025-09-22 14:03:53 +02:00
5ff374d2fa
Refactor validation handling in apiMethods
: Introduce strongly-typed ValidationException
and ViolationFromMap
. Replace generic validation logic with stricter, type-safe mappings. Update makeFetch
to handle Symfony validation problems with enhanced error taxonomy.
2025-09-22 14:03:53 +02:00
4a73aaae94
Replace PhonenumberConstraint
with MisdPhoneNumberConstraint
across entities, deprecate outdated validation logic, and remove unused methods for improved phone number validation.
2025-09-22 14:03:53 +02:00
ff2c567d05
Update default center type fallback in PersonEdit.vue
to "center"
for consistency.
2025-09-22 14:03:52 +02:00
a734e84f28
Remove unused Person.vue
import from types.ts
for cleanup and improved code maintainability.
2025-09-22 14:03:51 +02:00
4367ed086e
Enhance person creation workflow: Add onPersonCreated
event handling in Create
, CreateModal
, and AddPersons
. Update type definitions and integrate event emission for streamlined person management.
2025-09-22 14:03:51 +02:00
3227bfcd3a
Remove serializer.yaml
configuration, update PersonJsonNormalizer
and PersonJsonDenormalizer
for improved logic handling, adjust type hints in closures, and rename id
to definition_id
in PersonIdentifierWorkerNormalizer
.
2025-09-22 14:03:50 +02:00
8d29fb260a
Add validation and support for identifiers
in PersonJsonDenormalizer
, enhance altNames
handling, and update tests for improved coverage. Adjust PersonIdentifierManager
to handle identifier definitions by ID.
2025-09-22 14:03:50 +02:00
bda0743c63
Update test run guidelines to use the symfony
command for executing PHPUnit tests
2025-09-22 14:03:49 +02:00
d9b730627f
Introduce PersonJsonReadDenormalizer
and PersonJsonDenormalizer
to separate responsibilities for handling person denormalization. Add corresponding test classes for improved coverage. Refactor PersonJsonNormalizer
to remove denormalization logic.
2025-09-22 14:03:49 +02:00
27548ad654
Add support for person identifiers workflow: update PersonEdit
component, API methods, and modals for identifier handling during person creation. Adjust related types for improved consistency.
2025-09-22 14:03:48 +02:00
bec7297039
Add an api list of available person identifiers
2025-09-22 14:03:48 +02:00
852523e644
Refactor person management workflow: Introduce SetGender
, SetCivility
, and SetCenter
lightweight interfaces. Replace PersonState
with PersonEdit
for streamlined type usage. Enhance queryItems
logic and API methods for better consistency. Adjust AddPersons
modal to handle query input.
2025-09-22 14:03:47 +02:00
c05d0aad47
Refactor person creation workflow: Introduce PersonEdit
component and integrate it across Create
, Person.vue
, and modals for improved modularity. Update type definitions and API methods for consistency.
2025-09-22 14:03:47 +02:00
1c0ed9abc8
Enhance entity creation: Add CreateModal
and integrate with AddPersons
workflow.
2025-09-22 14:03:42 +02:00
9aed5cc216
Fix type hinting in PickEntity.vue
for addNewEntity
function
2025-09-22 14:03:25 +02:00
e4fe5bff68
Allow creating new entities directly from AddPersons
modal
2025-09-22 14:03:25 +02:00
4c73c4d9d0
Refactor AddPersons
modal into a separate PersonChooseModal
component for improved modularity and reusability.
2025-09-22 14:03:24 +02:00
38935edb93
Merge branch '71-fix-bug-add-urgent-on-init-modal-add-config-homepage' into 'ticket-app-master'
...
Correction de bugs, ajout champs urgents dans la modal d'initialisation du ticket et ajout d'un configuration pour l'affichage des tabs dans la homepage
See merge request Chill-Projet/chill-bundles!884
2025-09-22 09:23:30 +00:00
Boris Waaub
e1ef65d4ca
Correction de bugs, ajout champs urgents dans la modal d'initialisation du ticket et ajout d'un configuration pour l'affichage des tabs dans la homepage
2025-09-22 09:23:30 +00:00
ec9d0be70b
Merge branch '71-task-feature-and-bug-by-status-for-boris' into 'ticket-app-master'
...
Misc: homepage widget with tickets, and improvements in ticket list
See merge request Chill-Projet/chill-bundles!879
2025-09-16 11:16:57 +00:00
Boris Waaub
0ba2cbc1e8
Misc: homepage widget with tickets, and improvements in ticket list
2025-09-16 11:16:57 +00:00
e87429933a
Merge branch 'ticket/filter-ticket-by-id' into 'ticket-app-master'
...
Add ticket filtering "byTicketId"
See merge request Chill-Projet/chill-bundles!882
2025-09-15 09:17:23 +00:00
8e2e676e3d
Add ticket filtering "byTicketId"
2025-09-15 11:11:40 +02:00
e12ad563a3
Merge branch '1604-by-creator-and-by-user-assign-selector-for-ticket-list' into 'ticket-app-master'
...
[Frontend] Ajouter les sélecteur "par créateur", et "par utilisateur assigné"
See merge request Chill-Projet/chill-bundles!876
2025-09-09 08:24:08 +00:00
Boris Waaub
711aa8db9b
[Frontend] Ajouter les sélecteur "par créateur", et "par utilisateur assigné"
2025-09-09 08:24:08 +00:00
e78d44953f
Merge branch 'ticket/improve-ticket-list' into 'ticket-app-master'
...
Fix bugs in api endpoint to filter tickets, and add parameters byAddresseeGroup and byCreator
See merge request Chill-Projet/chill-bundles!875
2025-09-08 14:18:02 +00:00
18f67801c7
Fix bugs in api endpoint to filter tickets, and add parameters byAddresseeGroup and byCreator
2025-09-08 14:18:02 +00:00
c815e6bc69
Merge branch 'master' into ticket-app-master
2025-09-08 16:13:02 +02:00
807f2711fe
Merge branch 'fix-and-change-from-board-78' into 'ticket-app-master'
...
Améliorations liées au board 78
See merge request Chill-Projet/chill-bundles!873
2025-09-08 12:19:49 +00:00
Boris Waaub
cd594cd580
Améliorations liées au board 78
2025-09-08 12:19:49 +00:00
ac12b8cdcf
Merge branch 'add-permission-list-command' into 'master'
...
Add `RoleDumper` and `DumpListPermissionsCommand` to generate a markdown list of permissions
See merge request Chill-Projet/chill-bundles!874
2025-09-05 16:55:45 +00:00
9c1611d052
Add RoleDumper
and DumpListPermissionsCommand
to generate a markdown list of permissions
2025-09-05 16:55:45 +00:00
fb6b26bfb5
fix type hinting
2025-09-05 18:37:36 +02:00