-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4365 from alkem-io/develop
Release: Account, LatestContributions, Fixes
- Loading branch information
Showing
127 changed files
with
2,145 additions
and
1,666 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ SYNAPSE_SHARED_SECRET=n#P.uIl8IDOYPR-fiLzDoFw9ZPvTIlYg7*F9*~eaDZFK#;.KRg | |
SYNAPSE_ENABLE_REGISTRATION=true | ||
SYNAPSE_NO_TLS=true | ||
SYNAPSE_SERVER_URL=http://synapse:8008 | ||
[email protected] | ||
|
||
|
||
POSTGRES_USER=synapse | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
export enum SpaceReservedName { | ||
USER = 'user', | ||
ORGANIZATION = 'organization', | ||
VIRTUAL_CONTRIBUTOR = 'vc', | ||
ADMIN = 'admin', | ||
INNOVATION_LIBRARY = 'innovation-library', | ||
INNOVATION_PACKS = 'innovation-packs', | ||
CREATE_SPACE = 'create-space', | ||
HOME = 'home', | ||
SPACES = 'spaces', | ||
CONTRIBUTORS = 'contributors', | ||
FORUM = 'forum', | ||
ABOUT = 'about', | ||
PROFILE = 'profile', | ||
RESTRICTED = 'restricted', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { LogContext, AlkemioErrorStatus } from '@common/enums'; | ||
import { BaseException } from './base.exception'; | ||
import { ExceptionDetails } from './exception.details'; | ||
|
||
export class InvalidUUID extends BaseException { | ||
constructor(error: string, context: LogContext, details?: ExceptionDetails) { | ||
super(error, context, AlkemioErrorStatus.INVALID_UUID, details); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...ore/dataloader/creators/loader.creators/account/account.innovation.pack.loader.creator.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { EntityManager } from 'typeorm'; | ||
import { Injectable } from '@nestjs/common'; | ||
import { InjectEntityManager } from '@nestjs/typeorm'; | ||
import { Account } from '@domain/space/account/account.entity'; | ||
import { createTypedRelationDataLoader } from '../../../utils'; | ||
import { DataLoaderCreator, DataLoaderCreatorOptions } from '../../base'; | ||
import { IInnovationPack } from '@library/innovation-pack/innovation.pack.interface'; | ||
|
||
@Injectable() | ||
export class AccountInnovationPacksLoaderCreator | ||
implements DataLoaderCreator<IInnovationPack[]> | ||
{ | ||
constructor(@InjectEntityManager() private manager: EntityManager) {} | ||
|
||
create(options?: DataLoaderCreatorOptions<IInnovationPack[]>) { | ||
return createTypedRelationDataLoader( | ||
this.manager, | ||
Account, | ||
{ innovationPacks: true }, | ||
this.constructor.name, | ||
options | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.