strapi-connector-firestore
strapi-connector-firestore copied to clipboard
Each time when run development mode its create new permissions in permissions array
When I am running strapi app in development mode then it's creating(adding new permissions) in users-permissions_role collection.
Hi @jitendraP-ashutec , thank you for the report. A few questions to clarify:
- Each time the Strapi server is restarted, new permissions entries are created, is that right?
- Does this happen only in development mode and not production mode?
- What Strapi and connector versions are you running?
Hi @brettwillis
- Yes, each time Strapi server is restarted, it's adding new permissions entries.
- It's happening in development mode. I didn't check in production.
- I am using firebase strapi connector. Strapi versions: 3.6.5
Hi @jitendraP-ashutec sorry for the delay.
I can't seem to reproduce the issue. I'm running Strapi 3.6.8 and [email protected]
. Is it easy for you to check with these versions?
Some thoughts:
- Are you running on the Firestore emulator or on the Firestore production server? If on the emulator, you're aware that the entire database is erased when you shut down the emulator?
- Otherwise can you enable the
logTransactionStats
andlogQueries
options, and show me the console output on Strapi startup? See below - How many data types do you have? The connector applies some query size limits and perhaps it may be interferring with Strapi's logic if you have many data types...
// ./config/database.js
module.exports = ({ env }) => ({
defaultConnection: 'default',
connections: {
default: {
connector: 'firestore',
settings: {
// ...
},
options: {
// ...
// Enable logging
logQueries: true,
logTransactionStats: true,
}
}
},
});