node-vision / strapi-plugin-entity-relationship-chart

Strapi Plugin displays Entity Relationship Diagram of all models, fields and relations.
180 stars 24 forks source link

Add `pluginSectionLinks` to make it work on Strapi 3.1.x #3

Closed willianjusten closed 4 years ago

willianjusten commented 4 years ago

This change is needed because with the new RBAC feature of Strapi, all the plugins resides in a pluginSectionLinks key.

You can see the migration guide here: https://strapi.io/documentation/v3.x/migration-guide/migration-guide-3.0.x-to-3.1.x.html#_3-migrate-your-custom-admin-panel-plugins

willianjusten commented 4 years ago

This PR fixes #2

terchris commented 4 years ago

Hi @willianjusten Thanks for solving this.

Not knowing the structure of strapi made it a bit of detective work for me. So for those who are not so familiar with the structure .. The file you need to change is: node_modues/strapi-plugin-entity-relationship-chart/admin/src/index.js

willianjusten commented 4 years ago

Or you can even install via my github, which works fine directly. Just run:

# via yarn
yarn add https://github.com/willianjusten/strapi-plugin-entity-relationship-chart

# via npm
npm install https://github.com/willianjusten/strapi-plugin-entity-relationship-chart
willianjusten commented 4 years ago

I'm waiting @romanmandryk to have a look here and just merge this PR.

bglidwell commented 4 years ago

Just adding that this fix works fine for me. Can we get it merged or should we all just switch to @willianjusten

romanmandryk commented 4 years ago

Thansk @willianjusten for this PR.