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

Slug not getting generated for each Collections #457

Closed
miraj92 opened this Issue Jul 14, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@miraj92
Copy link

miraj92 commented Jul 14, 2018

Expected behavior

Slugs should be there when we generate collections.

Actual behaviour

After Upgrading API to 4.0, The collections in 4.0 are not generating slugs for each collection.
When we hit /api/collections in Dadi API v3.2, In the response we are getting Slug key as mentioned below

{
    "collections": [
        {
            "version": "1.0",
            "database": "tdw-api",
            "name": "About",
            "slug": "about",
            "path": "/1.0/tdw-api/about"
        }
     ]
}

Where in Dadi API 4.0, the Slug key is missing Due to which https://github.com/dadi/publish/blob/develop/app/lib/models/collection.js#L43 going undefined and nothing works for publish.

Steps to reproduce the problem

Upgrade API to 4.0 and try to access the publish

Package details

Dadi API
[*] 4.0

@eduardoboucas

This comment has been minimized.

Copy link
Member

eduardoboucas commented Jul 18, 2018

This should now be fixed in version 4.0.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment