Right now if a dataset is added to a group, the resource is not added to the same group. This is a problem since they should share the same group permissions etc.
The solution is to check with hook_update for datasets and if a group is changing to also change all of the resources to the same group as well. This would best be done with job_scheduler since what if a dataset has hundreds of resources? A first stab at it would not necessarily need that.