You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The package is still verified after the organization owning the namespace was removed as the owner of the package.
Observation: Everything in database seems to be cleaned.
The package has only one owner that is not the org or the org admin.
The namespace "cmaad" is reserved by the cmanutestorg
The ReservedNamespaceRegistrations does not have a reference to the package that is verified.
Few UI snapshots:
The text was updated successfully, but these errors were encountered:
Looks like the IsVerified flag isn't cleared from the PackageRegistrations table after removing organization that owns it. @scottbommarito worked on it recently to manage and cleanup registrations for namespace for org owner removal.
Oh, I think I see the problem, the issue is on the same line mentioned above, however, the previous call to RemovePackageRegistrationFromNamespace() to remove the relevant PackageRegistration from ReservedNamespace is not committed, and its likely the !packageRegistration.ReservedNamespaces.Any() is returning false, thereby not removing the IsVerified flag, I will let @scottbommarito fix the issue, since it is likely this has far reaching effects due to the above said refactoring.
Currently RemovePackageRegistrationFromNamespace removes the PackageRegistration from the ReservedNamespace but does not remove the ReservedNamespace from the PackageRegistration. It needs to do both for the check you mentioned above to work.
The unit tests do not need to change because they already assume RemovePackageRegistrationFromNamespace does both.
See PR: #5984
The package is still verified after the organization owning the namespace was removed as the owner of the package.
Observation: Everything in database seems to be cleaned.
Few UI snapshots:

The text was updated successfully, but these errors were encountered: