Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP Mixiskra #12

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

WIP Mixiskra #12

wants to merge 9 commits into from

Conversation

bloodbare
Copy link
Member

No description provided.

}

export interface AvialiableRole {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: AvailableRole

}

export interface Entrie {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: Entry

@@ -140,6 +140,7 @@ export interface Resource extends BaseItem {
'@name': string;
'@type': string;
'@uid': string;
UID: string;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Guillotina resources do not have a UID attribute

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Plone resources does not have @uid :')

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, so 2 options:

  • Either me make both of them optional:
@uid'?: string;
UID?: string;

and in all our code, we will have to check which value exists.

  • Either in the resource service, in get (and any method returning a resource) we normalize the data to rename UID into @uid. It could be done by a function we provide in the main app module, and we would provide it only when using Plone as backend.

I like the 2nd option :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like 2nd Option also !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants