mirror of
https://github.com/mattermost/mattermost.git
synced 2026-05-25 19:12:15 -04:00
* Generate default_roles_permissions.js from a live server snapshot Replace the hand-maintained default_roles_permissions.js with a generated file. The generator (scripts/default_permissions_generator/) boots a real app.NewServer() against a temporary database created by storetest.MakeSqlSettings, lets all schema and app-level migrations run naturally, then snapshots the resulting Roles table into the JS file. This eliminates the drift risk of the previous hand-maintained map: new migrations are picked up automatically because the same server initialization path is used here as in production. The CI job gets a postgres service and sets IS_CI=true so the generator uses the same host-switching logic as the rest of the test suite. Locally, make start-docker provides the postgres instance. * Address CodeRabbit feedback: pin checkout SHA, add permissions, add .PHONY entries |
||
|---|---|---|
| .. | ||
| config_generator | ||
| default_permissions_generator | ||
| esrupgrades | ||
| testdata | ||
| diff-config.sh | ||
| diff-email-templates.sh | ||
| get_latest_release.sh | ||
| jq-dep-check.sh | ||
| ldap-check.sh | ||
| mattermost-postgresql-5.0.0.sql | ||
| mattermost-postgresql-6.0.0.sql | ||
| mirror-docker-images.json | ||
| mirror-docker-images.sh | ||
| prereq-check-enterprise.sh | ||
| psql-migration-test.sh | ||
| run-shard-tests.sh | ||
| shard-split.js | ||
| shard-split.test.js | ||
| vet-api-check.sh | ||
| wait-for-system-start.sh | ||