From 2dd33cc6c274362ce46c545c65349be260e6eb28 Mon Sep 17 00:00:00 2001 From: kawa Date: Tue, 2 Jun 2026 11:30:34 +0200 Subject: [PATCH] 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) --- .gitignore | 8 ++++++++ data/profiles.example.json | 3 +++ data/profiles.json | 12 ------------ data/users.example.json | 3 +++ data/users.json | 12 ------------ 5 files changed, 14 insertions(+), 24 deletions(-) create mode 100644 data/profiles.example.json delete mode 100644 data/profiles.json create mode 100644 data/users.example.json delete mode 100644 data/users.json diff --git a/.gitignore b/.gitignore index 7a4ab44..7d74565 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/data/profiles.example.json b/data/profiles.example.json new file mode 100644 index 0000000..c905c95 --- /dev/null +++ b/data/profiles.example.json @@ -0,0 +1,3 @@ +{ + "profiles": [] +} diff --git a/data/profiles.json b/data/profiles.json deleted file mode 100644 index 9f4223b..0000000 --- a/data/profiles.json +++ /dev/null @@ -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 - } - ] -} \ No newline at end of file diff --git a/data/users.example.json b/data/users.example.json new file mode 100644 index 0000000..ea1ebff --- /dev/null +++ b/data/users.example.json @@ -0,0 +1,3 @@ +{ + "users": [] +} diff --git a/data/users.json b/data/users.json deleted file mode 100644 index 5f05a3c..0000000 --- a/data/users.json +++ /dev/null @@ -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" - } - ] -} \ No newline at end of file