This repository has been archived by the owner on Jan 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix org/space shemas - Selecting cf/org/spaces in filter or add/deploy app should work again - Only have one type of Space/Org Schema * Add missing file
- Loading branch information
1 parent
9b571c6
commit 3e20eb0
Showing
11 changed files
with
173 additions
and
182 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
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,28 @@ | ||
import { schema } from 'normalizr'; | ||
import { getAPIResourceGuid } from '../selectors/api.selectors'; | ||
|
||
export const organisationSchemaKey = 'organization'; | ||
export const OrganisationSchema = new schema.Entity(organisationSchemaKey, {}, { | ||
idAttribute: getAPIResourceGuid | ||
}); | ||
|
||
export const spaceSchemaKey = 'space'; | ||
export const SpaceSchema = new schema.Entity(spaceSchemaKey, {}, { | ||
idAttribute: getAPIResourceGuid | ||
}); | ||
|
||
export const OrganisationWithSpaceSchema = new schema.Entity(organisationSchemaKey, { | ||
entity: { | ||
spaces: [SpaceSchema] | ||
} | ||
}, { | ||
idAttribute: getAPIResourceGuid | ||
}); | ||
|
||
export const SpaceWithOrganisationSchema = new schema.Entity(spaceSchemaKey, { | ||
entity: { | ||
organization: OrganisationSchema | ||
} | ||
}, { | ||
idAttribute: getAPIResourceGuid | ||
}); |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.