notum-cz / strapi-plugin-record-locking

This plugin provides the functionality to prevent data loss in cases where multiple users are simultaneously editing the same record within STRAPI v4.
20 stars 8 forks source link

Record lock even when the content manager has left the page #26

Closed NEONefffect closed 1 year ago

NEONefffect commented 1 year ago

Record lock even when the content manager has left the page ( go back, close tab/browser)

steps to reproduce: 1 open any entry 2 close tab 3 open another browser/incognito window 4 login under another account 5 open the same record

Strapi Version: 4.10.2 Node/Yarn Version: yarn/1.22.11 npm/? node/v18.16.0 darwin x64 Edition: Community Database: postgres "@notum-cz/strapi-plugin-record-locking": "^0.3.3"

NEONefffect commented 1 year ago

issue with @strapi-community/strapi-plugin-url-alias added "visible": false solve problem

  "pluginOptions": {
    "content-manager": {
      "visible": false,
    },
    "content-type-builder": {
      "visible": false,
    },
  },
omikulcik commented 1 year ago

Hey @NEONefffect, thank you for pointing this out. We will consider adding this to readme because it might help others

IgorNichiporuk commented 10 months ago

@omikulcik Is this issue fixed in v1.3.8?

Because I have this issue, but don't have the plugin that was mentioned by @NEONefffect. Strapi Version: 4.13.7 Node 18.19.0 Database: Postgres "@notum-cz/strapi-plugin-record-locking": "^1.3.6"

From the editor: "When I open the page in Strapi, it says that the article is edited by another editor, however, this is not the case, the page is closed by the editor who is indicated on the notification"

omikulcik commented 9 months ago

Hi @IgorNichiporuk do you please have any other plugins? It should be working but I will double check.

IgorNichiporuk commented 9 months ago

Hi, @omikulcik, sorry for late response! There is my package.json (part of it): "devDependencies": { "@strapi/eslint-config": "^0.1.2", "@types/node-fetch": "^2.6.4", "@types/pg": "^8.6.6", "@typescript-eslint/eslint-plugin": "^5.14.0", "@typescript-eslint/parser": "^5.14.0", "eslint": "8.22.0", "eslint-config-airbnb-typescript": "^16.1.1", "eslint-plugin-import": "^2.25.4", "eslint-plugin-node": "^11.1.0", "eslint-plugin-simple-import-sort": "^8.0.0", "eslint-plugin-unused-imports": "^2.0.0", "typescript": "^4.6.2", "webpack": "^5.75.0" }, "dependencies": { "@_sh/strapi-plugin-ckeditor": "^2.0.4", "@notum-cz/strapi-plugin-record-locking": "^1.3.8", "@strapi/plugin-documentation": "4.13.7", "@strapi/plugin-graphql": "4.13.7", "@strapi/plugin-i18n": "4.13.7", "@strapi/plugin-seo": "^1.7.7", "@strapi/plugin-users-permissions": "4.13.7", "@strapi/provider-upload-aws-s3": "^4.11.1", "@strapi/strapi": "4.13.7", "@types/lodash": "^4.14.191", "axios": "^1.4.0", "css-loader": "^6.7.3", "escape-html": "^1.0.3", "lodash": "^4.17.21", "mongodb": "^5.0.1", "node-fetch": "^3.3.1", "patch-package": "^8.0.0", "pg": "8.8.0", "pluralize": "^8.0.0", "postinstall-postinstall": "^2.1.0", "strapi-plugin-entity-relationship-chart": "^4.1.0", "strapi-plugin-import-export-entries": "^1.21.1", "strapi-plugin-multi-select": "^1.1.0", "strapi-plugin-preview-button": "1.1.3", "strapi-plugin-redirects": "^0.0.6", "style-loader": "^3.3.2" }, "overrides": { "strapi-plugin-redirects": { "react": "^18.2.0", "react-dom": "^18.2.0" } },

And yes, yday I received again the message from the editor: 'We have a problem with Strapi again, it says that the page is edited by another editor but it is closed.'

IgorNichiporuk commented 9 months ago

image image

So, I was on the /about-us/ page, closed it and stayed on /albania/. As you can see, we can both be on the /albania/ page at the same time, but the colleague can't go to the /about-us/ page.

Screenshots from the conversation with the coworker. Here is his screen when I was on the /albania/ page.

IgorNichiporuk commented 9 months ago

And, funny enough, it works fine on localhost

omikulcik commented 9 months ago

I think it might be problem with transporters I have just merged #66 and will release a new version immediately. Please, check whether that fixes your issue.

IgorNichiporuk commented 9 months ago

Thanks a lot @omikulcik ! Unfortunately, after updating I got this:

image image image
IgorNichiporuk commented 9 months ago

And what's interesting, I was trying 1.3.9; 1.3.8; 1.3.6 and always got the same error

I wanted to open one of the entities from my collection

image

When I uninstalled the plugin, everything worked!

IgorNichiporuk commented 9 months ago

@omikulcik, do you have any ideas?

IgorNichiporuk commented 8 months ago

@omikulcik, Hi! The issue is still presented.

Editor's message: "Hi, I'm experiencing the problem of not being able to get into an article in Strapi because it thinks someone else is editing the article when they're not. The problem started yesterday pm and it's the same this morning, Thank you! "

"devDependencies": { "@strapi/eslint-config": "^0.1.2", "@types/node-fetch": "^2.6.4", "@types/pg": "^8.6.6", "@typescript-eslint/eslint-plugin": "^5.14.0", "@typescript-eslint/parser": "^5.14.0", "eslint": "8.22.0", "eslint-config-airbnb-typescript": "^16.1.1", "eslint-plugin-import": "^2.25.4", "eslint-plugin-node": "^11.1.0", "eslint-plugin-simple-import-sort": "^8.0.0", "eslint-plugin-unused-imports": "^2.0.0", "typescript": "^4.6.2", "webpack": "^5.75.0" }, "dependencies": { "@_sh/strapi-plugin-ckeditor": "^2.0.4", "@notum-cz/strapi-plugin-record-locking": "^1.3.10", "@strapi/plugin-documentation": "4.20.2", "@strapi/plugin-graphql": "4.20.2", "@strapi/plugin-i18n": "4.20.2", "@strapi/plugin-seo": "^1.7.7", "@strapi/plugin-users-permissions": "4.20.2", "@strapi/provider-upload-aws-s3": "^4.11.1", "@strapi/strapi": "4.20.2", "@types/lodash": "^4.14.191", "axios": "^1.4.0", "css-loader": "^6.7.3", "escape-html": "^1.0.3", "lodash": "^4.17.21", "mongodb": "^5.0.1", "node-fetch": "^3.3.1", "patch-package": "^8.0.0", "pg": "8.8.0", "pluralize": "^8.0.0", "postinstall-postinstall": "^2.1.0", "react": "^18.0.0", "react-dom": "^18.0.0", "react-router-dom": "5.3.4", "strapi-plugin-entity-relationship-chart": "^4.1.0", "strapi-plugin-import-export-entries": "^1.21.1", "strapi-plugin-multi-select": "^1.1.0", "strapi-plugin-preview-button": "1.1.3", "strapi-plugin-redirects": "^0.0.6", "style-loader": "^3.3.2", "styled-components": "5.3.3" },

I would be very much appreciative of any help