func (m *GormIdentityRepository) List(ctx context.Context) (*app.IdentityArray, error) {
	defer goa.MeasureSince([]string{"goa", "db", "identity", "list"}, time.Now())
	var rows []Identity

	err := m.db.Model(&Identity{}).Order("username").Find(&rows).Error
	if err != nil && err != gorm.ErrRecordNotFound {
		return nil, errors.WithStack(err)
	}
	res := app.IdentityArray{}
	res.Data = make([]*app.IdentityData, len(rows))
	for index, value := range rows {
		ident := value.ConvertIdentityFromModel()
		res.Data[index] = ident.Data
	}

	log.Debug(ctx, map[string]interface{}{
		"identity_list": &res,
	}, "Identity List executed successfully!")

	return &res, nil
}
// List return all user identities
List return all user identities
// List return all user identities
func (m *GormIdentityRepository) List(ctx context.Context) (*app.IdentityArray, error) {
	defer goa.MeasureSince([]string{"goa", "db", "identity", "list"}, time.Now())
	var rows []Identity
	err := m.db.Model(&Identity{}).Order("username").Find(&rows).Error
	if err != nil && err != gorm.ErrRecordNotFound {
		return nil, errors.WithStack(err)
	}
	res := app.IdentityArray{}
	res.Data = make([]*app.IdentityData, len(rows))
	for index, value := range rows {
		ident := value.ConvertIdentityFromModel()
		res.Data[index] = ident.Data
	}
	log.Debug(ctx, map[string]interface{}{
		"identity_list": &res,
	}, "Identity List executed successfully!")
	return &res, nil
}
func ( m * GormIdentityRepository ) List ( ctx context . Context ) ( * app . IdentityArray , error ) { defer goa . MeasureSince ( [ ] string { " " , " " , " " , " " } , time . Now ( ) ) var rows [ ] Identity err := m . db . Model ( & Identity { } ) . Order ( " " ) . Find ( & rows ) . Error if err != nil && err != gorm . ErrRecordNotFound { return nil , errors . WithStack ( err ) } res := app . IdentityArray { } res . Data = make ( [ ] * app . IdentityData , len ( rows ) ) for index , value := range rows { ident := value . ConvertIdentityFromModel ( ) res . Data [ index ] = ident . Data } log . Debug ( ctx , map [ string ] interface { } { " " : & res , } , " " ) return & res , nil }
List return all user identities
List return all user identities