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

TASK: Add indexing configuration for type DateTime #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dogawaf
Copy link

@dogawaf dogawaf commented Aug 24, 2019

No description provided.

@kdambekalns kdambekalns changed the title [TASK] Add indexing configuration for type DateTime TASK: Add indexing configuration for type DateTime Sep 12, 2019
@@ -14,6 +14,8 @@ Neos:
indexing: '${value}'
date:
indexing: '${(value ? Date.format(value, ''Y-m-d\TH:i:s'') + ''Z'' : null)}'
DateTime:
Copy link
Member

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…

Copy link
Member

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:
Copy link
Member

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…

Copy link
Member

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

Copy link
Member

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:
Copy link
Member

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:
Copy link
Member

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

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.

3 participants