-
Notifications
You must be signed in to change notification settings - Fork 22
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
TASK: Add indexing configuration for type DateTime #30
base: master
Are you sure you want to change the base?
Conversation
@@ -14,6 +14,8 @@ Neos: | |||
indexing: '${value}' | |||
date: | |||
indexing: '${(value ? Date.format(value, ''Y-m-d\TH:i:s'') + ''Z'' : null)}' | |||
DateTime: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does that work with DateTimeInterface
? Then it would be universal…
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure, but in doubt we can just configure both?
@@ -14,6 +14,8 @@ Neos: | |||
indexing: '${value}' | |||
date: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could date
be removed then? TBH I don't understand why that used to work, date
never was a valid type in PHP land…
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure, did we ever deprecate it, does it still work to use it? We manually map it somewhere... Why ever we did that.
We should also take care (probably next version though) to deprecate reference and references and make it Node and array
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NVM that, doesn't really belong here. I thought this was a change in Neos.
@@ -14,6 +14,8 @@ Neos: | |||
indexing: '${value}' | |||
date: | |||
indexing: '${(value ? Date.format(value, ''Y-m-d\TH:i:s'') + ''Z'' : null)}' | |||
DateTime: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure, but in doubt we can just configure both?
@@ -14,6 +14,8 @@ Neos: | |||
indexing: '${value}' | |||
date: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure, did we ever deprecate it, does it still work to use it? We manually map it somewhere... Why ever we did that.
We should also take care (probably next version though) to deprecate reference and references and make it Node and array
No description provided.