craftercms / craftercms

Parent project for Crafter CMS. Issue tracking across all repositories and global builds.
GNU General Public License v3.0
282 stars 98 forks source link

UNLOCK site API #6718

Open jmendeza opened 3 weeks ago

jmendeza commented 3 weeks ago

Latest version

Duplicates

Is your enhancement request related to a problem? Please describe.

Site state is set to LOCKED during duplicate operation. If that operation is interrupted (e.g.: system crash/restart) the site will remain LOCKED.

Describe the solution you'd like

Add an unlock API to sites to allow an admin to unlock a site should an error causes the site to remain in LOCKED state.

Euquimides commented 11 hours ago

Hi @sumerjabri and @phuongnq ! While validating this ticket I noticed a small tabulation error which was giving problems when importing Studio OAS into Postman and other REST API tools. I fixed this in the following PR: https://github.com/craftercms/studio/pull/3549

The Studio OAS of v4.1.5 doesn't have this problem, so the fix should go only for develop branch.