forked from cloudfoundry/stratos
-
Notifications
You must be signed in to change notification settings - Fork 12
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 #554 from SUSE/workaround-normalizr-bug
Fix two role bugs related to Non-admins missing roles in Organisation Users page
- Loading branch information
Showing
19 changed files
with
687 additions
and
20 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
2 changes: 1 addition & 1 deletion
2
src/frontend/packages/cf-autoscaler/src/store/autoscaler-entity-factory.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
2 changes: 1 addition & 1 deletion
2
src/frontend/packages/cloud-foundry/src/cf-entity-schema-types.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
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
2 changes: 1 addition & 1 deletion
2
src/frontend/packages/cloud-foundry/src/entity-relations/entity-relations.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
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
2 changes: 1 addition & 1 deletion
2
...nd/packages/core/src/shared/components/app-action-monitor/app-action-monitor.component.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
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
2 changes: 1 addition & 1 deletion
2
src/frontend/packages/kubernetes/src/helm/helm-entity-factory.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
2 changes: 1 addition & 1 deletion
2
src/frontend/packages/kubernetes/src/kubernetes/kubernetes-entity-factory.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
2 changes: 1 addition & 1 deletion
2
...tore/src/entity-request-pipeline/entity-request-base-handlers/map-multi-endpoint.pipes.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
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
2 changes: 1 addition & 1 deletion
2
src/frontend/packages/store/src/helpers/schema-tree-traverse.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
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
3 changes: 2 additions & 1 deletion
3
src/frontend/packages/store/src/monitors/pagination-monitor.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
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,70 @@ | ||
/* tslint:disable */ | ||
declare namespace schema { | ||
export type StrategyFunction<T> = (value: any, parent: any, key: string) => T; | ||
export type SchemaFunction = (value: any, parent: any, key: string) => string; | ||
export type MergeFunction = (entityA: any, entityB: any) => any; | ||
|
||
export class Array<T = any> { | ||
constructor(definition: Schema<T>, schemaAttribute?: string | SchemaFunction) | ||
define(definition: Schema): void | ||
} | ||
|
||
export interface EntityOptions<T = any> { | ||
idAttribute?: string | SchemaFunction | ||
mergeStrategy?: MergeFunction | ||
processStrategy?: StrategyFunction<T> | ||
} | ||
|
||
export class Entity<T = any> { | ||
constructor(key: string | symbol, definition?: Schema, options?: EntityOptions<T>) | ||
define(definition: Schema): void | ||
key: string | ||
getId: SchemaFunction | ||
_processStrategy: StrategyFunction<T> | ||
} | ||
|
||
export class Object<T = any> { | ||
constructor(definition: SchemaObject<T>) | ||
define(definition: Schema): void | ||
} | ||
|
||
export class Union<T = any> { | ||
constructor(definition: Schema<T>, schemaAttribute?: string | SchemaFunction) | ||
define(definition: Schema): void | ||
} | ||
|
||
export class Values<T = any> { | ||
constructor(definition: Schema<T>, schemaAttribute?: string | SchemaFunction) | ||
define(definition: Schema): void | ||
} | ||
} | ||
|
||
export type Schema<T = any> = | ||
| schema.Entity<T> | ||
| schema.Object<T> | ||
| schema.Union<T> | ||
| schema.Values<T> | ||
| SchemaObject<T> | ||
| SchemaArray<T>; | ||
|
||
export type SchemaValueFunction<T> = (t: T) => Schema<T>; | ||
export type SchemaValue<T> = Schema<T> | SchemaValueFunction<T>; | ||
|
||
export interface SchemaObject<T> { | ||
[key: string]: SchemaValue<T> | ||
} | ||
|
||
export interface SchemaArray<T> extends Array<Schema<T>> {} | ||
|
||
export type NormalizedSchema<E, R> = { entities: E, result: R }; | ||
|
||
export function normalize<T = any, E = { [key:string]: { [key:string]: T } | undefined}, R = any>( | ||
data: any, | ||
schema: Schema<T> | ||
): NormalizedSchema<E, R>; | ||
|
||
export function denormalize( | ||
input: any, | ||
schema: Schema, | ||
entities: any | ||
): any; |
Oops, something went wrong.