Entidad / connector_paradym

Paradym connector for Mendix
Apache License 2.0
0 stars 0 forks source link

Sync projects throws uniqueness constraint error when multiple API settings (keys) are valid #5

Closed stephanbruijnis closed 2 months ago

stephanbruijnis commented 3 months ago

In the connector_paradym domain model a project is associated to a single APISettings object (API key) however if multiple keys exist within the configuration and those keys have access to the same projects the "Sync projects" will fail due to the uniqueness constraint on ProjectId.

On hand this is a good thing, projects should only exists once per id however, the sync shouldn't fail.

We probably need to revisit how projects are associated to API keys and how API keys are retrieved (multiple keys per project are allowed?)

stephanbruijnis commented 2 months ago

Syncing projects now is a selection projecess (instead of sync all), you select the APISettings and then click on Sync projects which shows which projects are available for that ApiKey. It is recommend to only sync the projects relevant for your implementation. Syncing a project that was already attached to a different APISettings will be updated to be using the current selected APISettings object.

Available in version 2.0.0-beta, which has been developed in the branch_API-update_e177f7b1 and merged in commit ee9320aecfdf37fd0ff5c08c08e3965b34bfd08b