Skip to content

Prepare for v2.2.2rc2 build #295

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

Merged
merged 5 commits into from
Oct 30, 2017
Merged

Prepare for v2.2.2rc2 build #295

merged 5 commits into from
Oct 30, 2017

Conversation

adobeDan
Copy link
Contributor

No description provided.

In order to fix #293, the logic around creating Adobe users had to be revamped.  The original logic was that all Adobe users would be created in the primary umapi, and when they were created there they would also be created in any secondaries for which they had group mappings.  But this fails when secondary group mappings are added *after* the user is created in the primary, as often happens for customers who add Stock consoles.  So now things work as follows:
* New Adobe users are always created in the primary umapi, which is expected be the org that owns all directories where users are created.
* New Adobe users are only created in a secondary umapi if they have groups there.

Revamping the logic around creates allowed streamlining and merging the (hitherto separate) code paths for push and sync:
* Push and Sync are now identical except for how they choose which Adobe users are new (push says they are all new, sync knows which are new).
* All creates in the primary umapi update attributes if requested (because the primary should own the directories); all attributes in secondaries don't update attributes (because the secondaries should trust the directories).

As part of the revamp, I found a spot where Adobe ID attributes were not being updated.  This was cleaned up in order to fix #286 again.

Finally, the order of group operations when users were created had been remove then add, while when a user was being updated it was add then remove.  Since there's some small, theoretical chance that product provisioning of configurations that contain two groups might be affected by the order of group operations, both sequences have been updated to use the remove then add ordering.  There's no issue for this, because we have no actual evidence that it matters.
The tricky part of this was to separate out which users are being added to the primary *and* the secondary, as opposed to which users are being updated by being added to the secondary.

Getting this right meant renaming a lot of the statistics to more clearly say what they are.
@adobeDan adobeDan merged commit 205b53f into master Oct 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant