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
When creating child projects (sub-projects), we currently create entitlements based on the features of the parent project member who initiates the creation. This process is handled separately from the internal/projects code, which may not be the ideal approach.
Here's the relevant code snippet:
// Retrieve the membership-to-feature mapping from the configuration
projectFeatures := s.cfg.Features.GetFeaturesForMemberships(ctx)
if err := qtx.CreateEntitlements(ctx, db.CreateEntitlementsParams{
Features: projectFeatures,
ProjectID: subProject.ID,
}); err != nil {
return nil, status.Errorf(codes.Internal, "error creating entitlements: %v", err)
}
It's unclear how entitlements for sub-projects should be handled. There are a few options:
Copy entitlements from the parent project.
Use entitlements based on the specific parent project member who creates them. (Current implementation)
Have an empty set of entitlements and extend entitlement queries to check parent projects.
Currently, we're following option 2, but it's not clear if this is the correct approach.
We need to determine the desired method for handling entitlements in sub-projects. Specifically:
Should sub-projects inherit entitlements from their parent projects?
Is it appropriate to base entitlements on the creator's features?
Would it be better to have sub-projects start with no entitlements and adjust our entitlement queries accordingly?
Next Steps:
@ethomson, could you please provide guidance on how we should handle entitlements for sub-projects?
When creating child projects (sub-projects), we currently create entitlements based on the features of the parent project member who initiates the creation. This process is handled separately from the
internal/projects
code, which may not be the ideal approach.Here's the relevant code snippet:
It's unclear how entitlements for sub-projects should be handled. There are a few options:
Currently, we're following option 2, but it's not clear if this is the correct approach.
We need to determine the desired method for handling entitlements in sub-projects. Specifically:
Next Steps:
@ethomson, could you please provide guidance on how we should handle entitlements for sub-projects?
CC: @ethomson @evankanderson
The text was updated successfully, but these errors were encountered: