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

Edit Content: Expose Date and User Information in Content API Response #28183

Closed
5 tasks done
Tracked by #25445
fmontes opened this issue Apr 10, 2024 · 3 comments · Fixed by #28603
Closed
5 tasks done
Tracked by #25445

Edit Content: Expose Date and User Information in Content API Response #28183

fmontes opened this issue Apr 10, 2024 · 3 comments · Fixed by #28603

Comments

@fmontes
Copy link
Member

fmontes commented Apr 10, 2024

Parent

#25445

User Story

As a developer, I want to be able to access the creation, update, and publish date and user information of a contentlet in the content API response, so I can track the history of the content.

Currently, we have:

  • modUser: user id
  • modUserName: Full name
  • owner: creator user id
  • modDate: not sure what date this is
  • publishDate: publish date

Acceptance Criteria

We need to add

Preview Give feedback

Proposed Objective

Core Features

Proposed Priority

Priority 2 - High

External Links... Slack Conversations, Support Tickets, Figma Designs, etc.:

N/A

Assumptions & Initiation Needs

  • The backend system should be able to capture and store the date and user information for contentlet actions.
  • API documentation should be updated to reflect the new properties in the response.

Quality Assurance Notes & Workarounds

  • QA should verify that the date and user information displayed in the API response matches the actual history of
@jcastro-dotcms
Copy link
Contributor

jcastro-dotcms commented May 17, 2024

Postman Tests are available in the following locations:

  • Content_Resource.postman_collection.json : Content Resource / Checking JSON Attributes
  • ContentResourceV1.postman_collection.json : ContentResourceV1 / Checking JSON Attributes
  • GraphQLTests.json : GraphQL / Page API / Checking Content Audit Attributes
  • PagesResourceTests.json : Page API - [api/v1/page] / Checking JSON Attributes

github-merge-queue bot pushed a commit that referenced this issue May 20, 2024
…n in Content API Response (#28603)

### Proposed Changes
* Exposes audit information to all Contentlets in dotCMS.

Here's the list of audit properties that are being exposed, and how they
can be accessed by the different consumers:

| Attribute | REST Endpoint | Elasticsearch | GraphQL |
| -------- | ------- | ------- | ------- |
| `creationDate` | `creationDate` | `creationDate` | `creationDate` |
| `owner` | `owner` | `owner` | `owner` |
| `ownerName` | `ownerName` | Only the User ID is available | Reachable
inside the "owner" object |
| `modDate` | `modDate` | `modDate` | `modDate` |
| `modUser` | `modUser` | `modUser` | `modUser` |
| `modUserName` | `modUserName` | Only the User ID is available |
Reachable inside the "modUser" object |
| `publishDate` | `publishDate` | `sysPublishDate` | `publishDate` |
| `publishUser` | `publishUser` | `sysPublishUser` | `publishUser` |
| `publishUserName` | `publishUserName` | Only the User ID is available
| Reachable inside the "publishUser" object |
@github-project-automation github-project-automation bot moved this from In Review to Internal QA in dotCMS - Product Planning May 20, 2024
@github-project-automation github-project-automation bot moved this from Internal QA to Current Sprint Backlog in dotCMS - Product Planning May 21, 2024
@jcastro-dotcms jcastro-dotcms moved this from Current Sprint Backlog to Internal QA in dotCMS - Product Planning May 21, 2024
@zJaaal zJaaal self-assigned this May 21, 2024
@zJaaal
Copy link
Contributor

zJaaal commented May 21, 2024

IQA Passed

Tested on the Postman tests indicated by @jcastro-dotcms and also Lucene Query from the Content Search and all cases include the requested properties.

Docker Image: [dotcms/dotcms:trunk_a481a77]

@zJaaal zJaaal moved this from Internal QA to QA - Backlog in dotCMS - Product Planning May 21, 2024
@bryanboza
Copy link
Member

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