Group Roles Get Deleted

Created on 26 April 2024, 2 months ago
Updated 30 April 2024, about 2 months ago

After completing a test migration, I've noticed that all Group Roles have been deleted. When the group_content__group_roles table was renamed to group_content__group_roles, it apparently was truncated.

I am getting the expected renamed config files for each Group type's membership, where "content" has been replaced by "relationship" with all the same data, including UUID.

πŸ› Bug report
Status

Closed: works as designed

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States msypes

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @msypes
  • Status changed to Postponed: needs info 2 months ago
  • πŸ‡¨πŸ‡±Chile mnico Santiago, Chile

    Can you share the result of running drush updb?

    After completing a test migration, I've noticed that all Group Roles have been deleted. When the group_content__group_roles table was renamed to group_content__group_roles, it apparently was truncated.

    The group_content__group_roles table would be replaced by the group_relationship__group_roles table. But first the "Copy data" step should pass the data from the first table to the second. Once the data has been copied, the "Remove old configurations" step proceeds with deleting the group_content__group_roles table.

    Data still exists in my tests after updating. Possibly in your tests something prevented the data from being copied correctly

  • πŸ‡ΊπŸ‡ΈUnited States msypes

    Sorry. I should have realized this was a false alarm. It does look like something got misconfigured during git operations to bring my test branch up-to-snuff. The output from drush deploy did not report anything unusual in the tests when roles weren't copied. At any rate though, I've been able to rebuild the migration process locally and can try deploying to a shared development environment again.

  • Status changed to Closed: cannot reproduce about 2 months ago
  • πŸ‡ΊπŸ‡ΈUnited States msypes
  • Status changed to Postponed: needs info about 2 months ago
  • πŸ‡ΊπŸ‡ΈUnited States msypes

    Apparently I spoke too soon. Something is still not working right as far as roles are concerned. The table isn't truncated, but members' roles aren't showing up on a group's list of members.
    I will continue to investigate and report as I find more info.

  • πŸ‡¨πŸ‡±Chile mnico Santiago, Chile

    Could it be related to what was reported in https://www.drupal.org/project/group2to3/issues/3439510 πŸ› Members tab doesn't appear on group page and members operation link in group list doesn't work Needs work ?

  • πŸ‡ΊπŸ‡ΈUnited States msypes

    I have isolated the problem. It is not a defect in this module.

    The problem is that I just cannot use this module in the way I would like to, because there is no way to deploy the changes it introduces in a repeatable manner to a higher level environment, at least not with the practices we use.

    When the migration takes place, new UUIDs are generated for the replacement/renamed configurations. When I perform the basic procedure on a local environment, everything seems to work just fine, but our workflow has me export the configurations and deploy those to a shared dev environment, then to stage, and finally to prod. That's when things break. I'm guessing here, but I see that the migration generates different UUIDs each time and deploying the configs overwrites them, so there are mismatches that cannot be resolved. Perhaps if the new UUIDs were reproducible/predictable, so that every environment would get the same ones, this wouldn't happen.

    At any rate, this module works as described, but just isn't usable by me, and I dare say, by many others, since our workflow is a pretty common one. I'll keep my eyes on this module, in case there's some solution. I do appreciate your work on this, and your prompt attention to the issues I've raised. Thanks.

  • Status changed to Closed: works as designed about 2 months ago
  • πŸ‡ΊπŸ‡ΈUnited States msypes
Production build 0.69.0 2024