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

Empty dates in querystring-search return string of None #1552

Open
JeffersonBledsoe opened this issue Dec 7, 2022 · 0 comments
Open

Empty dates in querystring-search return string of None #1552

JeffersonBledsoe opened this issue Dec 7, 2022 · 0 comments

Comments

@JeffersonBledsoe
Copy link
Member

The content API correctly returns null for an item, whilst the querystring-search returns "None". For example, "effective": null is returned as "EffectiveDate": "None"

Example API response from Plone6 demo site (6.0.0rc1)

https://6.demo.plone.org/++api++/@querystring-search:

{
    "@id": "https://6.demo.plone.org/@querystring-search",
    "items": [
        {
            "@id": "https://6.demo.plone.org",
            "@type": "Plone Site",
            "CreationDate": "2022-12-07T00:00:25+00:00",
            "Creator": "admin",
            "Date": "2022-12-07T18:44:34+00:00",
            "Description": "This site is a demonstration of Plone 6 with Volto for its frontend.",
            "EffectiveDate": "None",
            "ExpirationDate": "None",
            "ModificationDate": "2022-12-07T18:44:34+00:00",
            ...
        },
        ...
    ],
    ...
}
JeffersonBledsoe added a commit to pretagov/nsw-design-system-plone6 that referenced this issue Dec 7, 2022
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

No branches or pull requests

1 participant