Skip to content

Conversation

odain-cbd
Copy link
Contributor

Purpose

Current PR aims at gathering all special attributes at the same place. These attributes should not be taken into account to deal with datasource computation/synchronization.

Symptom

Datasource synchronization may fail with below error due to a regression (PR 32/ N°6115):
[Error] Failed to update the SynchroDataSource 'XXX' (2). Reason: Error: notify_contact_id_archive_flag: Attempting to set the value on the read-only attribute SynchroDataSource::notify_contact_id_archive_flag (100)

Corollary

Datasource computation has been enhanced and related test coverage completed...

@odain-cbd odain-cbd added bug Something isn't working enhancement New feature or request labels Feb 5, 2025
@odain-cbd odain-cbd self-assigned this Feb 5, 2025
@CombodoApplicationsAccount CombodoApplicationsAccount added the internal Work made by Combodo label Feb 5, 2025
@rquetiez rquetiez self-requested a review July 10, 2025 08:21
* @var string TABLENAME_PATTERN used to validate data synchro table name
*/
const TABLENAME_PATTERN = '/^[A-Za-z0-9_]*$/';
const READONLY_FIELDS = [

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Such a list depends on the datamodel: depending on class properties, the list of magical fields (related to obsolescence or archive) may vary.
    The class "User" is not often subject to change, but The class "Contact" can be customized easily.
  2. It is weird that you did not encounter the case with obsolescence_date and archive_date.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

readonly fields here are related to DataSynchro objects. not Contact.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request internal Work made by Combodo
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants