func (r *GormWorkItemLinkTypeRepository) List(ctx context.Context, spaceID uuid.UUID) ([]WorkItemLinkType, error) {
	log.Info(ctx, map[string]interface{}{
		"space_id": spaceID,
	}, "Listing work item link types by space ID %s", spaceID.String())

	// We don't have any where clause or paging at the moment.
	var modelLinkTypes []WorkItemLinkType
	db := r.db.Where("space_id = ?", spaceID)
	if err := db.Find(&modelLinkTypes).Error; err != nil {
		return nil, errs.WithStack(err)
	}
	return modelLinkTypes, nil
}
// List returns all work item link types
// TODO: Handle pagination
List returns all work item link types
TODO: Handle pagination
// List returns all work item link types // TODO : Handle pagination
func (r *GormWorkItemLinkTypeRepository) List(ctx context.Context, spaceID uuid.UUID) ([]WorkItemLinkType, error) {
	log.Info(ctx, map[string]interface{}{
		"space_id": spaceID,
	}, "Listing work item link types by space ID %s", spaceID.String())
	var modelLinkTypes []WorkItemLinkType
	db := r.db.Where("space_id = ?", spaceID)
	if err := db.Find(&modelLinkTypes).Error; err != nil {
		return nil, errs.WithStack(err)
	}
	return modelLinkTypes, nil
}
func ( r * GormWorkItemLinkTypeRepository ) List ( ctx context . Context , spaceID uuid . UUID ) ( [ ] WorkItemLinkType , error ) { log . Info ( ctx , map [ string ] interface { } { " " : spaceID , } , " " , spaceID . String ( ) ) var modelLinkTypes [ ] WorkItemLinkType db := r . db . Where ( " " , spaceID ) if err := db . Find ( & modelLinkTypes ) . Error ; err != nil { return nil , errs . WithStack ( err ) } return modelLinkTypes , nil }
List returns all work item link types
TODO: Handle pagination
List returns all work item link types TODO : Handle pagination
// We don't have any where clause or paging at the moment.