After a new organization is created we do not refresh user's permissions. This causes a problem when a user selects the newly created organization and sees a lacking permissions note for "Launch new cluster" button.
In this PR I fixed this bug - once an organization is being created (or deleted) I refetch all the permissions.
In addition to this fix we decided that it makes sense to display a warning after organization creation that some permissions can be not set up yet. This message is being displayed during first 5 minutes after organization creation.
@marians thank you for the review. As we decided to additionally display a message during 5 minutes after organization creation, I added another commit here. See the updated screenshot in the description.
What does this PR do?
After a new organization is created we do not refresh user's permissions. This causes a problem when a user selects the newly created organization and sees a lacking permissions note for "Launch new cluster" button.
In this PR I fixed this bug - once an organization is being created (or deleted) I refetch all the permissions.
In addition to this fix we decided that it makes sense to display a warning after organization creation that some permissions can be not set up yet. This message is being displayed during first 5 minutes after organization creation.
Any background context you can provide?
Closes https://github.com/giantswarm/roadmap/issues/2945.