-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[6.0] Tag history endpoint #44669
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
base: 6.0-dev
Are you sure you want to change the base?
[6.0] Tag history endpoint #44669
Conversation
Thank you @alikon for your contribution and for adding System Tests for the new REST API tag history functionality. Is it possible to also test PATCH and DELETE requests in the System Tests after testing GET? I would test in parallel with curl or postman and document this as the mentioned System Test spec is already included in the CI. And would ask around how to proceed with the documentation, e.g. there is no POST as the history entries are only created implicit. |
yes, of course |
@alikon We have discussed this PR among release managers and decided to move it to 6.0-dev as it's a new feature, so I've just rebased your PR. Now it shows 2 unrelated changes, but these will disappear after the next upmerge and branch update. |
I have tested this item 🔴 unsuccessfully on 5933d36
Not tested was the following. Should this or something elso be tested next time?
The database was checked in parallel and regardless of this PR, the entries in the content history are not deleted when the tag is deleted and I will create an issue. Notes on the documentation:
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44669. Files |
for the DELETE of a non existent item see #45589 for the GET it is the current behaviour of contenthistory not only for tags for the PATCH need some more free time to check |
Summary of Changes
added endpoints for tags history
GET v1/tags/:id/contenthistory
PATCH v1/tags/:id/contenthistory/keep
DELETE v1/tags/:id/contenthistory
Testing Instructions
npm cypress run --spec tests/System/integration/api/com_contenthistory/Tag.cy.js
Actual result BEFORE applying this Pull Request
N/A
Expected result AFTER applying this Pull Request
test + endpoint
Link to documentations
As discussed, this API enhancement will be documented first in https://manual.joomla.org/migrations/54-60/new-features, please note:
id
for/v1/tag/:id/contenthistory
is the contenthistory id and NOT thetag.id
PATCH
is only available for the attributekeep_forever
with/v1/tag/:id/contenthistory/keep
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed