Stop tracking runtime data; seed from *.example.json

data/profiles.json and data/users.json hold live tenant config and
user records that the app rewrites at runtime (lastLogin etc.), so they
dirtied git status on every run. Untrack them and gitignore data/*.json
(plus logs/exports/templates/audit), keeping committed *.example.json
seeds. Repositories already create empty files on first save, so a
fresh clone starts clean and provisions the first user as Admin.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-02 11:30:34 +02:00
parent 0a0c59319f
commit 2dd33cc6c2
5 changed files with 14 additions and 24 deletions
+8
View File
@@ -56,3 +56,11 @@ TestResults/
*.trx
*.coveragexml
coverage/
## Runtime data (seeded from *.example.json; never commit live tenant/user data)
data/*.json
!data/*.example.json
data/logs/
data/exports/
data/templates/
data/audit.jsonl
+3
View File
@@ -0,0 +1,3 @@
{
"profiles": []
}
-12
View File
@@ -1,12 +0,0 @@
{
"profiles": [
{
"id": "013fd12a-3282-4780-babc-d0e94f80a68f",
"name": "AB Cube",
"tenantUrl": "https://abcube.sharepoint.com",
"tenantId": "66ce65de-d1de-4d74-8a59-f8f2b196b11a",
"clientId": "60fc19ea-13ca-452a-9db9-7e3b89d37247",
"clientLogo": null
}
]
}
+3
View File
@@ -0,0 +1,3 @@
{
"users": []
}
-12
View File
@@ -1,12 +0,0 @@
{
"users": [
{
"id": "21e0cb63-eb81-4503-8201-8e268985a056",
"email": "dev@local.test",
"displayName": "Dev Admin",
"role": 2,
"createdAt": "2026-05-29T14:17:03.9853276+00:00",
"lastLogin": "2026-06-01T09:22:36.0655945+00:00"
}
]
}