Add seeded environment data, provenance, statistics, and dataset card
Browse files- LICENSES.md +7 -0
- README.md +34 -0
- data/glpi_knowledge_documents.json +0 -0
- data/glpi_tickets.json +0 -0
- data/glpi_user_mapping.json +0 -0
- data/knowledge_base_documents.json +0 -0
- data/seed_data.json +1532 -0
- preparation/build_glpi_seed_assets.py +1593 -0
- preparation/seed_peppermint.js +344 -0
- release-manifest.json +58 -0
LICENSES.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Source licenses and attribution
|
| 2 |
+
|
| 3 |
+
GLPI documentation retains CC BY-SA 3.0 France terms and source attribution. A redistribution license for public issue/comment text has not been independently established. Original synthetic benchmark fixtures have no separate declared data license. This private release does not apply the documentation license to issue text.
|
| 4 |
+
|
| 5 |
+
Imported tickets and comments come directly from public issues in [glpi-project/glpi](https://github.com/glpi-project/glpi). Knowledge documents are adapted from [glpi-project/doc](https://github.com/glpi-project/doc), pinned to the source revision recorded in the manifest. Original benchmark tickets and troubleshooting documents are synthetic. GitBugs is not used.
|
| 6 |
+
|
| 7 |
+
No blanket license is assigned to components whose reuse terms are undocumented. Source-specific declarations and per-item notices describe their respective content. Synthetic benchmark fixtures are identified separately from source-derived records.
|
README.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: "Peppermint Data"
|
| 3 |
+
tags:
|
| 4 |
+
- webarena-pro
|
| 5 |
+
- web-agents
|
| 6 |
+
- benchmark-environment
|
| 7 |
+
- text
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
**Peppermint Data** provides helpdesk tickets, comments, user mappings, and knowledge documents for WebArena-Pro’s Peppermint environment, a locally hosted support application for evaluating web agents. It supports ticket search, assignment, status changes, client management, and knowledge-base workflows.
|
| 11 |
+
|
| 12 |
+
Imported tickets and comments come directly from public issues in [glpi-project/glpi](https://github.com/glpi-project/glpi). Knowledge documents are adapted from [glpi-project/doc](https://github.com/glpi-project/doc), pinned to the source revision recorded in the manifest. Original benchmark tickets and troubleshooting documents are synthetic. GitBugs is not used.
|
| 13 |
+
|
| 14 |
+
We prepared the released content for local use in the environment:
|
| 15 |
+
|
| 16 |
+
- Added 882 GLPI-derived tickets and 1,919 comments to the original task fixtures.
|
| 17 |
+
- Mapped source contributors into 96 deterministic pseudonymous personas while retaining role and source-login provenance.
|
| 18 |
+
- Adapted 100 GLPI guide documents into the local knowledge-document schema and retained source revision links and attribution.
|
| 19 |
+
|
| 20 |
+
| Statistic | Value |
|
| 21 |
+
|---|---:|
|
| 22 |
+
| Total ticket inputs | 1000 |
|
| 23 |
+
| Total comment inputs | 2000 |
|
| 24 |
+
| Imported GLPI tickets | 882 |
|
| 25 |
+
| Imported persona records | 96 |
|
| 26 |
+
| Distinct knowledge-document contents | 200 |
|
| 27 |
+
| Local release files before documentation | 7 |
|
| 28 |
+
| Local payload size | 4,185,258 bytes (4.19 MB / 3.99 MiB) |
|
| 29 |
+
|
| 30 |
+
Seed JSON files are under `data/`; preparation and ticket-import code is under `preparation/`. The application copies 200 document contents into notes for four interactive users, producing 800 user-specific Notes rows; 200 and 800 count different units.
|
| 31 |
+
|
| 32 |
+
GLPI documentation retains CC BY-SA 3.0 France terms and source attribution. A redistribution license for public issue/comment text has not been independently established. Original synthetic benchmark fixtures have no separate declared data license. This private release does not apply the documentation license to issue text.
|
| 33 |
+
|
| 34 |
+
The application is maintained in the [WebArena-Pro repository](https://github.com/McGill-NLP/webarena-pro).
|
data/glpi_knowledge_documents.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/glpi_tickets.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/glpi_user_mapping.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/knowledge_base_documents.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/seed_data.json
ADDED
|
@@ -0,0 +1,1532 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"admin": {
|
| 3 |
+
"email": "admin@admin.com",
|
| 4 |
+
"password": "1234"
|
| 5 |
+
},
|
| 6 |
+
"users": [
|
| 7 |
+
{
|
| 8 |
+
"name": "James Carter",
|
| 9 |
+
"email": "james@peppermint.local",
|
| 10 |
+
"password": "Password1!",
|
| 11 |
+
"admin": false
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"name": "Priya Sharma",
|
| 15 |
+
"email": "priya@peppermint.local",
|
| 16 |
+
"password": "Password1!",
|
| 17 |
+
"admin": false
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"name": "Marcus Lee",
|
| 21 |
+
"email": "marcus@peppermint.local",
|
| 22 |
+
"password": "Password1!",
|
| 23 |
+
"admin": false
|
| 24 |
+
}
|
| 25 |
+
],
|
| 26 |
+
"tickets": [
|
| 27 |
+
{
|
| 28 |
+
"title": "VPN drops every 10 minutes during client calls",
|
| 29 |
+
"detail": "I work remotely from Austin and the VPN disconnects repeatedly while I am in Zoom calls with clients. It reconnects after 20-30 seconds but drops again shortly after. This has happened since Tuesday morning and affects both wired and Wi-Fi connections.",
|
| 30 |
+
"priority": "high",
|
| 31 |
+
"type": "support",
|
| 32 |
+
"assignedTo": "james@peppermint.local",
|
| 33 |
+
"status": "in_progress",
|
| 34 |
+
"comments": [
|
| 35 |
+
{
|
| 36 |
+
"userEmail": "james@peppermint.local",
|
| 37 |
+
"text": "I can see frequent tunnel renegotiation failures in the gateway logs for your user profile. Please update your VPN client to 5.4.2 and test again after reboot.",
|
| 38 |
+
"public": true
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"userEmail": "admin@admin.com",
|
| 42 |
+
"text": "Network team asked us to gather logs from 3 affected users before changing idle timeout policy.",
|
| 43 |
+
"public": false
|
| 44 |
+
},
|
| 45 |
+
{
|
| 46 |
+
"userEmail": "admin@admin.com",
|
| 47 |
+
"text": "Reference playbook DOC-0001 and related troubleshooting docs before escalation. Capture findings in internal notes.",
|
| 48 |
+
"public": false
|
| 49 |
+
}
|
| 50 |
+
]
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"title": "Sales shared drive folder permissions missing",
|
| 54 |
+
"detail": "New sales reps cannot open the Q2 pricing folder in the shared drive. They can see the folder name but access is denied. Manager confirmed they should have read access.",
|
| 55 |
+
"priority": "medium",
|
| 56 |
+
"type": "support",
|
| 57 |
+
"assignedTo": "priya@peppermint.local",
|
| 58 |
+
"status": "in_progress",
|
| 59 |
+
"comments": [
|
| 60 |
+
{
|
| 61 |
+
"userEmail": "admin@admin.com",
|
| 62 |
+
"text": "Reference playbook DOC-0001 and related troubleshooting docs before escalation. Capture findings in internal notes.",
|
| 63 |
+
"public": false
|
| 64 |
+
}
|
| 65 |
+
]
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"title": "Outlook mobile app stuck on syncing",
|
| 69 |
+
"detail": "Outlook on iOS has been showing syncing spinner for two days and no new emails are coming through. Webmail works fine and desktop Outlook is up to date.",
|
| 70 |
+
"priority": "medium",
|
| 71 |
+
"type": "support",
|
| 72 |
+
"assignedTo": "marcus@peppermint.local",
|
| 73 |
+
"status": "in_progress",
|
| 74 |
+
"comments": [
|
| 75 |
+
{
|
| 76 |
+
"userEmail": "marcus@peppermint.local",
|
| 77 |
+
"text": "Please remove the account profile from the app, then re-add it with modern auth enabled. We are seeing stale auth tokens on several iOS devices.",
|
| 78 |
+
"public": true
|
| 79 |
+
}
|
| 80 |
+
]
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"title": "Meeting room B tablet not showing calendar",
|
| 84 |
+
"detail": "The room booking tablet outside meeting room B shows a blank schedule and cannot reserve slots. Restarting the device did not help.",
|
| 85 |
+
"priority": "low",
|
| 86 |
+
"type": "support",
|
| 87 |
+
"assignedTo": "james@peppermint.local",
|
| 88 |
+
"status": "in_progress",
|
| 89 |
+
"comments": []
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
"title": "New hire laptop cannot complete initial login",
|
| 93 |
+
"detail": "A new engineer starting today cannot sign into their company laptop with the temporary credentials provided in onboarding email. Error says account cannot be verified.",
|
| 94 |
+
"priority": "high",
|
| 95 |
+
"type": "support",
|
| 96 |
+
"assignedTo": "priya@peppermint.local",
|
| 97 |
+
"status": "in_progress",
|
| 98 |
+
"comments": []
|
| 99 |
+
},
|
| 100 |
+
{
|
| 101 |
+
"title": "Finance floor printer queue processing too slowly",
|
| 102 |
+
"detail": "Print jobs sent to FIN-PRN-02 take 8-12 minutes before printing. This started after yesterday's patch window and is delaying invoice runs.",
|
| 103 |
+
"priority": "medium",
|
| 104 |
+
"type": "feature",
|
| 105 |
+
"assignedTo": "marcus@peppermint.local",
|
| 106 |
+
"status": "in_progress",
|
| 107 |
+
"comments": [
|
| 108 |
+
{
|
| 109 |
+
"userEmail": "marcus@peppermint.local",
|
| 110 |
+
"text": "Spooler service is running but queue backlog is high due to one malformed PDF. I paused the offending job and throughput has improved.",
|
| 111 |
+
"public": true
|
| 112 |
+
}
|
| 113 |
+
]
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"title": "SSO login loops back to sign-in page",
|
| 117 |
+
"detail": "When trying to access the HR portal through SSO, users are redirected back to the sign-in page repeatedly without an error message.",
|
| 118 |
+
"priority": "high",
|
| 119 |
+
"type": "support",
|
| 120 |
+
"assignedTo": "james@peppermint.local",
|
| 121 |
+
"status": "in_progress",
|
| 122 |
+
"comments": [
|
| 123 |
+
{
|
| 124 |
+
"userEmail": "admin@admin.com",
|
| 125 |
+
"text": "Reference playbook DOC-0001 and related troubleshooting docs before escalation. Capture findings in internal notes.",
|
| 126 |
+
"public": false
|
| 127 |
+
}
|
| 128 |
+
]
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"title": "MFA reset needed after phone replacement",
|
| 132 |
+
"detail": "Employee changed phones and cannot generate valid MFA codes. Backup codes are unavailable and they are locked out of key systems.",
|
| 133 |
+
"priority": "high",
|
| 134 |
+
"type": "support",
|
| 135 |
+
"assignedTo": "priya@peppermint.local",
|
| 136 |
+
"status": "in_progress",
|
| 137 |
+
"comments": [
|
| 138 |
+
{
|
| 139 |
+
"userEmail": "admin@admin.com",
|
| 140 |
+
"text": "Reference playbook DOC-0001 and related troubleshooting docs before escalation. Capture findings in internal notes.",
|
| 141 |
+
"public": false
|
| 142 |
+
}
|
| 143 |
+
]
|
| 144 |
+
},
|
| 145 |
+
{
|
| 146 |
+
"title": "Quarterly report export role missing",
|
| 147 |
+
"detail": "Operations analyst can open dashboard but export button is disabled. Role should include report export permission based on team policy.",
|
| 148 |
+
"priority": "medium",
|
| 149 |
+
"type": "support",
|
| 150 |
+
"assignedTo": "marcus@peppermint.local",
|
| 151 |
+
"status": "in_progress",
|
| 152 |
+
"comments": []
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"title": "Warehouse scanner loses Wi-Fi near loading dock",
|
| 156 |
+
"detail": "Handheld scanners disconnect from Wi-Fi in zone D near loading dock 4, causing inventory updates to fail intermittently.",
|
| 157 |
+
"priority": "high",
|
| 158 |
+
"type": "support",
|
| 159 |
+
"assignedTo": "james@peppermint.local",
|
| 160 |
+
"status": "in_progress",
|
| 161 |
+
"comments": [
|
| 162 |
+
{
|
| 163 |
+
"userEmail": "james@peppermint.local",
|
| 164 |
+
"text": "I escalated to network ops; AP-17 reports low signal and high retries. Temporary workaround is to use AP-15 channel profile until replacement arrives.",
|
| 165 |
+
"public": true
|
| 166 |
+
},
|
| 167 |
+
{
|
| 168 |
+
"userEmail": "admin@admin.com",
|
| 169 |
+
"text": "Reference playbook DOC-0001 and related troubleshooting docs before escalation. Capture findings in internal notes.",
|
| 170 |
+
"public": false
|
| 171 |
+
}
|
| 172 |
+
]
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"title": "Core switch admin page unreachable",
|
| 176 |
+
"detail": "Cannot reach management UI for core switch SW-CORE-01 from the network team jump host. Ping succeeds but HTTPS connection times out.",
|
| 177 |
+
"priority": "high",
|
| 178 |
+
"type": "support",
|
| 179 |
+
"assignedTo": "priya@peppermint.local",
|
| 180 |
+
"status": "in_progress",
|
| 181 |
+
"comments": []
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"title": "CRM dashboard widget request for regional leads",
|
| 185 |
+
"detail": "Sales leadership requested a new widget showing regional lead conversion by week on the CRM home dashboard.",
|
| 186 |
+
"priority": "low",
|
| 187 |
+
"type": "feature",
|
| 188 |
+
"assignedTo": "marcus@peppermint.local",
|
| 189 |
+
"status": "in_progress",
|
| 190 |
+
"comments": []
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"title": "Nightly backup workflow missed 2 AM run",
|
| 194 |
+
"detail": "Database backup workflow did not start at 2 AM and no archive was generated. Monitoring alert triggered at 2:45 AM.",
|
| 195 |
+
"priority": "high",
|
| 196 |
+
"type": "support",
|
| 197 |
+
"assignedTo": "james@peppermint.local",
|
| 198 |
+
"status": "in_progress",
|
| 199 |
+
"comments": [
|
| 200 |
+
{
|
| 201 |
+
"userEmail": "admin@admin.com",
|
| 202 |
+
"text": "Reference playbook DOC-0001 and related troubleshooting docs before escalation. Capture findings in internal notes.",
|
| 203 |
+
"public": false
|
| 204 |
+
}
|
| 205 |
+
]
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"title": "Webhook setup for ticket updates to Slack",
|
| 209 |
+
"detail": "Support team wants ticket status change notifications posted to #it-helpdesk in Slack with ticket ID and assignee.",
|
| 210 |
+
"priority": "low",
|
| 211 |
+
"type": "feature",
|
| 212 |
+
"assignedTo": "priya@peppermint.local",
|
| 213 |
+
"status": "in_progress",
|
| 214 |
+
"comments": [
|
| 215 |
+
{
|
| 216 |
+
"userEmail": "priya@peppermint.local",
|
| 217 |
+
"text": "Webhook endpoint validated in staging. I still need security approval for production token rotation policy.",
|
| 218 |
+
"public": true
|
| 219 |
+
}
|
| 220 |
+
]
|
| 221 |
+
},
|
| 222 |
+
{
|
| 223 |
+
"title": "Asset registry shows duplicate entries for MacBooks",
|
| 224 |
+
"detail": "Asset inventory has duplicate records for at least 14 MacBook Pro devices after last import, confusing warranty and assignment data.",
|
| 225 |
+
"priority": "medium",
|
| 226 |
+
"type": "support",
|
| 227 |
+
"assignedTo": "marcus@peppermint.local",
|
| 228 |
+
"status": "in_progress",
|
| 229 |
+
"comments": []
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"title": "Headset replacement request for call center agent",
|
| 233 |
+
"detail": "Agent reports static noise and intermittent mic cutout on Logitech H390 headset during customer calls.",
|
| 234 |
+
"priority": "low",
|
| 235 |
+
"type": "support",
|
| 236 |
+
"assignedTo": "james@peppermint.local",
|
| 237 |
+
"status": "in_progress",
|
| 238 |
+
"comments": []
|
| 239 |
+
},
|
| 240 |
+
{
|
| 241 |
+
"title": "Calendar integration fails for recurring events",
|
| 242 |
+
"detail": "Recurring events created in Google Calendar are not syncing into the internal scheduling tool after last integration update.",
|
| 243 |
+
"priority": "medium",
|
| 244 |
+
"type": "support",
|
| 245 |
+
"assignedTo": "priya@peppermint.local",
|
| 246 |
+
"status": "in_progress",
|
| 247 |
+
"comments": []
|
| 248 |
+
},
|
| 249 |
+
{
|
| 250 |
+
"title": "Mobile device policy not applying to Android 14",
|
| 251 |
+
"detail": "New Android 14 devices are enrolled in MDM but passcode and encryption policies are not being enforced.",
|
| 252 |
+
"priority": "high",
|
| 253 |
+
"type": "support",
|
| 254 |
+
"assignedTo": "marcus@peppermint.local",
|
| 255 |
+
"status": "in_progress",
|
| 256 |
+
"comments": []
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"title": "Remote desktop permission granted and verified",
|
| 260 |
+
"detail": "Ticket for remote desktop access to accounting VM was completed after manager approval and MFA verification.",
|
| 261 |
+
"priority": "low",
|
| 262 |
+
"type": "support",
|
| 263 |
+
"assignedTo": "james@peppermint.local",
|
| 264 |
+
"status": "done",
|
| 265 |
+
"comments": [
|
| 266 |
+
{
|
| 267 |
+
"userEmail": "james@peppermint.local",
|
| 268 |
+
"text": "Access has been provisioned and user confirmed successful login from corporate network.",
|
| 269 |
+
"public": true
|
| 270 |
+
},
|
| 271 |
+
{
|
| 272 |
+
"userEmail": "admin@admin.com",
|
| 273 |
+
"text": "Reference playbook DOC-0001 and related troubleshooting docs before escalation. Capture findings in internal notes.",
|
| 274 |
+
"public": false
|
| 275 |
+
}
|
| 276 |
+
]
|
| 277 |
+
},
|
| 278 |
+
{
|
| 279 |
+
"title": "Knowledge base search timeout resolved",
|
| 280 |
+
"detail": "Search queries in knowledge base were timing out for terms longer than 3 words. Index rebuild completed and performance normalized.",
|
| 281 |
+
"priority": "medium",
|
| 282 |
+
"type": "support",
|
| 283 |
+
"assignedTo": "priya@peppermint.local",
|
| 284 |
+
"status": "done",
|
| 285 |
+
"comments": []
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"title": "VPN profile deployment for marketing team",
|
| 289 |
+
"detail": "Created and distributed new VPN profile package for the marketing team contractors with restricted subnet access.",
|
| 290 |
+
"priority": "low",
|
| 291 |
+
"type": "support",
|
| 292 |
+
"assignedTo": "marcus@peppermint.local",
|
| 293 |
+
"status": "done",
|
| 294 |
+
"comments": [
|
| 295 |
+
{
|
| 296 |
+
"userEmail": "admin@admin.com",
|
| 297 |
+
"text": "Reference playbook DOC-0001 and related troubleshooting docs before escalation. Capture findings in internal notes.",
|
| 298 |
+
"public": false
|
| 299 |
+
}
|
| 300 |
+
]
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"title": "Shared drive access for legal archive completed",
|
| 304 |
+
"detail": "Legal archive folder permissions were updated for three approved staff members and validated by department lead.",
|
| 305 |
+
"priority": "low",
|
| 306 |
+
"type": "support",
|
| 307 |
+
"assignedTo": "james@peppermint.local",
|
| 308 |
+
"status": "done",
|
| 309 |
+
"comments": [
|
| 310 |
+
{
|
| 311 |
+
"userEmail": "admin@admin.com",
|
| 312 |
+
"text": "Reference playbook DOC-0001 and related troubleshooting docs before escalation. Capture findings in internal notes.",
|
| 313 |
+
"public": false
|
| 314 |
+
}
|
| 315 |
+
]
|
| 316 |
+
},
|
| 317 |
+
{
|
| 318 |
+
"title": "Email forwarding rule conflict fixed",
|
| 319 |
+
"detail": "User reported missing emails due to overlapping forwarding and archive rules. Conflicting rule removed and mail flow restored.",
|
| 320 |
+
"priority": "medium",
|
| 321 |
+
"type": "support",
|
| 322 |
+
"assignedTo": "priya@peppermint.local",
|
| 323 |
+
"status": "done",
|
| 324 |
+
"comments": [
|
| 325 |
+
{
|
| 326 |
+
"userEmail": "admin@admin.com",
|
| 327 |
+
"text": "Reference playbook DOC-0001 and related troubleshooting docs before escalation. Capture findings in internal notes.",
|
| 328 |
+
"public": false
|
| 329 |
+
}
|
| 330 |
+
]
|
| 331 |
+
},
|
| 332 |
+
{
|
| 333 |
+
"title": "Meeting room tablet replaced and re-enrolled",
|
| 334 |
+
"detail": "Faulty room tablet battery issue resolved by replacement unit; device re-enrolled in kiosk mode and tested.",
|
| 335 |
+
"priority": "low",
|
| 336 |
+
"type": "support",
|
| 337 |
+
"assignedTo": "marcus@peppermint.local",
|
| 338 |
+
"status": "done",
|
| 339 |
+
"comments": []
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"title": "New hire laptop image corruption resolved",
|
| 343 |
+
"detail": "Provisioning image had outdated driver package causing setup failure. Device reimaged with latest baseline and delivered.",
|
| 344 |
+
"priority": "high",
|
| 345 |
+
"type": "support",
|
| 346 |
+
"assignedTo": "james@peppermint.local",
|
| 347 |
+
"status": "done",
|
| 348 |
+
"comments": [
|
| 349 |
+
{
|
| 350 |
+
"userEmail": "james@peppermint.local",
|
| 351 |
+
"text": "Confirmed successful domain join and first login with the hiring manager present.",
|
| 352 |
+
"public": true
|
| 353 |
+
}
|
| 354 |
+
]
|
| 355 |
+
},
|
| 356 |
+
{
|
| 357 |
+
"title": "Printer queue optimization deployed",
|
| 358 |
+
"detail": "Queue processing delays were traced to duplex rendering setting on old driver. Updated driver policy reduced average print start time.",
|
| 359 |
+
"priority": "medium",
|
| 360 |
+
"type": "feature",
|
| 361 |
+
"assignedTo": "priya@peppermint.local",
|
| 362 |
+
"status": "done",
|
| 363 |
+
"comments": []
|
| 364 |
+
},
|
| 365 |
+
{
|
| 366 |
+
"title": "SSO metadata refresh completed",
|
| 367 |
+
"detail": "Identity provider metadata was stale and caused intermittent login loops. Metadata refreshed and propagation verified.",
|
| 368 |
+
"priority": "high",
|
| 369 |
+
"type": "support",
|
| 370 |
+
"assignedTo": "marcus@peppermint.local",
|
| 371 |
+
"status": "done",
|
| 372 |
+
"comments": [
|
| 373 |
+
{
|
| 374 |
+
"userEmail": "admin@admin.com",
|
| 375 |
+
"text": "Reference playbook DOC-0001 and related troubleshooting docs before escalation. Capture findings in internal notes.",
|
| 376 |
+
"public": false
|
| 377 |
+
}
|
| 378 |
+
]
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"title": "MFA enrollment assistance closed",
|
| 382 |
+
"detail": "Account recovery completed and MFA re-enrollment confirmed for locked user after identity verification.",
|
| 383 |
+
"priority": "high",
|
| 384 |
+
"type": "support",
|
| 385 |
+
"assignedTo": "james@peppermint.local",
|
| 386 |
+
"status": "done",
|
| 387 |
+
"comments": [
|
| 388 |
+
{
|
| 389 |
+
"userEmail": "admin@admin.com",
|
| 390 |
+
"text": "Reference playbook DOC-0001 and related troubleshooting docs before escalation. Capture findings in internal notes.",
|
| 391 |
+
"public": false
|
| 392 |
+
}
|
| 393 |
+
]
|
| 394 |
+
},
|
| 395 |
+
{
|
| 396 |
+
"title": "Report export permission corrected",
|
| 397 |
+
"detail": "Role mapping error prevented export access in BI portal. Permission set updated and user validated CSV export.",
|
| 398 |
+
"priority": "medium",
|
| 399 |
+
"type": "support",
|
| 400 |
+
"assignedTo": "priya@peppermint.local",
|
| 401 |
+
"status": "done",
|
| 402 |
+
"comments": []
|
| 403 |
+
},
|
| 404 |
+
{
|
| 405 |
+
"title": "Scanner firmware update completed",
|
| 406 |
+
"detail": "Inventory scanner disconnects were reduced after firmware update and roaming threshold adjustment.",
|
| 407 |
+
"priority": "medium",
|
| 408 |
+
"type": "support",
|
| 409 |
+
"assignedTo": "marcus@peppermint.local",
|
| 410 |
+
"status": "done",
|
| 411 |
+
"comments": [
|
| 412 |
+
{
|
| 413 |
+
"userEmail": "marcus@peppermint.local",
|
| 414 |
+
"text": "Monitoring in place for 48 hours; no further dropouts reported.",
|
| 415 |
+
"public": true
|
| 416 |
+
},
|
| 417 |
+
{
|
| 418 |
+
"userEmail": "admin@admin.com",
|
| 419 |
+
"text": "Reference playbook DOC-0001 and related troubleshooting docs before escalation. Capture findings in internal notes.",
|
| 420 |
+
"public": false
|
| 421 |
+
}
|
| 422 |
+
]
|
| 423 |
+
},
|
| 424 |
+
{
|
| 425 |
+
"title": "Switch management ACL restored",
|
| 426 |
+
"detail": "Jump host subnet was missing from management ACL after template rollback. ACL corrected and access restored.",
|
| 427 |
+
"priority": "high",
|
| 428 |
+
"type": "support",
|
| 429 |
+
"assignedTo": "james@peppermint.local",
|
| 430 |
+
"status": "done",
|
| 431 |
+
"comments": []
|
| 432 |
+
},
|
| 433 |
+
{
|
| 434 |
+
"title": "CRM regional lead widget delivered",
|
| 435 |
+
"detail": "Requested dashboard widget shipped to production with weekly breakdown and export option for sales ops.",
|
| 436 |
+
"priority": "low",
|
| 437 |
+
"type": "feature",
|
| 438 |
+
"assignedTo": "priya@peppermint.local",
|
| 439 |
+
"status": "done",
|
| 440 |
+
"comments": []
|
| 441 |
+
},
|
| 442 |
+
{
|
| 443 |
+
"title": "Backup alert tuning request",
|
| 444 |
+
"detail": "Too many low-value backup warning alerts are being sent overnight. Team requests better thresholds and routing.",
|
| 445 |
+
"priority": "low",
|
| 446 |
+
"type": "feature",
|
| 447 |
+
"assignedTo": "marcus@peppermint.local",
|
| 448 |
+
"status": "done",
|
| 449 |
+
"comments": [
|
| 450 |
+
{
|
| 451 |
+
"userEmail": "admin@admin.com",
|
| 452 |
+
"text": "Reference playbook DOC-0001 and related troubleshooting docs before escalation. Capture findings in internal notes.",
|
| 453 |
+
"public": false
|
| 454 |
+
}
|
| 455 |
+
]
|
| 456 |
+
},
|
| 457 |
+
{
|
| 458 |
+
"title": "Pending triage: quarterly access review for contractors",
|
| 459 |
+
"detail": "Security team uploaded a list of 37 contractor accounts requiring access recertification this week.",
|
| 460 |
+
"priority": "high",
|
| 461 |
+
"type": "support",
|
| 462 |
+
"assignedTo": "james@peppermint.local",
|
| 463 |
+
"status": "in_progress",
|
| 464 |
+
"comments": [
|
| 465 |
+
{
|
| 466 |
+
"userEmail": "admin@admin.com",
|
| 467 |
+
"text": "Waiting on HR roster confirmation before assigning owner for revocation actions.",
|
| 468 |
+
"public": false
|
| 469 |
+
}
|
| 470 |
+
]
|
| 471 |
+
},
|
| 472 |
+
{
|
| 473 |
+
"title": "Pending triage: stale DNS records cleanup",
|
| 474 |
+
"detail": "Post-migration cleanup list includes stale DNS records that may point to decommissioned hosts.",
|
| 475 |
+
"priority": "medium",
|
| 476 |
+
"type": "support",
|
| 477 |
+
"assignedTo": "priya@peppermint.local",
|
| 478 |
+
"status": "in_progress",
|
| 479 |
+
"comments": []
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"title": "Pending triage: secure print rollout planning",
|
| 483 |
+
"detail": "Office operations requested secure-print badge release workflow for two additional floors.",
|
| 484 |
+
"priority": "low",
|
| 485 |
+
"type": "feature",
|
| 486 |
+
"assignedTo": "marcus@peppermint.local",
|
| 487 |
+
"status": "needs_support",
|
| 488 |
+
"comments": []
|
| 489 |
+
},
|
| 490 |
+
{
|
| 491 |
+
"title": "Pending triage: automate laptop return checklist",
|
| 492 |
+
"detail": "People ops wants an automated checklist and reminders for departing employees returning hardware.",
|
| 493 |
+
"priority": "medium",
|
| 494 |
+
"type": "feature",
|
| 495 |
+
"assignedTo": "james@peppermint.local",
|
| 496 |
+
"status": "needs_support",
|
| 497 |
+
"comments": []
|
| 498 |
+
},
|
| 499 |
+
{
|
| 500 |
+
"title": "Unassigned: intermittent packet loss in branch office",
|
| 501 |
+
"detail": "Branch office users report choppy calls and RDP lag between 3 PM and 5 PM local time. Needs network triage and owner assignment.",
|
| 502 |
+
"priority": "high",
|
| 503 |
+
"type": "support",
|
| 504 |
+
"status": "needs_support",
|
| 505 |
+
"comments": [
|
| 506 |
+
{
|
| 507 |
+
"userEmail": "admin@admin.com",
|
| 508 |
+
"text": "Marked unassigned pending confirmation from ISP ticket queue.",
|
| 509 |
+
"public": false
|
| 510 |
+
}
|
| 511 |
+
]
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"title": "Pending triage: onboarding checklist update for interns",
|
| 515 |
+
"detail": "Current onboarding checklist does not include intern-specific app access and temporary entitlement expiry.",
|
| 516 |
+
"priority": "low",
|
| 517 |
+
"type": "feature",
|
| 518 |
+
"assignedTo": "priya@peppermint.local",
|
| 519 |
+
"status": "needs_support",
|
| 520 |
+
"comments": []
|
| 521 |
+
},
|
| 522 |
+
{
|
| 523 |
+
"title": "Unassigned: suspicious mailbox forwarding rules",
|
| 524 |
+
"detail": "Security monitoring flagged external forwarding rules created in three mailboxes overnight. Needs immediate investigation.",
|
| 525 |
+
"priority": "high",
|
| 526 |
+
"type": "support",
|
| 527 |
+
"status": "needs_support",
|
| 528 |
+
"comments": []
|
| 529 |
+
},
|
| 530 |
+
{
|
| 531 |
+
"title": "Pending triage: ticket SLA dashboard refresh",
|
| 532 |
+
"detail": "Support leads requested a new view with first response, resolution time, and breach trend by queue.",
|
| 533 |
+
"priority": "medium",
|
| 534 |
+
"type": "feature",
|
| 535 |
+
"assignedTo": "marcus@peppermint.local",
|
| 536 |
+
"status": "in_progress",
|
| 537 |
+
"comments": []
|
| 538 |
+
},
|
| 539 |
+
{
|
| 540 |
+
"title": "Unassigned: domain certificate renewal playbook",
|
| 541 |
+
"detail": "Current certificate renewal runbook is outdated and references retired tooling. Requires documentation ownership.",
|
| 542 |
+
"priority": "medium",
|
| 543 |
+
"type": "support",
|
| 544 |
+
"status": "needs_support",
|
| 545 |
+
"comments": [
|
| 546 |
+
{
|
| 547 |
+
"userEmail": "admin@admin.com",
|
| 548 |
+
"text": "Keep this unassigned until platform team confirms preferred ACME client.",
|
| 549 |
+
"public": false
|
| 550 |
+
}
|
| 551 |
+
]
|
| 552 |
+
},
|
| 553 |
+
{
|
| 554 |
+
"title": "Pending triage: kiosk browser lockdown policy",
|
| 555 |
+
"detail": "Retail kiosk devices need stricter browser lockdown to prevent navigation outside approved internal pages.",
|
| 556 |
+
"priority": "high",
|
| 557 |
+
"type": "support",
|
| 558 |
+
"assignedTo": "james@peppermint.local",
|
| 559 |
+
"status": "in_progress",
|
| 560 |
+
"comments": []
|
| 561 |
+
},
|
| 562 |
+
{
|
| 563 |
+
"title": "Unassigned: API rate limit exceptions for vendor sync",
|
| 564 |
+
"detail": "Integration team requested temporary API rate-limit increases for end-of-quarter vendor reconciliation jobs.",
|
| 565 |
+
"priority": "medium",
|
| 566 |
+
"type": "feature",
|
| 567 |
+
"status": "needs_support",
|
| 568 |
+
"comments": []
|
| 569 |
+
},
|
| 570 |
+
{
|
| 571 |
+
"title": "Pending triage: cloud storage lifecycle policy tuning",
|
| 572 |
+
"detail": "Storage spend increased 18% month-over-month. Request to review and tune archive/retention lifecycle policies.",
|
| 573 |
+
"priority": "medium",
|
| 574 |
+
"type": "support",
|
| 575 |
+
"assignedTo": "priya@peppermint.local",
|
| 576 |
+
"status": "in_progress",
|
| 577 |
+
"comments": []
|
| 578 |
+
},
|
| 579 |
+
{
|
| 580 |
+
"title": "Unassigned: endpoint patch compliance below target",
|
| 581 |
+
"detail": "Compliance dashboard shows 84% patch compliance, below 95% target. Needs ownership for remediation campaign.",
|
| 582 |
+
"priority": "high",
|
| 583 |
+
"type": "support",
|
| 584 |
+
"status": "needs_support",
|
| 585 |
+
"comments": []
|
| 586 |
+
},
|
| 587 |
+
{
|
| 588 |
+
"title": "Pending triage: improve self-service password reset UX",
|
| 589 |
+
"detail": "User feedback indicates password reset flow is confusing and generates too many support contacts.",
|
| 590 |
+
"priority": "low",
|
| 591 |
+
"type": "feature",
|
| 592 |
+
"assignedTo": "marcus@peppermint.local",
|
| 593 |
+
"status": "needs_support",
|
| 594 |
+
"comments": [
|
| 595 |
+
{
|
| 596 |
+
"userEmail": "admin@admin.com",
|
| 597 |
+
"text": "Reference playbook DOC-0001 and related troubleshooting docs before escalation. Capture findings in internal notes.",
|
| 598 |
+
"public": false
|
| 599 |
+
}
|
| 600 |
+
]
|
| 601 |
+
},
|
| 602 |
+
{
|
| 603 |
+
"title": "Unassigned: legacy NAS migration planning",
|
| 604 |
+
"detail": "Infrastructure is planning migration from legacy NAS to cloud file share. Request includes discovery and cutover checklist.",
|
| 605 |
+
"priority": "medium",
|
| 606 |
+
"type": "support",
|
| 607 |
+
"status": "needs_support",
|
| 608 |
+
"comments": []
|
| 609 |
+
},
|
| 610 |
+
{
|
| 611 |
+
"title": "Pending triage: automate software license reclamation",
|
| 612 |
+
"detail": "Finance requested automated reclamation of unused SaaS licenses after 45 days of inactivity.",
|
| 613 |
+
"priority": "medium",
|
| 614 |
+
"type": "feature",
|
| 615 |
+
"assignedTo": "james@peppermint.local",
|
| 616 |
+
"status": "in_progress",
|
| 617 |
+
"comments": [
|
| 618 |
+
{
|
| 619 |
+
"userEmail": "james@peppermint.local",
|
| 620 |
+
"text": "Scoping complete for Google Workspace and Slack first; waiting on Okta API scope approval.",
|
| 621 |
+
"public": true
|
| 622 |
+
}
|
| 623 |
+
]
|
| 624 |
+
},
|
| 625 |
+
{
|
| 626 |
+
"title": "Unassigned: investigate failed SFTP uploads from vendor",
|
| 627 |
+
"detail": "External vendor reports nightly SFTP uploads failing with permission denied from 01:00 onward.",
|
| 628 |
+
"priority": "high",
|
| 629 |
+
"type": "support",
|
| 630 |
+
"status": "needs_support",
|
| 631 |
+
"comments": []
|
| 632 |
+
},
|
| 633 |
+
{
|
| 634 |
+
"title": "VPN authentication timeout for field team #51",
|
| 635 |
+
"detail": "Multiple field agents report authentication timeout after entering correct credentials. Issue started after latest VPN gateway update.",
|
| 636 |
+
"priority": "low",
|
| 637 |
+
"type": "feature",
|
| 638 |
+
"status": "done",
|
| 639 |
+
"comments": [
|
| 640 |
+
{
|
| 641 |
+
"userEmail": "james@peppermint.local",
|
| 642 |
+
"text": "Work completed and validated with requester. Monitoring for recurrence over the next business day.",
|
| 643 |
+
"public": true
|
| 644 |
+
},
|
| 645 |
+
{
|
| 646 |
+
"userEmail": "admin@admin.com",
|
| 647 |
+
"text": "Reference playbook DOC-0001 and related troubleshooting docs before escalation. Capture findings in internal notes.",
|
| 648 |
+
"public": false
|
| 649 |
+
}
|
| 650 |
+
]
|
| 651 |
+
},
|
| 652 |
+
{
|
| 653 |
+
"title": "Request access to finance reporting workspace #52",
|
| 654 |
+
"detail": "Finance analyst requires read-only access to workbook models before quarter close. Manager approval attached in ticket notes.",
|
| 655 |
+
"priority": "medium",
|
| 656 |
+
"type": "support",
|
| 657 |
+
"assignedTo": "priya@peppermint.local",
|
| 658 |
+
"status": "needs_support",
|
| 659 |
+
"comments": []
|
| 660 |
+
},
|
| 661 |
+
{
|
| 662 |
+
"title": "Intermittent packet loss on warehouse Wi-Fi #53",
|
| 663 |
+
"detail": "Warehouse users report high latency and packet loss near aisle C. Scanners and laptops both affected during peak hours.",
|
| 664 |
+
"priority": "high",
|
| 665 |
+
"type": "support",
|
| 666 |
+
"assignedTo": "marcus@peppermint.local",
|
| 667 |
+
"status": "in_progress",
|
| 668 |
+
"comments": []
|
| 669 |
+
},
|
| 670 |
+
{
|
| 671 |
+
"title": "Onboarding account missing in HR system #54",
|
| 672 |
+
"detail": "New hire profile was created in IAM but not provisioned into HR application. Start date is tomorrow morning.",
|
| 673 |
+
"priority": "low",
|
| 674 |
+
"type": "support",
|
| 675 |
+
"assignedTo": "james@peppermint.local",
|
| 676 |
+
"status": "needs_support",
|
| 677 |
+
"comments": []
|
| 678 |
+
},
|
| 679 |
+
{
|
| 680 |
+
"title": "Printer jam alerts without actual jams #55",
|
| 681 |
+
"detail": "Printer status panel shows repeated jam alerts while output remains clear. Alerts interrupt batch print jobs.",
|
| 682 |
+
"priority": "medium",
|
| 683 |
+
"type": "support",
|
| 684 |
+
"assignedTo": "priya@peppermint.local",
|
| 685 |
+
"status": "in_progress",
|
| 686 |
+
"comments": [
|
| 687 |
+
{
|
| 688 |
+
"userEmail": "priya@peppermint.local",
|
| 689 |
+
"text": "Initial triage complete. Waiting on logs from the user to confirm root cause.",
|
| 690 |
+
"public": true
|
| 691 |
+
},
|
| 692 |
+
{
|
| 693 |
+
"userEmail": "admin@admin.com",
|
| 694 |
+
"text": "Track this under weekly reliability review if unresolved by Friday.",
|
| 695 |
+
"public": false
|
| 696 |
+
}
|
| 697 |
+
]
|
| 698 |
+
},
|
| 699 |
+
{
|
| 700 |
+
"title": "SSO callback mismatch in procurement app #56",
|
| 701 |
+
"detail": "Procurement app fails SSO login with callback mismatch message. Appears isolated to production tenant only.",
|
| 702 |
+
"priority": "high",
|
| 703 |
+
"type": "feature",
|
| 704 |
+
"assignedTo": "marcus@peppermint.local",
|
| 705 |
+
"status": "done",
|
| 706 |
+
"comments": [
|
| 707 |
+
{
|
| 708 |
+
"userEmail": "james@peppermint.local",
|
| 709 |
+
"text": "Work completed and validated with requester. Monitoring for recurrence over the next business day.",
|
| 710 |
+
"public": true
|
| 711 |
+
},
|
| 712 |
+
{
|
| 713 |
+
"userEmail": "admin@admin.com",
|
| 714 |
+
"text": "Reference playbook DOC-0001 and related troubleshooting docs before escalation. Capture findings in internal notes.",
|
| 715 |
+
"public": false
|
| 716 |
+
}
|
| 717 |
+
]
|
| 718 |
+
},
|
| 719 |
+
{
|
| 720 |
+
"title": "MFA prompt loop on mobile devices #57",
|
| 721 |
+
"detail": "Users complete MFA but are prompted again on next page. Happens mostly on Android devices with work profile.",
|
| 722 |
+
"priority": "low",
|
| 723 |
+
"type": "support",
|
| 724 |
+
"assignedTo": "james@peppermint.local",
|
| 725 |
+
"status": "in_progress",
|
| 726 |
+
"comments": [
|
| 727 |
+
{
|
| 728 |
+
"userEmail": "admin@admin.com",
|
| 729 |
+
"text": "Reference playbook DOC-0001 and related troubleshooting docs before escalation. Capture findings in internal notes.",
|
| 730 |
+
"public": false
|
| 731 |
+
}
|
| 732 |
+
]
|
| 733 |
+
},
|
| 734 |
+
{
|
| 735 |
+
"title": "Permission denied on monthly export folder #58",
|
| 736 |
+
"detail": "Team can open reports but cannot write into monthly export folder. Access appears removed after policy sync.",
|
| 737 |
+
"priority": "medium",
|
| 738 |
+
"type": "support",
|
| 739 |
+
"status": "needs_support",
|
| 740 |
+
"comments": []
|
| 741 |
+
},
|
| 742 |
+
{
|
| 743 |
+
"title": "Remote desktop disconnect after idle #59",
|
| 744 |
+
"detail": "RDP session drops after about 7 minutes idle even when keepalive is enabled in client settings.",
|
| 745 |
+
"priority": "high",
|
| 746 |
+
"type": "support",
|
| 747 |
+
"assignedTo": "marcus@peppermint.local",
|
| 748 |
+
"status": "in_progress",
|
| 749 |
+
"comments": [
|
| 750 |
+
{
|
| 751 |
+
"userEmail": "priya@peppermint.local",
|
| 752 |
+
"text": "Initial triage complete. Waiting on logs from the user to confirm root cause.",
|
| 753 |
+
"public": true
|
| 754 |
+
},
|
| 755 |
+
{
|
| 756 |
+
"userEmail": "admin@admin.com",
|
| 757 |
+
"text": "Track this under weekly reliability review if unresolved by Friday.",
|
| 758 |
+
"public": false
|
| 759 |
+
},
|
| 760 |
+
{
|
| 761 |
+
"userEmail": "admin@admin.com",
|
| 762 |
+
"text": "Reference playbook DOC-0001 and related troubleshooting docs before escalation. Capture findings in internal notes.",
|
| 763 |
+
"public": false
|
| 764 |
+
}
|
| 765 |
+
]
|
| 766 |
+
},
|
| 767 |
+
{
|
| 768 |
+
"title": "Knowledge base article images not loading #60",
|
| 769 |
+
"detail": "Embedded images in knowledge base articles fail to render for users outside HQ network.",
|
| 770 |
+
"priority": "low",
|
| 771 |
+
"type": "support",
|
| 772 |
+
"assignedTo": "james@peppermint.local",
|
| 773 |
+
"status": "needs_support",
|
| 774 |
+
"comments": []
|
| 775 |
+
},
|
| 776 |
+
{
|
| 777 |
+
"title": "Email quarantine release delay #61",
|
| 778 |
+
"detail": "Approved emails in quarantine take over 20 minutes to appear in inbox, impacting customer response time.",
|
| 779 |
+
"priority": "medium",
|
| 780 |
+
"type": "feature",
|
| 781 |
+
"assignedTo": "priya@peppermint.local",
|
| 782 |
+
"status": "done",
|
| 783 |
+
"comments": [
|
| 784 |
+
{
|
| 785 |
+
"userEmail": "james@peppermint.local",
|
| 786 |
+
"text": "Work completed and validated with requester. Monitoring for recurrence over the next business day.",
|
| 787 |
+
"public": true
|
| 788 |
+
},
|
| 789 |
+
{
|
| 790 |
+
"userEmail": "admin@admin.com",
|
| 791 |
+
"text": "Reference playbook DOC-0001 and related troubleshooting docs before escalation. Capture findings in internal notes.",
|
| 792 |
+
"public": false
|
| 793 |
+
}
|
| 794 |
+
]
|
| 795 |
+
},
|
| 796 |
+
{
|
| 797 |
+
"title": "Ticket webhook retries causing duplicates #62",
|
| 798 |
+
"detail": "Webhook endpoint processes retries as new events, creating duplicate comments in downstream tooling.",
|
| 799 |
+
"priority": "high",
|
| 800 |
+
"type": "support",
|
| 801 |
+
"assignedTo": "marcus@peppermint.local",
|
| 802 |
+
"status": "needs_support",
|
| 803 |
+
"comments": []
|
| 804 |
+
},
|
| 805 |
+
{
|
| 806 |
+
"title": "Asset assignment mismatch in inventory #63",
|
| 807 |
+
"detail": "Several laptops show outdated owner in asset tool after reallocation during office move.",
|
| 808 |
+
"priority": "low",
|
| 809 |
+
"type": "support",
|
| 810 |
+
"assignedTo": "james@peppermint.local",
|
| 811 |
+
"status": "in_progress",
|
| 812 |
+
"comments": [
|
| 813 |
+
{
|
| 814 |
+
"userEmail": "priya@peppermint.local",
|
| 815 |
+
"text": "Initial triage complete. Waiting on logs from the user to confirm root cause.",
|
| 816 |
+
"public": true
|
| 817 |
+
},
|
| 818 |
+
{
|
| 819 |
+
"userEmail": "admin@admin.com",
|
| 820 |
+
"text": "Track this under weekly reliability review if unresolved by Friday.",
|
| 821 |
+
"public": false
|
| 822 |
+
}
|
| 823 |
+
]
|
| 824 |
+
},
|
| 825 |
+
{
|
| 826 |
+
"title": "Headset echo during support calls #64",
|
| 827 |
+
"detail": "Support team reports persistent echo on headset model H390 during outbound calls.",
|
| 828 |
+
"priority": "medium",
|
| 829 |
+
"type": "support",
|
| 830 |
+
"assignedTo": "priya@peppermint.local",
|
| 831 |
+
"status": "needs_support",
|
| 832 |
+
"comments": []
|
| 833 |
+
},
|
| 834 |
+
{
|
| 835 |
+
"title": "Calendar room booking conflict #65",
|
| 836 |
+
"detail": "Meeting rooms occasionally get double booked when recurring invites overlap with ad-hoc bookings.",
|
| 837 |
+
"priority": "high",
|
| 838 |
+
"type": "support",
|
| 839 |
+
"status": "in_progress",
|
| 840 |
+
"comments": []
|
| 841 |
+
},
|
| 842 |
+
{
|
| 843 |
+
"title": "Endpoint patch job failed overnight #66",
|
| 844 |
+
"detail": "Scheduled endpoint patch campaign failed on 31 devices with generic task timeout error.",
|
| 845 |
+
"priority": "low",
|
| 846 |
+
"type": "feature",
|
| 847 |
+
"assignedTo": "james@peppermint.local",
|
| 848 |
+
"status": "done",
|
| 849 |
+
"comments": [
|
| 850 |
+
{
|
| 851 |
+
"userEmail": "james@peppermint.local",
|
| 852 |
+
"text": "Work completed and validated with requester. Monitoring for recurrence over the next business day.",
|
| 853 |
+
"public": true
|
| 854 |
+
}
|
| 855 |
+
]
|
| 856 |
+
},
|
| 857 |
+
{
|
| 858 |
+
"title": "Shared drive sync conflict #67",
|
| 859 |
+
"detail": "Users editing same files in shared drive trigger frequent sync conflicts and duplicate filenames.",
|
| 860 |
+
"priority": "medium",
|
| 861 |
+
"type": "support",
|
| 862 |
+
"assignedTo": "priya@peppermint.local",
|
| 863 |
+
"status": "in_progress",
|
| 864 |
+
"comments": [
|
| 865 |
+
{
|
| 866 |
+
"userEmail": "priya@peppermint.local",
|
| 867 |
+
"text": "Initial triage complete. Waiting on logs from the user to confirm root cause.",
|
| 868 |
+
"public": true
|
| 869 |
+
},
|
| 870 |
+
{
|
| 871 |
+
"userEmail": "admin@admin.com",
|
| 872 |
+
"text": "Track this under weekly reliability review if unresolved by Friday.",
|
| 873 |
+
"public": false
|
| 874 |
+
},
|
| 875 |
+
{
|
| 876 |
+
"userEmail": "admin@admin.com",
|
| 877 |
+
"text": "Reference playbook DOC-0001 and related troubleshooting docs before escalation. Capture findings in internal notes.",
|
| 878 |
+
"public": false
|
| 879 |
+
}
|
| 880 |
+
]
|
| 881 |
+
},
|
| 882 |
+
{
|
| 883 |
+
"title": "Password reset email not delivered #68",
|
| 884 |
+
"detail": "Password reset emails are not reaching external contractors using personal domains.",
|
| 885 |
+
"priority": "high",
|
| 886 |
+
"type": "support",
|
| 887 |
+
"assignedTo": "marcus@peppermint.local",
|
| 888 |
+
"status": "needs_support",
|
| 889 |
+
"comments": [
|
| 890 |
+
{
|
| 891 |
+
"userEmail": "admin@admin.com",
|
| 892 |
+
"text": "Reference playbook DOC-0001 and related troubleshooting docs before escalation. Capture findings in internal notes.",
|
| 893 |
+
"public": false
|
| 894 |
+
}
|
| 895 |
+
]
|
| 896 |
+
},
|
| 897 |
+
{
|
| 898 |
+
"title": "Scanner barcode parsing error #69",
|
| 899 |
+
"detail": "Barcode scanner interprets some QR payloads with extra characters causing downstream validation failure.",
|
| 900 |
+
"priority": "low",
|
| 901 |
+
"type": "support",
|
| 902 |
+
"assignedTo": "james@peppermint.local",
|
| 903 |
+
"status": "in_progress",
|
| 904 |
+
"comments": [
|
| 905 |
+
{
|
| 906 |
+
"userEmail": "admin@admin.com",
|
| 907 |
+
"text": "Reference playbook DOC-0001 and related troubleshooting docs before escalation. Capture findings in internal notes.",
|
| 908 |
+
"public": false
|
| 909 |
+
}
|
| 910 |
+
]
|
| 911 |
+
},
|
| 912 |
+
{
|
| 913 |
+
"title": "Backup retention rule exception request #70",
|
| 914 |
+
"detail": "Compliance requested temporary extension to backup retention for legal discovery hold datasets.",
|
| 915 |
+
"priority": "medium",
|
| 916 |
+
"type": "support",
|
| 917 |
+
"assignedTo": "priya@peppermint.local",
|
| 918 |
+
"status": "needs_support",
|
| 919 |
+
"comments": [
|
| 920 |
+
{
|
| 921 |
+
"userEmail": "admin@admin.com",
|
| 922 |
+
"text": "Reference playbook DOC-0001 and related troubleshooting docs before escalation. Capture findings in internal notes.",
|
| 923 |
+
"public": false
|
| 924 |
+
}
|
| 925 |
+
]
|
| 926 |
+
},
|
| 927 |
+
{
|
| 928 |
+
"title": "VPN authentication timeout for field team #71",
|
| 929 |
+
"detail": "Multiple field agents report authentication timeout after entering correct credentials. Issue started after latest VPN gateway update.",
|
| 930 |
+
"priority": "high",
|
| 931 |
+
"type": "feature",
|
| 932 |
+
"assignedTo": "marcus@peppermint.local",
|
| 933 |
+
"status": "done",
|
| 934 |
+
"comments": [
|
| 935 |
+
{
|
| 936 |
+
"userEmail": "james@peppermint.local",
|
| 937 |
+
"text": "Work completed and validated with requester. Monitoring for recurrence over the next business day.",
|
| 938 |
+
"public": true
|
| 939 |
+
},
|
| 940 |
+
{
|
| 941 |
+
"userEmail": "admin@admin.com",
|
| 942 |
+
"text": "Reference playbook DOC-0001 and related troubleshooting docs before escalation. Capture findings in internal notes.",
|
| 943 |
+
"public": false
|
| 944 |
+
}
|
| 945 |
+
]
|
| 946 |
+
},
|
| 947 |
+
{
|
| 948 |
+
"title": "Request access to finance reporting workspace #72",
|
| 949 |
+
"detail": "Finance analyst requires read-only access to workbook models before quarter close. Manager approval attached in ticket notes.",
|
| 950 |
+
"priority": "low",
|
| 951 |
+
"type": "support",
|
| 952 |
+
"status": "needs_support",
|
| 953 |
+
"comments": []
|
| 954 |
+
},
|
| 955 |
+
{
|
| 956 |
+
"title": "Intermittent packet loss on warehouse Wi-Fi #73",
|
| 957 |
+
"detail": "Warehouse users report high latency and packet loss near aisle C. Scanners and laptops both affected during peak hours.",
|
| 958 |
+
"priority": "medium",
|
| 959 |
+
"type": "support",
|
| 960 |
+
"assignedTo": "priya@peppermint.local",
|
| 961 |
+
"status": "in_progress",
|
| 962 |
+
"comments": []
|
| 963 |
+
},
|
| 964 |
+
{
|
| 965 |
+
"title": "Onboarding account missing in HR system #74",
|
| 966 |
+
"detail": "New hire profile was created in IAM but not provisioned into HR application. Start date is tomorrow morning.",
|
| 967 |
+
"priority": "high",
|
| 968 |
+
"type": "support",
|
| 969 |
+
"assignedTo": "marcus@peppermint.local",
|
| 970 |
+
"status": "needs_support",
|
| 971 |
+
"comments": []
|
| 972 |
+
},
|
| 973 |
+
{
|
| 974 |
+
"title": "Printer jam alerts without actual jams #75",
|
| 975 |
+
"detail": "Printer status panel shows repeated jam alerts while output remains clear. Alerts interrupt batch print jobs.",
|
| 976 |
+
"priority": "low",
|
| 977 |
+
"type": "support",
|
| 978 |
+
"assignedTo": "james@peppermint.local",
|
| 979 |
+
"status": "in_progress",
|
| 980 |
+
"comments": [
|
| 981 |
+
{
|
| 982 |
+
"userEmail": "priya@peppermint.local",
|
| 983 |
+
"text": "Initial triage complete. Waiting on logs from the user to confirm root cause.",
|
| 984 |
+
"public": true
|
| 985 |
+
},
|
| 986 |
+
{
|
| 987 |
+
"userEmail": "admin@admin.com",
|
| 988 |
+
"text": "Track this under weekly reliability review if unresolved by Friday.",
|
| 989 |
+
"public": false
|
| 990 |
+
}
|
| 991 |
+
]
|
| 992 |
+
},
|
| 993 |
+
{
|
| 994 |
+
"title": "SSO callback mismatch in procurement app #76",
|
| 995 |
+
"detail": "Procurement app fails SSO login with callback mismatch message. Appears isolated to production tenant only.",
|
| 996 |
+
"priority": "medium",
|
| 997 |
+
"type": "feature",
|
| 998 |
+
"assignedTo": "priya@peppermint.local",
|
| 999 |
+
"status": "done",
|
| 1000 |
+
"comments": [
|
| 1001 |
+
{
|
| 1002 |
+
"userEmail": "james@peppermint.local",
|
| 1003 |
+
"text": "Work completed and validated with requester. Monitoring for recurrence over the next business day.",
|
| 1004 |
+
"public": true
|
| 1005 |
+
},
|
| 1006 |
+
{
|
| 1007 |
+
"userEmail": "admin@admin.com",
|
| 1008 |
+
"text": "Reference playbook DOC-0001 and related troubleshooting docs before escalation. Capture findings in internal notes.",
|
| 1009 |
+
"public": false
|
| 1010 |
+
}
|
| 1011 |
+
]
|
| 1012 |
+
},
|
| 1013 |
+
{
|
| 1014 |
+
"title": "MFA prompt loop on mobile devices #77",
|
| 1015 |
+
"detail": "Users complete MFA but are prompted again on next page. Happens mostly on Android devices with work profile.",
|
| 1016 |
+
"priority": "high",
|
| 1017 |
+
"type": "support",
|
| 1018 |
+
"assignedTo": "marcus@peppermint.local",
|
| 1019 |
+
"status": "in_progress",
|
| 1020 |
+
"comments": [
|
| 1021 |
+
{
|
| 1022 |
+
"userEmail": "admin@admin.com",
|
| 1023 |
+
"text": "Reference playbook DOC-0001 and related troubleshooting docs before escalation. Capture findings in internal notes.",
|
| 1024 |
+
"public": false
|
| 1025 |
+
}
|
| 1026 |
+
]
|
| 1027 |
+
},
|
| 1028 |
+
{
|
| 1029 |
+
"title": "Permission denied on monthly export folder #78",
|
| 1030 |
+
"detail": "Team can open reports but cannot write into monthly export folder. Access appears removed after policy sync.",
|
| 1031 |
+
"priority": "low",
|
| 1032 |
+
"type": "support",
|
| 1033 |
+
"assignedTo": "james@peppermint.local",
|
| 1034 |
+
"status": "needs_support",
|
| 1035 |
+
"comments": []
|
| 1036 |
+
},
|
| 1037 |
+
{
|
| 1038 |
+
"title": "Remote desktop disconnect after idle #79",
|
| 1039 |
+
"detail": "RDP session drops after about 7 minutes idle even when keepalive is enabled in client settings.",
|
| 1040 |
+
"priority": "medium",
|
| 1041 |
+
"type": "support",
|
| 1042 |
+
"status": "in_progress",
|
| 1043 |
+
"comments": [
|
| 1044 |
+
{
|
| 1045 |
+
"userEmail": "priya@peppermint.local",
|
| 1046 |
+
"text": "Initial triage complete. Waiting on logs from the user to confirm root cause.",
|
| 1047 |
+
"public": true
|
| 1048 |
+
},
|
| 1049 |
+
{
|
| 1050 |
+
"userEmail": "admin@admin.com",
|
| 1051 |
+
"text": "Track this under weekly reliability review if unresolved by Friday.",
|
| 1052 |
+
"public": false
|
| 1053 |
+
},
|
| 1054 |
+
{
|
| 1055 |
+
"userEmail": "admin@admin.com",
|
| 1056 |
+
"text": "Reference playbook DOC-0001 and related troubleshooting docs before escalation. Capture findings in internal notes.",
|
| 1057 |
+
"public": false
|
| 1058 |
+
}
|
| 1059 |
+
]
|
| 1060 |
+
},
|
| 1061 |
+
{
|
| 1062 |
+
"title": "Knowledge base article images not loading #80",
|
| 1063 |
+
"detail": "Embedded images in knowledge base articles fail to render for users outside HQ network.",
|
| 1064 |
+
"priority": "high",
|
| 1065 |
+
"type": "support",
|
| 1066 |
+
"assignedTo": "marcus@peppermint.local",
|
| 1067 |
+
"status": "needs_support",
|
| 1068 |
+
"comments": []
|
| 1069 |
+
},
|
| 1070 |
+
{
|
| 1071 |
+
"title": "Email quarantine release delay #81",
|
| 1072 |
+
"detail": "Approved emails in quarantine take over 20 minutes to appear in inbox, impacting customer response time.",
|
| 1073 |
+
"priority": "low",
|
| 1074 |
+
"type": "feature",
|
| 1075 |
+
"assignedTo": "james@peppermint.local",
|
| 1076 |
+
"status": "done",
|
| 1077 |
+
"comments": [
|
| 1078 |
+
{
|
| 1079 |
+
"userEmail": "james@peppermint.local",
|
| 1080 |
+
"text": "Work completed and validated with requester. Monitoring for recurrence over the next business day.",
|
| 1081 |
+
"public": true
|
| 1082 |
+
},
|
| 1083 |
+
{
|
| 1084 |
+
"userEmail": "admin@admin.com",
|
| 1085 |
+
"text": "Reference playbook DOC-0001 and related troubleshooting docs before escalation. Capture findings in internal notes.",
|
| 1086 |
+
"public": false
|
| 1087 |
+
}
|
| 1088 |
+
]
|
| 1089 |
+
},
|
| 1090 |
+
{
|
| 1091 |
+
"title": "Ticket webhook retries causing duplicates #82",
|
| 1092 |
+
"detail": "Webhook endpoint processes retries as new events, creating duplicate comments in downstream tooling.",
|
| 1093 |
+
"priority": "medium",
|
| 1094 |
+
"type": "support",
|
| 1095 |
+
"assignedTo": "priya@peppermint.local",
|
| 1096 |
+
"status": "needs_support",
|
| 1097 |
+
"comments": []
|
| 1098 |
+
},
|
| 1099 |
+
{
|
| 1100 |
+
"title": "Asset assignment mismatch in inventory #83",
|
| 1101 |
+
"detail": "Several laptops show outdated owner in asset tool after reallocation during office move.",
|
| 1102 |
+
"priority": "high",
|
| 1103 |
+
"type": "support",
|
| 1104 |
+
"assignedTo": "marcus@peppermint.local",
|
| 1105 |
+
"status": "in_progress",
|
| 1106 |
+
"comments": [
|
| 1107 |
+
{
|
| 1108 |
+
"userEmail": "priya@peppermint.local",
|
| 1109 |
+
"text": "Initial triage complete. Waiting on logs from the user to confirm root cause.",
|
| 1110 |
+
"public": true
|
| 1111 |
+
},
|
| 1112 |
+
{
|
| 1113 |
+
"userEmail": "admin@admin.com",
|
| 1114 |
+
"text": "Track this under weekly reliability review if unresolved by Friday.",
|
| 1115 |
+
"public": false
|
| 1116 |
+
}
|
| 1117 |
+
]
|
| 1118 |
+
},
|
| 1119 |
+
{
|
| 1120 |
+
"title": "Headset echo during support calls #84",
|
| 1121 |
+
"detail": "Support team reports persistent echo on headset model H390 during outbound calls.",
|
| 1122 |
+
"priority": "low",
|
| 1123 |
+
"type": "support",
|
| 1124 |
+
"assignedTo": "james@peppermint.local",
|
| 1125 |
+
"status": "needs_support",
|
| 1126 |
+
"comments": []
|
| 1127 |
+
},
|
| 1128 |
+
{
|
| 1129 |
+
"title": "Calendar room booking conflict #85",
|
| 1130 |
+
"detail": "Meeting rooms occasionally get double booked when recurring invites overlap with ad-hoc bookings.",
|
| 1131 |
+
"priority": "medium",
|
| 1132 |
+
"type": "support",
|
| 1133 |
+
"assignedTo": "priya@peppermint.local",
|
| 1134 |
+
"status": "in_progress",
|
| 1135 |
+
"comments": []
|
| 1136 |
+
},
|
| 1137 |
+
{
|
| 1138 |
+
"title": "Endpoint patch job failed overnight #86",
|
| 1139 |
+
"detail": "Scheduled endpoint patch campaign failed on 31 devices with generic task timeout error.",
|
| 1140 |
+
"priority": "high",
|
| 1141 |
+
"type": "feature",
|
| 1142 |
+
"status": "done",
|
| 1143 |
+
"comments": [
|
| 1144 |
+
{
|
| 1145 |
+
"userEmail": "james@peppermint.local",
|
| 1146 |
+
"text": "Work completed and validated with requester. Monitoring for recurrence over the next business day.",
|
| 1147 |
+
"public": true
|
| 1148 |
+
}
|
| 1149 |
+
]
|
| 1150 |
+
},
|
| 1151 |
+
{
|
| 1152 |
+
"title": "Shared drive sync conflict #87",
|
| 1153 |
+
"detail": "Users editing same files in shared drive trigger frequent sync conflicts and duplicate filenames.",
|
| 1154 |
+
"priority": "low",
|
| 1155 |
+
"type": "support",
|
| 1156 |
+
"assignedTo": "james@peppermint.local",
|
| 1157 |
+
"status": "in_progress",
|
| 1158 |
+
"comments": [
|
| 1159 |
+
{
|
| 1160 |
+
"userEmail": "priya@peppermint.local",
|
| 1161 |
+
"text": "Initial triage complete. Waiting on logs from the user to confirm root cause.",
|
| 1162 |
+
"public": true
|
| 1163 |
+
},
|
| 1164 |
+
{
|
| 1165 |
+
"userEmail": "admin@admin.com",
|
| 1166 |
+
"text": "Track this under weekly reliability review if unresolved by Friday.",
|
| 1167 |
+
"public": false
|
| 1168 |
+
},
|
| 1169 |
+
{
|
| 1170 |
+
"userEmail": "admin@admin.com",
|
| 1171 |
+
"text": "Reference playbook DOC-0001 and related troubleshooting docs before escalation. Capture findings in internal notes.",
|
| 1172 |
+
"public": false
|
| 1173 |
+
}
|
| 1174 |
+
]
|
| 1175 |
+
},
|
| 1176 |
+
{
|
| 1177 |
+
"title": "Password reset email not delivered #88",
|
| 1178 |
+
"detail": "Password reset emails are not reaching external contractors using personal domains.",
|
| 1179 |
+
"priority": "medium",
|
| 1180 |
+
"type": "support",
|
| 1181 |
+
"assignedTo": "priya@peppermint.local",
|
| 1182 |
+
"status": "needs_support",
|
| 1183 |
+
"comments": [
|
| 1184 |
+
{
|
| 1185 |
+
"userEmail": "admin@admin.com",
|
| 1186 |
+
"text": "Reference playbook DOC-0001 and related troubleshooting docs before escalation. Capture findings in internal notes.",
|
| 1187 |
+
"public": false
|
| 1188 |
+
}
|
| 1189 |
+
]
|
| 1190 |
+
},
|
| 1191 |
+
{
|
| 1192 |
+
"title": "Scanner barcode parsing error #89",
|
| 1193 |
+
"detail": "Barcode scanner interprets some QR payloads with extra characters causing downstream validation failure.",
|
| 1194 |
+
"priority": "high",
|
| 1195 |
+
"type": "support",
|
| 1196 |
+
"assignedTo": "marcus@peppermint.local",
|
| 1197 |
+
"status": "in_progress",
|
| 1198 |
+
"comments": [
|
| 1199 |
+
{
|
| 1200 |
+
"userEmail": "admin@admin.com",
|
| 1201 |
+
"text": "Reference playbook DOC-0001 and related troubleshooting docs before escalation. Capture findings in internal notes.",
|
| 1202 |
+
"public": false
|
| 1203 |
+
}
|
| 1204 |
+
]
|
| 1205 |
+
},
|
| 1206 |
+
{
|
| 1207 |
+
"title": "Backup retention rule exception request #90",
|
| 1208 |
+
"detail": "Compliance requested temporary extension to backup retention for legal discovery hold datasets.",
|
| 1209 |
+
"priority": "low",
|
| 1210 |
+
"type": "support",
|
| 1211 |
+
"assignedTo": "james@peppermint.local",
|
| 1212 |
+
"status": "needs_support",
|
| 1213 |
+
"comments": [
|
| 1214 |
+
{
|
| 1215 |
+
"userEmail": "admin@admin.com",
|
| 1216 |
+
"text": "Reference playbook DOC-0001 and related troubleshooting docs before escalation. Capture findings in internal notes.",
|
| 1217 |
+
"public": false
|
| 1218 |
+
}
|
| 1219 |
+
]
|
| 1220 |
+
},
|
| 1221 |
+
{
|
| 1222 |
+
"title": "VPN authentication timeout for field team #91",
|
| 1223 |
+
"detail": "Multiple field agents report authentication timeout after entering correct credentials. Issue started after latest VPN gateway update.",
|
| 1224 |
+
"priority": "medium",
|
| 1225 |
+
"type": "feature",
|
| 1226 |
+
"assignedTo": "priya@peppermint.local",
|
| 1227 |
+
"status": "done",
|
| 1228 |
+
"comments": [
|
| 1229 |
+
{
|
| 1230 |
+
"userEmail": "james@peppermint.local",
|
| 1231 |
+
"text": "Work completed and validated with requester. Monitoring for recurrence over the next business day.",
|
| 1232 |
+
"public": true
|
| 1233 |
+
},
|
| 1234 |
+
{
|
| 1235 |
+
"userEmail": "admin@admin.com",
|
| 1236 |
+
"text": "Reference playbook DOC-0001 and related troubleshooting docs before escalation. Capture findings in internal notes.",
|
| 1237 |
+
"public": false
|
| 1238 |
+
}
|
| 1239 |
+
]
|
| 1240 |
+
},
|
| 1241 |
+
{
|
| 1242 |
+
"title": "Request access to finance reporting workspace #92",
|
| 1243 |
+
"detail": "Finance analyst requires read-only access to workbook models before quarter close. Manager approval attached in ticket notes.",
|
| 1244 |
+
"priority": "high",
|
| 1245 |
+
"type": "support",
|
| 1246 |
+
"assignedTo": "marcus@peppermint.local",
|
| 1247 |
+
"status": "needs_support",
|
| 1248 |
+
"comments": []
|
| 1249 |
+
},
|
| 1250 |
+
{
|
| 1251 |
+
"title": "Intermittent packet loss on warehouse Wi-Fi #93",
|
| 1252 |
+
"detail": "Warehouse users report high latency and packet loss near aisle C. Scanners and laptops both affected during peak hours.",
|
| 1253 |
+
"priority": "low",
|
| 1254 |
+
"type": "support",
|
| 1255 |
+
"status": "in_progress",
|
| 1256 |
+
"comments": []
|
| 1257 |
+
},
|
| 1258 |
+
{
|
| 1259 |
+
"title": "Onboarding account missing in HR system #94",
|
| 1260 |
+
"detail": "New hire profile was created in IAM but not provisioned into HR application. Start date is tomorrow morning.",
|
| 1261 |
+
"priority": "medium",
|
| 1262 |
+
"type": "support",
|
| 1263 |
+
"assignedTo": "priya@peppermint.local",
|
| 1264 |
+
"status": "needs_support",
|
| 1265 |
+
"comments": []
|
| 1266 |
+
},
|
| 1267 |
+
{
|
| 1268 |
+
"title": "Printer jam alerts without actual jams #95",
|
| 1269 |
+
"detail": "Printer status panel shows repeated jam alerts while output remains clear. Alerts interrupt batch print jobs.",
|
| 1270 |
+
"priority": "high",
|
| 1271 |
+
"type": "support",
|
| 1272 |
+
"assignedTo": "marcus@peppermint.local",
|
| 1273 |
+
"status": "in_progress",
|
| 1274 |
+
"comments": [
|
| 1275 |
+
{
|
| 1276 |
+
"userEmail": "priya@peppermint.local",
|
| 1277 |
+
"text": "Initial triage complete. Waiting on logs from the user to confirm root cause.",
|
| 1278 |
+
"public": true
|
| 1279 |
+
},
|
| 1280 |
+
{
|
| 1281 |
+
"userEmail": "admin@admin.com",
|
| 1282 |
+
"text": "Track this under weekly reliability review if unresolved by Friday.",
|
| 1283 |
+
"public": false
|
| 1284 |
+
}
|
| 1285 |
+
]
|
| 1286 |
+
},
|
| 1287 |
+
{
|
| 1288 |
+
"title": "SSO callback mismatch in procurement app #96",
|
| 1289 |
+
"detail": "Procurement app fails SSO login with callback mismatch message. Appears isolated to production tenant only.",
|
| 1290 |
+
"priority": "low",
|
| 1291 |
+
"type": "feature",
|
| 1292 |
+
"assignedTo": "james@peppermint.local",
|
| 1293 |
+
"status": "done",
|
| 1294 |
+
"comments": [
|
| 1295 |
+
{
|
| 1296 |
+
"userEmail": "james@peppermint.local",
|
| 1297 |
+
"text": "Work completed and validated with requester. Monitoring for recurrence over the next business day.",
|
| 1298 |
+
"public": true
|
| 1299 |
+
},
|
| 1300 |
+
{
|
| 1301 |
+
"userEmail": "admin@admin.com",
|
| 1302 |
+
"text": "Reference playbook DOC-0001 and related troubleshooting docs before escalation. Capture findings in internal notes.",
|
| 1303 |
+
"public": false
|
| 1304 |
+
}
|
| 1305 |
+
]
|
| 1306 |
+
},
|
| 1307 |
+
{
|
| 1308 |
+
"title": "MFA prompt loop on mobile devices #97",
|
| 1309 |
+
"detail": "Users complete MFA but are prompted again on next page. Happens mostly on Android devices with work profile.",
|
| 1310 |
+
"priority": "medium",
|
| 1311 |
+
"type": "support",
|
| 1312 |
+
"assignedTo": "priya@peppermint.local",
|
| 1313 |
+
"status": "in_progress",
|
| 1314 |
+
"comments": [
|
| 1315 |
+
{
|
| 1316 |
+
"userEmail": "admin@admin.com",
|
| 1317 |
+
"text": "Reference playbook DOC-0001 and related troubleshooting docs before escalation. Capture findings in internal notes.",
|
| 1318 |
+
"public": false
|
| 1319 |
+
}
|
| 1320 |
+
]
|
| 1321 |
+
},
|
| 1322 |
+
{
|
| 1323 |
+
"title": "Permission denied on monthly export folder #98",
|
| 1324 |
+
"detail": "Team can open reports but cannot write into monthly export folder. Access appears removed after policy sync.",
|
| 1325 |
+
"priority": "high",
|
| 1326 |
+
"type": "support",
|
| 1327 |
+
"assignedTo": "marcus@peppermint.local",
|
| 1328 |
+
"status": "needs_support",
|
| 1329 |
+
"comments": []
|
| 1330 |
+
},
|
| 1331 |
+
{
|
| 1332 |
+
"title": "Remote desktop disconnect after idle #99",
|
| 1333 |
+
"detail": "RDP session drops after about 7 minutes idle even when keepalive is enabled in client settings.",
|
| 1334 |
+
"priority": "low",
|
| 1335 |
+
"type": "support",
|
| 1336 |
+
"assignedTo": "james@peppermint.local",
|
| 1337 |
+
"status": "in_progress",
|
| 1338 |
+
"comments": [
|
| 1339 |
+
{
|
| 1340 |
+
"userEmail": "priya@peppermint.local",
|
| 1341 |
+
"text": "Initial triage complete. Waiting on logs from the user to confirm root cause.",
|
| 1342 |
+
"public": true
|
| 1343 |
+
},
|
| 1344 |
+
{
|
| 1345 |
+
"userEmail": "admin@admin.com",
|
| 1346 |
+
"text": "Track this under weekly reliability review if unresolved by Friday.",
|
| 1347 |
+
"public": false
|
| 1348 |
+
},
|
| 1349 |
+
{
|
| 1350 |
+
"userEmail": "admin@admin.com",
|
| 1351 |
+
"text": "Reference playbook DOC-0001 and related troubleshooting docs before escalation. Capture findings in internal notes.",
|
| 1352 |
+
"public": false
|
| 1353 |
+
}
|
| 1354 |
+
]
|
| 1355 |
+
},
|
| 1356 |
+
{
|
| 1357 |
+
"title": "Knowledge base article images not loading #100",
|
| 1358 |
+
"detail": "Embedded images in knowledge base articles fail to render for users outside HQ network.",
|
| 1359 |
+
"priority": "medium",
|
| 1360 |
+
"type": "support",
|
| 1361 |
+
"status": "needs_support",
|
| 1362 |
+
"comments": []
|
| 1363 |
+
},
|
| 1364 |
+
{
|
| 1365 |
+
"title": "Major incident: login outage on customer portal #101",
|
| 1366 |
+
"detail": "Between 09:40 and 10:05 UTC, users could not authenticate into the customer portal. Monitoring showed elevated 500 responses on auth endpoints.",
|
| 1367 |
+
"priority": "high",
|
| 1368 |
+
"type": "incident",
|
| 1369 |
+
"assignedTo": "james@peppermint.local",
|
| 1370 |
+
"status": "done",
|
| 1371 |
+
"comments": [
|
| 1372 |
+
{
|
| 1373 |
+
"userEmail": "james@peppermint.local",
|
| 1374 |
+
"text": "Root cause was a bad config rollout in auth gateway. Rolled back and validated stable login success rates.",
|
| 1375 |
+
"public": true
|
| 1376 |
+
}
|
| 1377 |
+
]
|
| 1378 |
+
},
|
| 1379 |
+
{
|
| 1380 |
+
"title": "Incident: elevated API latency in EU region #102",
|
| 1381 |
+
"detail": "Support observed p95 latency spikes above 3s for ticket APIs in EU region during peak traffic window.",
|
| 1382 |
+
"priority": "high",
|
| 1383 |
+
"type": "incident",
|
| 1384 |
+
"assignedTo": "priya@peppermint.local",
|
| 1385 |
+
"status": "in_progress",
|
| 1386 |
+
"comments": []
|
| 1387 |
+
},
|
| 1388 |
+
{
|
| 1389 |
+
"title": "Incident: email notification backlog #103",
|
| 1390 |
+
"detail": "Notification queue accumulated over 12k pending jobs and outbound user notifications were delayed by more than 40 minutes.",
|
| 1391 |
+
"priority": "high",
|
| 1392 |
+
"type": "incident",
|
| 1393 |
+
"assignedTo": "marcus@peppermint.local",
|
| 1394 |
+
"status": "in_progress",
|
| 1395 |
+
"comments": []
|
| 1396 |
+
},
|
| 1397 |
+
{
|
| 1398 |
+
"title": "Service request: add shared mailbox for procurement #104",
|
| 1399 |
+
"detail": "Procurement team requested a dedicated shared mailbox with three editors and audit logging enabled.",
|
| 1400 |
+
"priority": "medium",
|
| 1401 |
+
"type": "service",
|
| 1402 |
+
"assignedTo": "priya@peppermint.local",
|
| 1403 |
+
"status": "needs_support",
|
| 1404 |
+
"comments": []
|
| 1405 |
+
},
|
| 1406 |
+
{
|
| 1407 |
+
"title": "Service request: onboarding package for contractor cohort #105",
|
| 1408 |
+
"detail": "Create accounts, group assignments, and baseline software setup for 8 short-term contractors starting Monday.",
|
| 1409 |
+
"priority": "medium",
|
| 1410 |
+
"type": "service",
|
| 1411 |
+
"assignedTo": "james@peppermint.local",
|
| 1412 |
+
"status": "in_progress",
|
| 1413 |
+
"comments": []
|
| 1414 |
+
},
|
| 1415 |
+
{
|
| 1416 |
+
"title": "Service request: decommission legacy conference tablet #106",
|
| 1417 |
+
"detail": "Facilities requested retirement of old conference tablet and migration to the new scheduling panel.",
|
| 1418 |
+
"priority": "low",
|
| 1419 |
+
"type": "service",
|
| 1420 |
+
"assignedTo": "marcus@peppermint.local",
|
| 1421 |
+
"status": "done",
|
| 1422 |
+
"comments": []
|
| 1423 |
+
},
|
| 1424 |
+
{
|
| 1425 |
+
"title": "Bug: ticket status filter ignores saved view #107",
|
| 1426 |
+
"detail": "When loading a saved view with status filters, the UI resets to default and shows all statuses.",
|
| 1427 |
+
"priority": "medium",
|
| 1428 |
+
"type": "bug",
|
| 1429 |
+
"assignedTo": "james@peppermint.local",
|
| 1430 |
+
"status": "in_progress",
|
| 1431 |
+
"comments": []
|
| 1432 |
+
},
|
| 1433 |
+
{
|
| 1434 |
+
"title": "Bug: duplicate comments after page refresh #108",
|
| 1435 |
+
"detail": "Users report duplicate comment entries after posting and refreshing ticket detail page.",
|
| 1436 |
+
"priority": "medium",
|
| 1437 |
+
"type": "bug",
|
| 1438 |
+
"assignedTo": "priya@peppermint.local",
|
| 1439 |
+
"status": "needs_support",
|
| 1440 |
+
"comments": []
|
| 1441 |
+
},
|
| 1442 |
+
{
|
| 1443 |
+
"title": "Bug: attachment preview fails for PDF over 10MB #109",
|
| 1444 |
+
"detail": "Attachment preview panel fails silently for larger PDF files while download still works.",
|
| 1445 |
+
"priority": "low",
|
| 1446 |
+
"type": "bug",
|
| 1447 |
+
"assignedTo": "marcus@peppermint.local",
|
| 1448 |
+
"status": "done",
|
| 1449 |
+
"comments": []
|
| 1450 |
+
},
|
| 1451 |
+
{
|
| 1452 |
+
"title": "Maintenance: quarterly database index optimization #110",
|
| 1453 |
+
"detail": "Run scheduled index maintenance and analyze query plans for high-volume ticket and comment tables.",
|
| 1454 |
+
"priority": "medium",
|
| 1455 |
+
"type": "maintenance",
|
| 1456 |
+
"assignedTo": "marcus@peppermint.local",
|
| 1457 |
+
"status": "in_progress",
|
| 1458 |
+
"comments": []
|
| 1459 |
+
},
|
| 1460 |
+
{
|
| 1461 |
+
"title": "Maintenance: rotate API service credentials #111",
|
| 1462 |
+
"detail": "Security policy requires rotating integration service credentials and validating all dependent jobs.",
|
| 1463 |
+
"priority": "high",
|
| 1464 |
+
"type": "maintenance",
|
| 1465 |
+
"assignedTo": "james@peppermint.local",
|
| 1466 |
+
"status": "needs_support",
|
| 1467 |
+
"comments": []
|
| 1468 |
+
},
|
| 1469 |
+
{
|
| 1470 |
+
"title": "Maintenance: archive closed tickets older than 18 months #112",
|
| 1471 |
+
"detail": "Data governance requested archival of historical closed tickets with retention-safe export.",
|
| 1472 |
+
"priority": "low",
|
| 1473 |
+
"type": "maintenance",
|
| 1474 |
+
"assignedTo": "priya@peppermint.local",
|
| 1475 |
+
"status": "done",
|
| 1476 |
+
"comments": []
|
| 1477 |
+
},
|
| 1478 |
+
{
|
| 1479 |
+
"title": "Access request: temporary admin role for audit week #113",
|
| 1480 |
+
"detail": "Internal auditor needs temporary admin privileges for review period from Monday to Friday.",
|
| 1481 |
+
"priority": "high",
|
| 1482 |
+
"type": "access",
|
| 1483 |
+
"status": "needs_support",
|
| 1484 |
+
"comments": []
|
| 1485 |
+
},
|
| 1486 |
+
{
|
| 1487 |
+
"title": "Access request: BI read-only access for new analyst #114",
|
| 1488 |
+
"detail": "New analyst in operations team requires read-only access to BI dashboards and export permissions.",
|
| 1489 |
+
"priority": "medium",
|
| 1490 |
+
"type": "access",
|
| 1491 |
+
"assignedTo": "priya@peppermint.local",
|
| 1492 |
+
"status": "in_progress",
|
| 1493 |
+
"comments": []
|
| 1494 |
+
},
|
| 1495 |
+
{
|
| 1496 |
+
"title": "Access request: revoke contractor access after offboarding #115",
|
| 1497 |
+
"detail": "Offboarding checklist indicates 4 contractor accounts still active in two systems.",
|
| 1498 |
+
"priority": "high",
|
| 1499 |
+
"type": "access",
|
| 1500 |
+
"assignedTo": "james@peppermint.local",
|
| 1501 |
+
"status": "done",
|
| 1502 |
+
"comments": []
|
| 1503 |
+
},
|
| 1504 |
+
{
|
| 1505 |
+
"title": "Feedback: simplify ticket creation form labels #116",
|
| 1506 |
+
"detail": "Users reported confusion around priority wording and requested clearer helper text for ticket type and impact.",
|
| 1507 |
+
"priority": "low",
|
| 1508 |
+
"type": "feedback",
|
| 1509 |
+
"assignedTo": "marcus@peppermint.local",
|
| 1510 |
+
"status": "needs_support",
|
| 1511 |
+
"comments": []
|
| 1512 |
+
},
|
| 1513 |
+
{
|
| 1514 |
+
"title": "Feedback: dark mode contrast improvements #117",
|
| 1515 |
+
"detail": "Multiple agents noted that secondary text in dark mode is hard to read during long shifts.",
|
| 1516 |
+
"priority": "low",
|
| 1517 |
+
"type": "feedback",
|
| 1518 |
+
"assignedTo": "priya@peppermint.local",
|
| 1519 |
+
"status": "in_progress",
|
| 1520 |
+
"comments": []
|
| 1521 |
+
},
|
| 1522 |
+
{
|
| 1523 |
+
"title": "Feedback: add keyboard shortcuts for queue actions #118",
|
| 1524 |
+
"detail": "Power users requested keyboard shortcuts for assign, status change, and adding internal notes.",
|
| 1525 |
+
"priority": "medium",
|
| 1526 |
+
"type": "feedback",
|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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Build additive Peppermint seed assets from the public GLPI project.
|
| 3 |
+
|
| 4 |
+
The existing Peppermint seed files are inputs only. This script writes two
|
| 5 |
+
separate expansion assets so regenerating the GLPI corpus cannot rewrite or
|
| 6 |
+
reorder the original tickets or knowledge documents.
|
| 7 |
+
|
| 8 |
+
By default the script downloads recently updated GLPI issues and repository-
|
| 9 |
+
wide issue comments through GitHub's REST API. Set GITHUB_TOKEN to raise the
|
| 10 |
+
API rate limit. Documentation is read from a local checkout of
|
| 11 |
+
https://github.com/glpi-project/doc; pass --docs-dir to select that checkout.
|
| 12 |
+
"""
|
| 13 |
+
|
| 14 |
+
from __future__ import annotations
|
| 15 |
+
|
| 16 |
+
import argparse
|
| 17 |
+
import functools
|
| 18 |
+
import html
|
| 19 |
+
import json
|
| 20 |
+
import os
|
| 21 |
+
import re
|
| 22 |
+
import subprocess
|
| 23 |
+
import sys
|
| 24 |
+
import tempfile
|
| 25 |
+
import urllib.error
|
| 26 |
+
import urllib.parse
|
| 27 |
+
import urllib.request
|
| 28 |
+
from collections import defaultdict
|
| 29 |
+
from datetime import datetime, timezone
|
| 30 |
+
from pathlib import Path
|
| 31 |
+
from typing import Any, Iterable
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
ROOT = Path(__file__).resolve().parents[1]
|
| 35 |
+
BASE_TICKET_FILE = ROOT / "seed_data.json"
|
| 36 |
+
BASE_DOCUMENT_FILE = ROOT / "data" / "knowledge_base_documents.json"
|
| 37 |
+
DEFAULT_TICKET_OUTPUT = ROOT / "data" / "glpi_tickets.json"
|
| 38 |
+
DEFAULT_DOCUMENT_OUTPUT = ROOT / "data" / "glpi_knowledge_documents.json"
|
| 39 |
+
DEFAULT_USER_MAPPING_OUTPUT = ROOT / "data" / "glpi_user_mapping.json"
|
| 40 |
+
|
| 41 |
+
DEFAULT_REPOSITORY = "glpi-project/glpi"
|
| 42 |
+
DOC_REPOSITORY = "https://github.com/glpi-project/doc.git"
|
| 43 |
+
DOC_LICENSE = "CC BY-SA 3.0 FR"
|
| 44 |
+
DOC_LICENSE_URL = "https://creativecommons.org/licenses/by-sa/3.0/fr/deed.en"
|
| 45 |
+
|
| 46 |
+
TARGET_TOTAL_TICKETS = 1_000
|
| 47 |
+
TARGET_TOTAL_COMMENTS = 2_000
|
| 48 |
+
TARGET_TOTAL_DOCUMENTS = 200
|
| 49 |
+
TARGET_EXPANSION_USERS = 96
|
| 50 |
+
|
| 51 |
+
ROLE_ORDER = {"creator": 0, "assignee": 1, "commenter": 2}
|
| 52 |
+
|
| 53 |
+
EXPANSION_CLIENTS = (
|
| 54 |
+
{
|
| 55 |
+
"name": "Northstar Health Systems",
|
| 56 |
+
"email": "helpdesk@northstar-health.peppermint.local",
|
| 57 |
+
"contactName": "Avery Morgan",
|
| 58 |
+
"number": "CL-1001",
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"name": "Harborview Logistics",
|
| 62 |
+
"email": "support@harborview-logistics.peppermint.local",
|
| 63 |
+
"contactName": "Jordan Wells",
|
| 64 |
+
"number": "CL-1002",
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"name": "Meridian Education Group",
|
| 68 |
+
"email": "it@meridian-education.peppermint.local",
|
| 69 |
+
"contactName": "Casey Bennett",
|
| 70 |
+
"number": "CL-1003",
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"name": "Pinecrest Financial Services",
|
| 74 |
+
"email": "service@pinecrest-financial.peppermint.local",
|
| 75 |
+
"contactName": "Riley Patel",
|
| 76 |
+
"number": "CL-1004",
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"name": "Apex Manufacturing",
|
| 80 |
+
"email": "operations@apex-manufacturing.peppermint.local",
|
| 81 |
+
"contactName": "Cameron Diaz",
|
| 82 |
+
"number": "CL-1005",
|
| 83 |
+
},
|
| 84 |
+
{
|
| 85 |
+
"name": "Bluebird Hospitality",
|
| 86 |
+
"email": "technology@bluebird-hospitality.peppermint.local",
|
| 87 |
+
"contactName": "Taylor Brooks",
|
| 88 |
+
"number": "CL-1006",
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
"name": "CivicBridge Public Services",
|
| 92 |
+
"email": "systems@civicbridge.peppermint.local",
|
| 93 |
+
"contactName": "Morgan Reed",
|
| 94 |
+
"number": "CL-1007",
|
| 95 |
+
},
|
| 96 |
+
{
|
| 97 |
+
"name": "Lumen Retail Group",
|
| 98 |
+
"email": "care@lumen-retail.peppermint.local",
|
| 99 |
+
"contactName": "Quinn Foster",
|
| 100 |
+
"number": "CL-1008",
|
| 101 |
+
},
|
| 102 |
+
)
|
| 103 |
+
|
| 104 |
+
PSEUDONYM_FIRST_NAMES = (
|
| 105 |
+
"Avery", "Bailey", "Cameron", "Casey", "Dakota", "Devon", "Drew", "Elliot",
|
| 106 |
+
"Emerson", "Finley", "Harper", "Hayden", "Jamie", "Jesse", "Jordan", "Kai",
|
| 107 |
+
"Kendall", "Lane", "Logan", "Micah", "Morgan", "Noel", "Parker", "Quinn",
|
| 108 |
+
"Reese", "Remy", "Riley", "Robin", "Rowan", "Sage", "Skyler", "Taylor",
|
| 109 |
+
)
|
| 110 |
+
|
| 111 |
+
PSEUDONYM_LAST_NAMES = (
|
| 112 |
+
"Adler", "Bennett", "Blair", "Brooks", "Campbell", "Carson", "Chen", "Clarke",
|
| 113 |
+
"Collins", "Diaz", "Ellis", "Flynn", "Foster", "Grant", "Gray", "Hayes",
|
| 114 |
+
"Hollis", "Keller", "Kim", "Lawson", "Morgan", "Nolan", "Patel", "Reed",
|
| 115 |
+
"Rivera", "Sawyer", "Shaw", "Singh", "Stone", "Sutton", "Vega", "Wells",
|
| 116 |
+
)
|
| 117 |
+
|
| 118 |
+
BOT_LOGINS = {
|
| 119 |
+
"github-actions",
|
| 120 |
+
"github-actions[bot]",
|
| 121 |
+
"dependabot[bot]",
|
| 122 |
+
"renovate[bot]",
|
| 123 |
+
"codecov[bot]",
|
| 124 |
+
}
|
| 125 |
+
|
| 126 |
+
REJECT_LABELS = {"duplicate", "invalid", "refused", "spam"}
|
| 127 |
+
HIGH_PRIORITY_LABELS = {"security", "performance", "regression", "complex issue"}
|
| 128 |
+
LOW_PRIORITY_LABELS = {"enhancement", "feature suggestion", "documentation"}
|
| 129 |
+
NEEDS_SUPPORT_LABELS = {"need feedback", "question", "support"}
|
| 130 |
+
|
| 131 |
+
DROP_ISSUE_SECTIONS = {
|
| 132 |
+
"code of conduct",
|
| 133 |
+
"is there an existing issue for this",
|
| 134 |
+
}
|
| 135 |
+
|
| 136 |
+
ISSUE_SECTION_TITLES = {
|
| 137 |
+
"bug description": "Issue description",
|
| 138 |
+
"description": "Issue description",
|
| 139 |
+
"version": "Affected version",
|
| 140 |
+
"steps to reproduce": "Reproduction steps",
|
| 141 |
+
"steps to reproduce the behavior": "Reproduction steps",
|
| 142 |
+
"expected behavior": "Expected behavior",
|
| 143 |
+
"actual behavior": "Observed behavior",
|
| 144 |
+
"page url": "Affected page",
|
| 145 |
+
"relevant log output": "Diagnostic information",
|
| 146 |
+
"your glpi setup information": "Environment details",
|
| 147 |
+
"additional context": "Additional context",
|
| 148 |
+
"anything else": "Additional context",
|
| 149 |
+
}
|
| 150 |
+
|
| 151 |
+
EMPTY_SECTION_VALUES = {
|
| 152 |
+
"",
|
| 153 |
+
"no response",
|
| 154 |
+
"n/a",
|
| 155 |
+
"not applicable",
|
| 156 |
+
"[image omitted]",
|
| 157 |
+
"[technical log or code excerpt omitted from the seed.]",
|
| 158 |
+
"[extended diagnostic details omitted.]",
|
| 159 |
+
}
|
| 160 |
+
|
| 161 |
+
|
| 162 |
+
def parse_args() -> argparse.Namespace:
|
| 163 |
+
base = json.loads(BASE_TICKET_FILE.read_text(encoding="utf-8"))
|
| 164 |
+
base_docs = json.loads(BASE_DOCUMENT_FILE.read_text(encoding="utf-8"))["documents"]
|
| 165 |
+
default_tickets = TARGET_TOTAL_TICKETS - len(base["tickets"])
|
| 166 |
+
default_comments = TARGET_TOTAL_COMMENTS - sum(
|
| 167 |
+
len(ticket.get("comments", [])) for ticket in base["tickets"]
|
| 168 |
+
)
|
| 169 |
+
default_docs = TARGET_TOTAL_DOCUMENTS - len(base_docs)
|
| 170 |
+
|
| 171 |
+
parser = argparse.ArgumentParser(description=__doc__)
|
| 172 |
+
parser.add_argument("--repository", default=DEFAULT_REPOSITORY)
|
| 173 |
+
parser.add_argument("--docs-dir", type=Path)
|
| 174 |
+
parser.add_argument("--ticket-output", type=Path, default=DEFAULT_TICKET_OUTPUT)
|
| 175 |
+
parser.add_argument("--document-output", type=Path, default=DEFAULT_DOCUMENT_OUTPUT)
|
| 176 |
+
parser.add_argument(
|
| 177 |
+
"--user-mapping-output", type=Path, default=DEFAULT_USER_MAPPING_OUTPUT
|
| 178 |
+
)
|
| 179 |
+
parser.add_argument("--cache-dir", type=Path)
|
| 180 |
+
parser.add_argument("--ticket-count", type=int, default=default_tickets)
|
| 181 |
+
parser.add_argument("--comment-count", type=int, default=default_comments)
|
| 182 |
+
parser.add_argument("--document-count", type=int, default=default_docs)
|
| 183 |
+
parser.add_argument("--open-pages", type=int, default=4)
|
| 184 |
+
parser.add_argument("--closed-pages", type=int, default=10)
|
| 185 |
+
parser.add_argument("--comment-pages", type=int, default=108)
|
| 186 |
+
parser.add_argument(
|
| 187 |
+
"--check-only",
|
| 188 |
+
action="store_true",
|
| 189 |
+
help="Validate existing expansion outputs without downloading or writing.",
|
| 190 |
+
)
|
| 191 |
+
parser.add_argument(
|
| 192 |
+
"--sanitize-existing",
|
| 193 |
+
action="store_true",
|
| 194 |
+
help=(
|
| 195 |
+
"Rewrite only visible descriptions/comments in the existing ticket "
|
| 196 |
+
"asset, preserving its selected issues, comments, users, and metadata."
|
| 197 |
+
),
|
| 198 |
+
)
|
| 199 |
+
parser.add_argument(
|
| 200 |
+
"--assign-existing-clients",
|
| 201 |
+
action="store_true",
|
| 202 |
+
help=(
|
| 203 |
+
"Add the deterministic client directory and client assignments to "
|
| 204 |
+
"the existing ticket asset without changing corpus membership."
|
| 205 |
+
),
|
| 206 |
+
)
|
| 207 |
+
parser.add_argument(
|
| 208 |
+
"--consolidate-existing-users",
|
| 209 |
+
action="store_true",
|
| 210 |
+
help=(
|
| 211 |
+
"Consolidate source contributors with identical role combinations "
|
| 212 |
+
"into shared personas in the existing assets without changing corpus "
|
| 213 |
+
"membership."
|
| 214 |
+
),
|
| 215 |
+
)
|
| 216 |
+
return parser.parse_args()
|
| 217 |
+
|
| 218 |
+
|
| 219 |
+
def json_dump(path: Path, payload: Any) -> None:
|
| 220 |
+
path.parent.mkdir(parents=True, exist_ok=True)
|
| 221 |
+
path.write_text(
|
| 222 |
+
json.dumps(payload, ensure_ascii=False, indent=2) + "\n",
|
| 223 |
+
encoding="utf-8",
|
| 224 |
+
)
|
| 225 |
+
|
| 226 |
+
|
| 227 |
+
def client_email_for_issue(issue_number: Any) -> str | None:
|
| 228 |
+
"""Assign three quarters of imported issues across the client directory."""
|
| 229 |
+
number = int(issue_number)
|
| 230 |
+
if number % 4 == 0:
|
| 231 |
+
return None
|
| 232 |
+
return EXPANSION_CLIENTS[(number // 4) % len(EXPANSION_CLIENTS)]["email"]
|
| 233 |
+
|
| 234 |
+
|
| 235 |
+
def assign_clients_to_tickets(tickets: list[dict[str, Any]]) -> None:
|
| 236 |
+
for ticket in tickets:
|
| 237 |
+
client_email = client_email_for_issue(ticket["source"]["issueNumber"])
|
| 238 |
+
if client_email:
|
| 239 |
+
ticket["clientEmail"] = client_email
|
| 240 |
+
else:
|
| 241 |
+
ticket.pop("clientEmail", None)
|
| 242 |
+
|
| 243 |
+
|
| 244 |
+
class GitHubClient:
|
| 245 |
+
def __init__(self, cache_dir: Path):
|
| 246 |
+
self.cache_dir = cache_dir
|
| 247 |
+
self.cache_dir.mkdir(parents=True, exist_ok=True)
|
| 248 |
+
self.token = os.environ.get("GITHUB_TOKEN")
|
| 249 |
+
|
| 250 |
+
def request(self, path: str, params: dict[str, Any]) -> Any:
|
| 251 |
+
query = urllib.parse.urlencode(params)
|
| 252 |
+
url = f"https://api.github.com{path}?{query}"
|
| 253 |
+
headers = {
|
| 254 |
+
"Accept": "application/vnd.github+json",
|
| 255 |
+
"User-Agent": "webarena-pro-peppermint-glpi-importer",
|
| 256 |
+
"X-GitHub-Api-Version": "2022-11-28",
|
| 257 |
+
}
|
| 258 |
+
if self.token:
|
| 259 |
+
headers["Authorization"] = f"Bearer {self.token}"
|
| 260 |
+
|
| 261 |
+
request = urllib.request.Request(url, headers=headers)
|
| 262 |
+
try:
|
| 263 |
+
with urllib.request.urlopen(request, timeout=60) as response:
|
| 264 |
+
payload = json.load(response)
|
| 265 |
+
except urllib.error.HTTPError as exc:
|
| 266 |
+
body = exc.read().decode("utf-8", errors="replace")
|
| 267 |
+
if exc.code in {403, 429}:
|
| 268 |
+
raise RuntimeError(
|
| 269 |
+
"GitHub API rate limit reached. Set GITHUB_TOKEN or rerun after "
|
| 270 |
+
f"the reset window. Response: {body[:300]}"
|
| 271 |
+
) from exc
|
| 272 |
+
raise RuntimeError(f"GitHub request failed ({exc.code}): {body[:500]}") from exc
|
| 273 |
+
|
| 274 |
+
return payload
|
| 275 |
+
|
| 276 |
+
def get(self, path: str, params: dict[str, Any], cache_key: str) -> Any:
|
| 277 |
+
cache_path = self.cache_dir / f"{cache_key}.json"
|
| 278 |
+
if cache_path.exists():
|
| 279 |
+
return json.loads(cache_path.read_text(encoding="utf-8"))
|
| 280 |
+
payload = self.request(path, params)
|
| 281 |
+
json_dump(cache_path, payload)
|
| 282 |
+
return payload
|
| 283 |
+
|
| 284 |
+
|
| 285 |
+
def fetch_issue_candidates(
|
| 286 |
+
client: GitHubClient,
|
| 287 |
+
repository: str,
|
| 288 |
+
state: str,
|
| 289 |
+
pages: int,
|
| 290 |
+
) -> list[dict[str, Any]]:
|
| 291 |
+
candidates: list[dict[str, Any]] = []
|
| 292 |
+
for page in range(1, pages + 1):
|
| 293 |
+
payload = client.get(
|
| 294 |
+
"/search/issues",
|
| 295 |
+
{
|
| 296 |
+
"q": f"repo:{repository} is:issue state:{state}",
|
| 297 |
+
"sort": "updated",
|
| 298 |
+
"order": "desc",
|
| 299 |
+
"per_page": 100,
|
| 300 |
+
"page": page,
|
| 301 |
+
},
|
| 302 |
+
f"v2-search-issues-{state}-{page:02d}",
|
| 303 |
+
)
|
| 304 |
+
items = payload.get("items", [])
|
| 305 |
+
if not items:
|
| 306 |
+
break
|
| 307 |
+
candidates.extend(items)
|
| 308 |
+
return candidates
|
| 309 |
+
|
| 310 |
+
|
| 311 |
+
def fetch_recent_comments(
|
| 312 |
+
client: GitHubClient,
|
| 313 |
+
repository: str,
|
| 314 |
+
pages: int,
|
| 315 |
+
) -> list[dict[str, Any]]:
|
| 316 |
+
comments: list[dict[str, Any]] = []
|
| 317 |
+
for page in range(1, pages + 1):
|
| 318 |
+
payload = client.get(
|
| 319 |
+
f"/repos/{repository}/issues/comments",
|
| 320 |
+
{
|
| 321 |
+
"sort": "created",
|
| 322 |
+
"direction": "desc",
|
| 323 |
+
"per_page": 100,
|
| 324 |
+
"page": page,
|
| 325 |
+
},
|
| 326 |
+
f"v3-comments-{page:02d}",
|
| 327 |
+
)
|
| 328 |
+
if not payload:
|
| 329 |
+
break
|
| 330 |
+
comments.extend(payload)
|
| 331 |
+
return comments
|
| 332 |
+
|
| 333 |
+
|
| 334 |
+
def label_names(issue: dict[str, Any]) -> set[str]:
|
| 335 |
+
return {
|
| 336 |
+
str(label.get("name", "")).strip().lower()
|
| 337 |
+
for label in issue.get("labels", [])
|
| 338 |
+
if label.get("name")
|
| 339 |
+
}
|
| 340 |
+
|
| 341 |
+
|
| 342 |
+
def issue_number_from_url(url: str) -> int | None:
|
| 343 |
+
match = re.search(r"/issues/(\d+)$", url or "")
|
| 344 |
+
return int(match.group(1)) if match else None
|
| 345 |
+
|
| 346 |
+
|
| 347 |
+
def is_bot(user: dict[str, Any] | None) -> bool:
|
| 348 |
+
if not user:
|
| 349 |
+
return True
|
| 350 |
+
login = str(user.get("login", "")).lower()
|
| 351 |
+
return user.get("type") == "Bot" or login in BOT_LOGINS or login.endswith("[bot]")
|
| 352 |
+
|
| 353 |
+
|
| 354 |
+
def clean_markdown(value: str | None, limit: int) -> str:
|
| 355 |
+
text = html.unescape(value or "")
|
| 356 |
+
text = re.sub(r"<!--.*?-->", "", text, flags=re.DOTALL)
|
| 357 |
+
text = re.sub(
|
| 358 |
+
r"```[^\n]*\n.*?```",
|
| 359 |
+
"\n[Technical log or code excerpt omitted from the seed.]\n",
|
| 360 |
+
text,
|
| 361 |
+
flags=re.DOTALL,
|
| 362 |
+
)
|
| 363 |
+
text = re.sub(
|
| 364 |
+
r"<details>.*?</details>",
|
| 365 |
+
"\n[Extended diagnostic details omitted.]\n",
|
| 366 |
+
text,
|
| 367 |
+
flags=re.DOTALL | re.IGNORECASE,
|
| 368 |
+
)
|
| 369 |
+
text = re.sub(r"!\[([^]]*)]\([^)]+\)", r"[Image: \1]", text)
|
| 370 |
+
text = re.sub(r"<img\b[^>]*>", "[Image omitted]", text, flags=re.IGNORECASE)
|
| 371 |
+
text = re.sub(r"<[^>\n]+>", "", text)
|
| 372 |
+
text = re.sub(r"[\w.+-]+@[\w.-]+\.[A-Za-z]{2,}", "[email redacted]", text)
|
| 373 |
+
text = re.sub(r"\r\n?", "\n", text)
|
| 374 |
+
text = re.sub(r"[ \t]+", " ", text)
|
| 375 |
+
text = re.sub(r"\n{3,}", "\n\n", text).strip()
|
| 376 |
+
if len(text) > limit:
|
| 377 |
+
text = text[: limit - 24].rstrip() + "\n\n[Content truncated.]"
|
| 378 |
+
return text
|
| 379 |
+
|
| 380 |
+
|
| 381 |
+
def clean_helpdesk_text(
|
| 382 |
+
value: str,
|
| 383 |
+
limit: int,
|
| 384 |
+
*,
|
| 385 |
+
sanitize_visible_urls: bool = False,
|
| 386 |
+
expand_escaped_newlines: bool = False,
|
| 387 |
+
) -> str:
|
| 388 |
+
"""Turn common GitHub Markdown into readable Peppermint plain text."""
|
| 389 |
+
text = clean_markdown(value, limit * 2)
|
| 390 |
+
text = re.sub(r"\[([^]]+)]\([^)]+\)", r"\1", text)
|
| 391 |
+
if expand_escaped_newlines:
|
| 392 |
+
text = re.sub(r"(?:\\+r)?\\+n", "\n", text)
|
| 393 |
+
text = re.sub(r"\\+r", "\n", text)
|
| 394 |
+
if sanitize_visible_urls:
|
| 395 |
+
# Source URLs remain available in structured provenance metadata, but
|
| 396 |
+
# should not leak into customer-facing ticket or comment copy.
|
| 397 |
+
text = re.sub(r"https?://[^\s<>\[\]\"']*", "", text, flags=re.IGNORECASE)
|
| 398 |
+
text = re.sub(
|
| 399 |
+
r"^\s*(?:Reference|Source|Original public issue)\s*:\s*$",
|
| 400 |
+
"",
|
| 401 |
+
text,
|
| 402 |
+
flags=re.MULTILINE | re.IGNORECASE,
|
| 403 |
+
)
|
| 404 |
+
text = re.sub(r"^>\s?", "", text, flags=re.MULTILINE)
|
| 405 |
+
text = re.sub(r"^\s*-\s*\[[xX ]\]\s*", "- ", text, flags=re.MULTILINE)
|
| 406 |
+
text = re.sub(r"^(\s*)(\d+)\s*[-)]\s+", r"\1\2. ", text, flags=re.MULTILINE)
|
| 407 |
+
text = text.replace("**", "").replace("__", "").replace("`", "")
|
| 408 |
+
text = re.sub(r"^\s*\[(?:Image(?::[^]]*)?|Technical log or code excerpt omitted from the seed|Extended diagnostic details omitted)\.?]\s*$", "", text, flags=re.MULTILINE | re.IGNORECASE)
|
| 409 |
+
text = re.sub(r"\n{3,}", "\n\n", text).strip()
|
| 410 |
+
if len(text) > limit:
|
| 411 |
+
text = text[: limit - 24].rstrip() + "\n\n[Content truncated.]"
|
| 412 |
+
return text
|
| 413 |
+
|
| 414 |
+
|
| 415 |
+
def sanitize_existing_visible_text(value: str) -> str:
|
| 416 |
+
"""Remove visible source URLs and turn escaped newlines into line breaks."""
|
| 417 |
+
text = re.sub(r"(?:\\+r)?\\+n", "\n", value)
|
| 418 |
+
text = re.sub(r"\\+r", "\n", text)
|
| 419 |
+
text = re.sub(r"https?://[^\s<>\[\]\"']*", "", text, flags=re.IGNORECASE)
|
| 420 |
+
text = re.sub(
|
| 421 |
+
r"^\s*(?:Reference|Source|Original public issue)\s*:\s*$",
|
| 422 |
+
"",
|
| 423 |
+
text,
|
| 424 |
+
flags=re.MULTILINE | re.IGNORECASE,
|
| 425 |
+
)
|
| 426 |
+
text = re.sub(r"[ \t]+(?=\n|$)", "", text)
|
| 427 |
+
return re.sub(r"\n{3,}", "\n\n", text).strip()
|
| 428 |
+
|
| 429 |
+
|
| 430 |
+
def normalize_heading(value: str) -> str:
|
| 431 |
+
value = clean_helpdesk_text(value, 200).strip().rstrip("?:")
|
| 432 |
+
return re.sub(r"\s+", " ", value).lower()
|
| 433 |
+
|
| 434 |
+
|
| 435 |
+
def native_issue_title(value: str | None) -> str:
|
| 436 |
+
title = clean_helpdesk_text(value or "", 240)
|
| 437 |
+
# GitHub issue titles often carry a redundant product/version tag. The
|
| 438 |
+
# source product and issue number remain in structured metadata.
|
| 439 |
+
while True:
|
| 440 |
+
cleaned = re.sub(
|
| 441 |
+
r"^\s*\[\s*GLPI[^]]*]\s*(?:[-:–—]\s*)?",
|
| 442 |
+
"",
|
| 443 |
+
title,
|
| 444 |
+
count=1,
|
| 445 |
+
flags=re.IGNORECASE,
|
| 446 |
+
).strip()
|
| 447 |
+
if cleaned == title:
|
| 448 |
+
break
|
| 449 |
+
title = cleaned
|
| 450 |
+
return title or "Support request"
|
| 451 |
+
|
| 452 |
+
|
| 453 |
+
def section_is_empty(value: str) -> bool:
|
| 454 |
+
normalized = re.sub(r"[_*]", "", value).strip().lower().rstrip(".")
|
| 455 |
+
return normalized in EMPTY_SECTION_VALUES
|
| 456 |
+
|
| 457 |
+
|
| 458 |
+
def native_issue_detail(
|
| 459 |
+
issue: dict[str, Any], *, sanitize_visible_content: bool = True
|
| 460 |
+
) -> str:
|
| 461 |
+
"""Translate a GitHub issue-template body into native helpdesk language."""
|
| 462 |
+
body = clean_markdown(issue.get("body"), 12_000)
|
| 463 |
+
sections: list[tuple[str | None, list[str]]] = []
|
| 464 |
+
current_heading: str | None = None
|
| 465 |
+
current_lines: list[str] = []
|
| 466 |
+
|
| 467 |
+
def flush() -> None:
|
| 468 |
+
nonlocal current_lines
|
| 469 |
+
if current_heading is not None or current_lines:
|
| 470 |
+
sections.append((current_heading, current_lines))
|
| 471 |
+
current_lines = []
|
| 472 |
+
|
| 473 |
+
for line in body.splitlines():
|
| 474 |
+
heading_match = re.match(r"^#{1,6}\s+(.+?)\s*$", line)
|
| 475 |
+
if heading_match:
|
| 476 |
+
flush()
|
| 477 |
+
current_heading = heading_match.group(1)
|
| 478 |
+
else:
|
| 479 |
+
current_lines.append(line)
|
| 480 |
+
flush()
|
| 481 |
+
|
| 482 |
+
rendered: list[str] = []
|
| 483 |
+
for heading, lines in sections:
|
| 484 |
+
normalized_heading = normalize_heading(heading or "")
|
| 485 |
+
if normalized_heading in DROP_ISSUE_SECTIONS:
|
| 486 |
+
continue
|
| 487 |
+
|
| 488 |
+
content = clean_helpdesk_text(
|
| 489 |
+
"\n".join(lines),
|
| 490 |
+
5_000,
|
| 491 |
+
sanitize_visible_urls=sanitize_visible_content,
|
| 492 |
+
expand_escaped_newlines=sanitize_visible_content,
|
| 493 |
+
)
|
| 494 |
+
if normalized_heading == "disable plugins":
|
| 495 |
+
if re.search(r"reproduce|disabled", content, flags=re.IGNORECASE):
|
| 496 |
+
content = "The issue was reproduced with all plugins disabled."
|
| 497 |
+
else:
|
| 498 |
+
continue
|
| 499 |
+
display_heading = "Troubleshooting performed"
|
| 500 |
+
else:
|
| 501 |
+
display_heading = ISSUE_SECTION_TITLES.get(
|
| 502 |
+
normalized_heading,
|
| 503 |
+
clean_helpdesk_text(heading or "Issue description", 120).rstrip("?:"),
|
| 504 |
+
)
|
| 505 |
+
|
| 506 |
+
if section_is_empty(content):
|
| 507 |
+
continue
|
| 508 |
+
rendered.append(f"{display_heading}:\n{content}")
|
| 509 |
+
|
| 510 |
+
if not rendered:
|
| 511 |
+
fallback = clean_helpdesk_text(
|
| 512 |
+
body,
|
| 513 |
+
5_500,
|
| 514 |
+
sanitize_visible_urls=sanitize_visible_content,
|
| 515 |
+
expand_escaped_newlines=sanitize_visible_content,
|
| 516 |
+
)
|
| 517 |
+
if fallback:
|
| 518 |
+
rendered.append(f"Issue description:\n{fallback}")
|
| 519 |
+
|
| 520 |
+
detail = "\n\n".join(rendered)
|
| 521 |
+
if len(detail) > 6_000:
|
| 522 |
+
detail = detail[: 5_976].rstrip() + "\n\n[Content truncated.]"
|
| 523 |
+
return detail
|
| 524 |
+
|
| 525 |
+
|
| 526 |
+
def issue_is_usable(issue: dict[str, Any]) -> bool:
|
| 527 |
+
labels = label_names(issue)
|
| 528 |
+
title = native_issue_title(issue.get("title"))
|
| 529 |
+
# Keep candidate selection stable when visible source URLs are removed.
|
| 530 |
+
# This reproduces the prior eligibility calculation while the transformed
|
| 531 |
+
# output uses the sanitized rendering below.
|
| 532 |
+
body = native_issue_detail(issue, sanitize_visible_content=False)
|
| 533 |
+
if labels & REJECT_LABELS:
|
| 534 |
+
return False
|
| 535 |
+
if not title or len(body) < 60:
|
| 536 |
+
return False
|
| 537 |
+
return True
|
| 538 |
+
|
| 539 |
+
|
| 540 |
+
def map_priority(labels: set[str]) -> str:
|
| 541 |
+
if labels & HIGH_PRIORITY_LABELS:
|
| 542 |
+
return "high"
|
| 543 |
+
if labels & LOW_PRIORITY_LABELS:
|
| 544 |
+
return "low"
|
| 545 |
+
return "medium"
|
| 546 |
+
|
| 547 |
+
|
| 548 |
+
def map_type(labels: set[str]) -> str:
|
| 549 |
+
if "security" in labels:
|
| 550 |
+
return "incident"
|
| 551 |
+
if "bug" in labels:
|
| 552 |
+
return "bug"
|
| 553 |
+
if labels & {"enhancement", "feature suggestion"}:
|
| 554 |
+
return "feature"
|
| 555 |
+
if "inventory" in labels:
|
| 556 |
+
return "maintenance"
|
| 557 |
+
return "support"
|
| 558 |
+
|
| 559 |
+
|
| 560 |
+
def map_status(issue: dict[str, Any], labels: set[str]) -> tuple[str, bool]:
|
| 561 |
+
if issue.get("state") == "closed":
|
| 562 |
+
return "done", True
|
| 563 |
+
if labels & NEEDS_SUPPORT_LABELS:
|
| 564 |
+
return "needs_support", False
|
| 565 |
+
return "in_progress", False
|
| 566 |
+
|
| 567 |
+
|
| 568 |
+
def source_login(user: dict[str, Any] | None) -> str | None:
|
| 569 |
+
if not user or not user.get("login"):
|
| 570 |
+
return None
|
| 571 |
+
return str(user["login"]).strip()
|
| 572 |
+
|
| 573 |
+
|
| 574 |
+
def issue_assignees(issue: dict[str, Any]) -> list[dict[str, Any]]:
|
| 575 |
+
assignees = [user for user in issue.get("assignees", []) if source_login(user)]
|
| 576 |
+
primary = issue.get("assignee")
|
| 577 |
+
if primary and source_login(primary):
|
| 578 |
+
primary_login = source_login(primary).casefold()
|
| 579 |
+
assignees = [
|
| 580 |
+
primary,
|
| 581 |
+
*[
|
| 582 |
+
user
|
| 583 |
+
for user in assignees
|
| 584 |
+
if source_login(user).casefold() != primary_login
|
| 585 |
+
],
|
| 586 |
+
]
|
| 587 |
+
return assignees
|
| 588 |
+
|
| 589 |
+
|
| 590 |
+
def collect_actor_roles(
|
| 591 |
+
selected: list[dict[str, Any]],
|
| 592 |
+
allocated_comments: dict[int, list[dict[str, Any]]],
|
| 593 |
+
) -> dict[str, dict[str, Any]]:
|
| 594 |
+
actors: dict[str, dict[str, Any]] = {}
|
| 595 |
+
|
| 596 |
+
def add(user: dict[str, Any] | None, role: str) -> None:
|
| 597 |
+
login = source_login(user)
|
| 598 |
+
if not login:
|
| 599 |
+
return
|
| 600 |
+
key = login.casefold()
|
| 601 |
+
actor = actors.setdefault(key, {"sourceLogin": login, "roles": set()})
|
| 602 |
+
actor["roles"].add(role)
|
| 603 |
+
|
| 604 |
+
for issue in selected:
|
| 605 |
+
add(issue.get("user"), "creator")
|
| 606 |
+
for assignee in issue_assignees(issue):
|
| 607 |
+
add(assignee, "assignee")
|
| 608 |
+
for comment in allocated_comments.get(int(issue["number"]), []):
|
| 609 |
+
add(comment.get("user"), "commenter")
|
| 610 |
+
return actors
|
| 611 |
+
|
| 612 |
+
|
| 613 |
+
def build_actor_mapping(
|
| 614 |
+
actor_roles: dict[str, dict[str, Any]],
|
| 615 |
+
) -> dict[str, dict[str, Any]]:
|
| 616 |
+
capacity = len(PSEUDONYM_FIRST_NAMES) * len(PSEUDONYM_LAST_NAMES)
|
| 617 |
+
target_users = min(TARGET_EXPANSION_USERS, len(actor_roles))
|
| 618 |
+
if target_users > capacity:
|
| 619 |
+
raise RuntimeError(
|
| 620 |
+
f"Pseudonym pool supports {capacity} users but corpus needs {target_users}"
|
| 621 |
+
)
|
| 622 |
+
|
| 623 |
+
grouped: dict[tuple[str, ...], list[str]] = defaultdict(list)
|
| 624 |
+
for key, actor in actor_roles.items():
|
| 625 |
+
signature = tuple(sorted(actor["roles"], key=ROLE_ORDER.__getitem__))
|
| 626 |
+
grouped[signature].append(key)
|
| 627 |
+
|
| 628 |
+
signatures = sorted(
|
| 629 |
+
grouped,
|
| 630 |
+
key=lambda roles: tuple(ROLE_ORDER[role] for role in roles),
|
| 631 |
+
)
|
| 632 |
+
if target_users < len(signatures):
|
| 633 |
+
raise RuntimeError(
|
| 634 |
+
f"Cannot preserve {len(signatures)} role combinations with only "
|
| 635 |
+
f"{target_users} personas"
|
| 636 |
+
)
|
| 637 |
+
|
| 638 |
+
total_actors = len(actor_roles)
|
| 639 |
+
quotas = {
|
| 640 |
+
signature: len(grouped[signature]) * target_users / total_actors
|
| 641 |
+
for signature in signatures
|
| 642 |
+
}
|
| 643 |
+
allocations = {
|
| 644 |
+
signature: max(1, int(quotas[signature]))
|
| 645 |
+
for signature in signatures
|
| 646 |
+
}
|
| 647 |
+
while sum(allocations.values()) < target_users:
|
| 648 |
+
candidates = [
|
| 649 |
+
signature
|
| 650 |
+
for signature in signatures
|
| 651 |
+
if allocations[signature] < len(grouped[signature])
|
| 652 |
+
]
|
| 653 |
+
signature = min(
|
| 654 |
+
candidates,
|
| 655 |
+
key=lambda item: (
|
| 656 |
+
-(quotas[item] - allocations[item]),
|
| 657 |
+
tuple(ROLE_ORDER[role] for role in item),
|
| 658 |
+
),
|
| 659 |
+
)
|
| 660 |
+
allocations[signature] += 1
|
| 661 |
+
while sum(allocations.values()) > target_users:
|
| 662 |
+
candidates = [
|
| 663 |
+
signature for signature in signatures if allocations[signature] > 1
|
| 664 |
+
]
|
| 665 |
+
signature = min(
|
| 666 |
+
candidates,
|
| 667 |
+
key=lambda item: (
|
| 668 |
+
-(allocations[item] - quotas[item]),
|
| 669 |
+
tuple(ROLE_ORDER[role] for role in item),
|
| 670 |
+
),
|
| 671 |
+
)
|
| 672 |
+
allocations[signature] -= 1
|
| 673 |
+
|
| 674 |
+
mapping: dict[str, dict[str, Any]] = {}
|
| 675 |
+
persona_index = 0
|
| 676 |
+
for signature in signatures:
|
| 677 |
+
personas: list[dict[str, Any]] = []
|
| 678 |
+
for _ in range(allocations[signature]):
|
| 679 |
+
first = PSEUDONYM_FIRST_NAMES[
|
| 680 |
+
persona_index % len(PSEUDONYM_FIRST_NAMES)
|
| 681 |
+
]
|
| 682 |
+
last = PSEUDONYM_LAST_NAMES[
|
| 683 |
+
persona_index // len(PSEUDONYM_FIRST_NAMES)
|
| 684 |
+
]
|
| 685 |
+
personas.append(
|
| 686 |
+
{
|
| 687 |
+
"personaId": f"persona-{persona_index + 1:03d}",
|
| 688 |
+
"roles": list(signature),
|
| 689 |
+
"name": f"{first} {last}",
|
| 690 |
+
"email": f"{first.lower()}.{last.lower()}@peppermint.local",
|
| 691 |
+
}
|
| 692 |
+
)
|
| 693 |
+
persona_index += 1
|
| 694 |
+
|
| 695 |
+
for index, key in enumerate(sorted(grouped[signature])):
|
| 696 |
+
actor = actor_roles[key]
|
| 697 |
+
persona = personas[index % len(personas)]
|
| 698 |
+
mapping[key] = {
|
| 699 |
+
"sourceLogin": actor["sourceLogin"],
|
| 700 |
+
**persona,
|
| 701 |
+
}
|
| 702 |
+
|
| 703 |
+
assert persona_index == target_users
|
| 704 |
+
return mapping
|
| 705 |
+
|
| 706 |
+
|
| 707 |
+
def mapped_actor(
|
| 708 |
+
user: dict[str, Any] | None,
|
| 709 |
+
actor_mapping: dict[str, dict[str, Any]],
|
| 710 |
+
) -> dict[str, Any]:
|
| 711 |
+
login = source_login(user)
|
| 712 |
+
if not login or login.casefold() not in actor_mapping:
|
| 713 |
+
raise RuntimeError(f"Source actor is missing from mapping: {login!r}")
|
| 714 |
+
return actor_mapping[login.casefold()]
|
| 715 |
+
|
| 716 |
+
|
| 717 |
+
@functools.lru_cache(maxsize=4)
|
| 718 |
+
def actor_mention_pattern(keys: tuple[str, ...]) -> re.Pattern[str]:
|
| 719 |
+
return re.compile(
|
| 720 |
+
r"@(" + "|".join(re.escape(key) for key in keys) + r")(?![\w-])",
|
| 721 |
+
flags=re.IGNORECASE,
|
| 722 |
+
)
|
| 723 |
+
|
| 724 |
+
|
| 725 |
+
def replace_actor_mentions(
|
| 726 |
+
value: str,
|
| 727 |
+
actor_mapping: dict[str, dict[str, Any]],
|
| 728 |
+
) -> str:
|
| 729 |
+
if "@" not in value:
|
| 730 |
+
return value
|
| 731 |
+
keys = tuple(sorted(actor_mapping, key=len, reverse=True))
|
| 732 |
+
pattern = actor_mention_pattern(keys)
|
| 733 |
+
return pattern.sub(
|
| 734 |
+
lambda match: actor_mapping[match.group(1).casefold()]["name"],
|
| 735 |
+
value,
|
| 736 |
+
)
|
| 737 |
+
|
| 738 |
+
|
| 739 |
+
def comment_by_issue(
|
| 740 |
+
raw_comments: Iterable[dict[str, Any]],
|
| 741 |
+
) -> dict[int, list[dict[str, Any]]]:
|
| 742 |
+
grouped: dict[int, list[dict[str, Any]]] = defaultdict(list)
|
| 743 |
+
for comment in raw_comments:
|
| 744 |
+
number = issue_number_from_url(str(comment.get("issue_url", "")))
|
| 745 |
+
body = clean_markdown(comment.get("body"), 2_500)
|
| 746 |
+
if number is None or not body or is_bot(comment.get("user")):
|
| 747 |
+
continue
|
| 748 |
+
grouped[number].append(comment)
|
| 749 |
+
for comments in grouped.values():
|
| 750 |
+
comments.sort(key=lambda item: (item.get("created_at", ""), item.get("id", 0)))
|
| 751 |
+
return grouped
|
| 752 |
+
|
| 753 |
+
|
| 754 |
+
def select_issues(
|
| 755 |
+
open_candidates: list[dict[str, Any]],
|
| 756 |
+
closed_candidates: list[dict[str, Any]],
|
| 757 |
+
grouped_comments: dict[int, list[dict[str, Any]]],
|
| 758 |
+
target: int,
|
| 759 |
+
) -> list[dict[str, Any]]:
|
| 760 |
+
def ranking(issue: dict[str, Any]) -> tuple[int, int, str, int]:
|
| 761 |
+
number = int(issue["number"])
|
| 762 |
+
return (
|
| 763 |
+
len(grouped_comments.get(number, [])),
|
| 764 |
+
int(issue.get("comments", 0)),
|
| 765 |
+
str(issue.get("updated_at", "")),
|
| 766 |
+
number,
|
| 767 |
+
)
|
| 768 |
+
|
| 769 |
+
usable_open = [issue for issue in open_candidates if issue_is_usable(issue)]
|
| 770 |
+
usable_closed = [issue for issue in closed_candidates if issue_is_usable(issue)]
|
| 771 |
+
usable_open.sort(key=ranking, reverse=True)
|
| 772 |
+
usable_closed.sort(key=ranking, reverse=True)
|
| 773 |
+
|
| 774 |
+
# The public tracker currently has roughly 366 open issues. Preserve as much
|
| 775 |
+
# of that live queue as possible, then fill the expansion with resolved,
|
| 776 |
+
# comment-rich issues. This gives Peppermint both actionable and historical
|
| 777 |
+
# ticket states without touching the original 118 records.
|
| 778 |
+
selected_open = usable_open[: min(366, target)]
|
| 779 |
+
selected = selected_open + usable_closed[: target - len(selected_open)]
|
| 780 |
+
if len(selected) < target:
|
| 781 |
+
raise RuntimeError(
|
| 782 |
+
f"Only {len(selected)} usable issues were available; need {target}. "
|
| 783 |
+
"Increase --closed-pages or provide GITHUB_TOKEN."
|
| 784 |
+
)
|
| 785 |
+
return selected
|
| 786 |
+
|
| 787 |
+
|
| 788 |
+
def allocate_comments(
|
| 789 |
+
selected: list[dict[str, Any]],
|
| 790 |
+
grouped_comments: dict[int, list[dict[str, Any]]],
|
| 791 |
+
target: int,
|
| 792 |
+
) -> dict[int, list[dict[str, Any]]]:
|
| 793 |
+
allocation: dict[int, list[dict[str, Any]]] = defaultdict(list)
|
| 794 |
+
issue_numbers = [int(issue["number"]) for issue in selected]
|
| 795 |
+
max_depth = max((len(grouped_comments.get(number, [])) for number in issue_numbers), default=0)
|
| 796 |
+
|
| 797 |
+
# Round-robin by thread depth so many tickets retain discussion context
|
| 798 |
+
# instead of allowing a few unusually long threads to consume the corpus.
|
| 799 |
+
for depth in range(max_depth):
|
| 800 |
+
for number in issue_numbers:
|
| 801 |
+
comments = grouped_comments.get(number, [])
|
| 802 |
+
if depth < len(comments):
|
| 803 |
+
allocation[number].append(comments[depth])
|
| 804 |
+
if sum(len(items) for items in allocation.values()) == target:
|
| 805 |
+
return allocation
|
| 806 |
+
|
| 807 |
+
available = sum(len(items) for items in allocation.values())
|
| 808 |
+
raise RuntimeError(
|
| 809 |
+
f"Only {available} usable comments matched selected issues; need {target}. "
|
| 810 |
+
"Increase --comment-pages and, if necessary, --closed-pages."
|
| 811 |
+
)
|
| 812 |
+
|
| 813 |
+
|
| 814 |
+
def transform_comment(
|
| 815 |
+
comment: dict[str, Any],
|
| 816 |
+
actor_mapping: dict[str, dict[str, Any]],
|
| 817 |
+
) -> dict[str, Any]:
|
| 818 |
+
user = comment.get("user") or {}
|
| 819 |
+
login = str(user.get("login") or "unknown-contributor")
|
| 820 |
+
actor = mapped_actor(user, actor_mapping)
|
| 821 |
+
created = str(comment.get("created_at") or "")[:10]
|
| 822 |
+
body = clean_helpdesk_text(
|
| 823 |
+
comment.get("body") or "",
|
| 824 |
+
2_500,
|
| 825 |
+
sanitize_visible_urls=True,
|
| 826 |
+
expand_escaped_newlines=True,
|
| 827 |
+
)
|
| 828 |
+
body = replace_actor_mentions(body, actor_mapping)
|
| 829 |
+
source_url = str(comment.get("html_url") or "")
|
| 830 |
+
text = f"{body}\n\nOriginal response date: {created}"
|
| 831 |
+
return {
|
| 832 |
+
"userEmail": actor["email"],
|
| 833 |
+
"text": text,
|
| 834 |
+
"public": True,
|
| 835 |
+
"source": {
|
| 836 |
+
"project": DEFAULT_REPOSITORY,
|
| 837 |
+
"commentId": comment.get("id"),
|
| 838 |
+
"author": login,
|
| 839 |
+
"anonymizedAuthorEmail": actor["email"],
|
| 840 |
+
"url": source_url,
|
| 841 |
+
"createdAt": comment.get("created_at"),
|
| 842 |
+
},
|
| 843 |
+
}
|
| 844 |
+
|
| 845 |
+
|
| 846 |
+
def transform_issue(
|
| 847 |
+
issue: dict[str, Any],
|
| 848 |
+
allocated_comments: list[dict[str, Any]],
|
| 849 |
+
repository: str,
|
| 850 |
+
actor_mapping: dict[str, dict[str, Any]],
|
| 851 |
+
) -> dict[str, Any]:
|
| 852 |
+
labels = label_names(issue)
|
| 853 |
+
status, is_complete = map_status(issue, labels)
|
| 854 |
+
reporter_user = issue.get("user") or {}
|
| 855 |
+
reporter = str(reporter_user.get("login") or "unknown-reporter")
|
| 856 |
+
creator = mapped_actor(reporter_user, actor_mapping)
|
| 857 |
+
assignees = issue_assignees(issue)
|
| 858 |
+
anonymized_assignees = [
|
| 859 |
+
mapped_actor(assignee, actor_mapping) for assignee in assignees
|
| 860 |
+
]
|
| 861 |
+
source_url = str(issue.get("html_url") or "")
|
| 862 |
+
detail = replace_actor_mentions(native_issue_detail(issue), actor_mapping)
|
| 863 |
+
title = replace_actor_mentions(native_issue_title(issue.get("title")), actor_mapping)
|
| 864 |
+
|
| 865 |
+
ticket: dict[str, Any] = {
|
| 866 |
+
"title": title,
|
| 867 |
+
"detail": detail,
|
| 868 |
+
"priority": map_priority(labels),
|
| 869 |
+
"type": map_type(labels),
|
| 870 |
+
"createdByEmail": creator["email"],
|
| 871 |
+
"status": status,
|
| 872 |
+
"isComplete": is_complete,
|
| 873 |
+
"comments": [
|
| 874 |
+
transform_comment(comment, actor_mapping)
|
| 875 |
+
for comment in allocated_comments
|
| 876 |
+
],
|
| 877 |
+
"source": {
|
| 878 |
+
"project": repository,
|
| 879 |
+
"issueNumber": issue.get("number"),
|
| 880 |
+
"url": source_url,
|
| 881 |
+
"author": reporter,
|
| 882 |
+
"anonymizedAuthorEmail": creator["email"],
|
| 883 |
+
"assignees": [
|
| 884 |
+
{
|
| 885 |
+
"sourceLogin": source_login(source_assignee),
|
| 886 |
+
"anonymizedEmail": anonymized_assignee["email"],
|
| 887 |
+
}
|
| 888 |
+
for source_assignee, anonymized_assignee in zip(
|
| 889 |
+
assignees, anonymized_assignees
|
| 890 |
+
)
|
| 891 |
+
],
|
| 892 |
+
"labels": sorted(labels),
|
| 893 |
+
"state": issue.get("state"),
|
| 894 |
+
"stateReason": issue.get("state_reason"),
|
| 895 |
+
"createdAt": issue.get("created_at"),
|
| 896 |
+
"updatedAt": issue.get("updated_at"),
|
| 897 |
+
"closedAt": issue.get("closed_at"),
|
| 898 |
+
},
|
| 899 |
+
}
|
| 900 |
+
if anonymized_assignees:
|
| 901 |
+
# Peppermint has one assignedTo relation. Preserve every upstream
|
| 902 |
+
# assignee in source metadata and map the primary assignee into the UI.
|
| 903 |
+
ticket["assignedTo"] = anonymized_assignees[0]["email"]
|
| 904 |
+
client_email = client_email_for_issue(issue.get("number"))
|
| 905 |
+
if client_email:
|
| 906 |
+
ticket["clientEmail"] = client_email
|
| 907 |
+
return ticket
|
| 908 |
+
|
| 909 |
+
|
| 910 |
+
def expansion_users(
|
| 911 |
+
actor_mapping: dict[str, dict[str, Any]],
|
| 912 |
+
) -> list[dict[str, Any]]:
|
| 913 |
+
personas: dict[str, dict[str, Any]] = {}
|
| 914 |
+
for actor in actor_mapping.values():
|
| 915 |
+
persona = personas.setdefault(
|
| 916 |
+
actor["personaId"],
|
| 917 |
+
{
|
| 918 |
+
"personaId": actor["personaId"],
|
| 919 |
+
"name": actor["name"],
|
| 920 |
+
"email": actor["email"],
|
| 921 |
+
"roles": actor["roles"],
|
| 922 |
+
"sourceLogins": [],
|
| 923 |
+
},
|
| 924 |
+
)
|
| 925 |
+
persona["sourceLogins"].append(actor["sourceLogin"])
|
| 926 |
+
|
| 927 |
+
return [
|
| 928 |
+
{
|
| 929 |
+
"name": persona["name"],
|
| 930 |
+
"email": persona["email"],
|
| 931 |
+
"password": "Password1!",
|
| 932 |
+
"admin": False,
|
| 933 |
+
"source": {
|
| 934 |
+
"project": DEFAULT_REPOSITORY,
|
| 935 |
+
"personaId": persona["personaId"],
|
| 936 |
+
"logins": sorted(persona["sourceLogins"], key=str.casefold),
|
| 937 |
+
"roles": persona["roles"],
|
| 938 |
+
},
|
| 939 |
+
}
|
| 940 |
+
for persona in sorted(personas.values(), key=lambda item: item["personaId"])
|
| 941 |
+
]
|
| 942 |
+
|
| 943 |
+
|
| 944 |
+
def user_mapping_payload(
|
| 945 |
+
actor_mapping: dict[str, dict[str, Any]],
|
| 946 |
+
generated_at: str,
|
| 947 |
+
) -> dict[str, Any]:
|
| 948 |
+
users = [
|
| 949 |
+
{
|
| 950 |
+
"sourceLogin": actor["sourceLogin"],
|
| 951 |
+
"roles": actor["roles"],
|
| 952 |
+
"personaId": actor["personaId"],
|
| 953 |
+
"anonymizedName": actor["name"],
|
| 954 |
+
"anonymizedEmail": actor["email"],
|
| 955 |
+
}
|
| 956 |
+
for key in sorted(actor_mapping)
|
| 957 |
+
for actor in (actor_mapping[key],)
|
| 958 |
+
]
|
| 959 |
+
seed_users = expansion_users(actor_mapping)
|
| 960 |
+
return {
|
| 961 |
+
"version": "1.1",
|
| 962 |
+
"generatedAt": generated_at,
|
| 963 |
+
"source": {
|
| 964 |
+
"project": DEFAULT_REPOSITORY,
|
| 965 |
+
"repositoryUrl": f"https://github.com/{DEFAULT_REPOSITORY}",
|
| 966 |
+
},
|
| 967 |
+
"totalUsers": len(seed_users),
|
| 968 |
+
"totalSourceUsers": len(users),
|
| 969 |
+
"totalAnonymizedUsers": len(seed_users),
|
| 970 |
+
"roleCounts": {
|
| 971 |
+
role: sum(role in user["roles"] for user in users)
|
| 972 |
+
for role in ("creator", "assignee", "commenter")
|
| 973 |
+
},
|
| 974 |
+
"consolidation": {
|
| 975 |
+
"strategy": "exact-role-combination",
|
| 976 |
+
"targetAnonymizedUsers": TARGET_EXPANSION_USERS,
|
| 977 |
+
},
|
| 978 |
+
"users": users,
|
| 979 |
+
}
|
| 980 |
+
|
| 981 |
+
|
| 982 |
+
def replace_anonymized_names(value: str, replacements: dict[str, str]) -> str:
|
| 983 |
+
if not replacements:
|
| 984 |
+
return value
|
| 985 |
+
folded = {old.casefold(): new for old, new in replacements.items()}
|
| 986 |
+
pattern = re.compile(
|
| 987 |
+
r"(" + "|".join(
|
| 988 |
+
re.escape(name) for name in sorted(replacements, key=len, reverse=True)
|
| 989 |
+
) + r")",
|
| 990 |
+
flags=re.IGNORECASE,
|
| 991 |
+
)
|
| 992 |
+
return pattern.sub(lambda match: folded[match.group(1).casefold()], value)
|
| 993 |
+
|
| 994 |
+
|
| 995 |
+
def consolidate_existing_users(
|
| 996 |
+
ticket_payload: dict[str, Any],
|
| 997 |
+
mapping_payload: dict[str, Any],
|
| 998 |
+
) -> dict[str, Any]:
|
| 999 |
+
old_users = mapping_payload["users"]
|
| 1000 |
+
actor_roles = {
|
| 1001 |
+
user["sourceLogin"].casefold(): {
|
| 1002 |
+
"sourceLogin": user["sourceLogin"],
|
| 1003 |
+
"roles": set(user["roles"]),
|
| 1004 |
+
}
|
| 1005 |
+
for user in old_users
|
| 1006 |
+
}
|
| 1007 |
+
old_by_login = {
|
| 1008 |
+
user["sourceLogin"].casefold(): user for user in old_users
|
| 1009 |
+
}
|
| 1010 |
+
actor_mapping = build_actor_mapping(actor_roles)
|
| 1011 |
+
name_replacements = {
|
| 1012 |
+
old_by_login[key]["anonymizedName"]: actor["name"]
|
| 1013 |
+
for key, actor in actor_mapping.items()
|
| 1014 |
+
if old_by_login[key]["anonymizedName"] != actor["name"]
|
| 1015 |
+
}
|
| 1016 |
+
|
| 1017 |
+
for ticket in ticket_payload["tickets"]:
|
| 1018 |
+
source = ticket["source"]
|
| 1019 |
+
creator = actor_mapping[source["author"].casefold()]
|
| 1020 |
+
ticket["createdByEmail"] = creator["email"]
|
| 1021 |
+
source["anonymizedAuthorEmail"] = creator["email"]
|
| 1022 |
+
ticket["title"] = replace_anonymized_names(
|
| 1023 |
+
ticket["title"], name_replacements
|
| 1024 |
+
)
|
| 1025 |
+
ticket["detail"] = replace_anonymized_names(
|
| 1026 |
+
ticket["detail"], name_replacements
|
| 1027 |
+
)
|
| 1028 |
+
|
| 1029 |
+
for assignee in source["assignees"]:
|
| 1030 |
+
actor = actor_mapping[assignee["sourceLogin"].casefold()]
|
| 1031 |
+
assignee["anonymizedEmail"] = actor["email"]
|
| 1032 |
+
if source["assignees"]:
|
| 1033 |
+
primary_login = source["assignees"][0]["sourceLogin"].casefold()
|
| 1034 |
+
ticket["assignedTo"] = actor_mapping[primary_login]["email"]
|
| 1035 |
+
else:
|
| 1036 |
+
ticket.pop("assignedTo", None)
|
| 1037 |
+
|
| 1038 |
+
for comment in ticket.get("comments", []):
|
| 1039 |
+
comment_source = comment["source"]
|
| 1040 |
+
commenter = actor_mapping[comment_source["author"].casefold()]
|
| 1041 |
+
comment["userEmail"] = commenter["email"]
|
| 1042 |
+
comment_source["anonymizedAuthorEmail"] = commenter["email"]
|
| 1043 |
+
comment["text"] = replace_anonymized_names(
|
| 1044 |
+
comment["text"], name_replacements
|
| 1045 |
+
)
|
| 1046 |
+
|
| 1047 |
+
seed_users = expansion_users(actor_mapping)
|
| 1048 |
+
ticket_payload["users"] = seed_users
|
| 1049 |
+
ticket_payload["selection"]["sourceContributors"] = len(actor_mapping)
|
| 1050 |
+
ticket_payload["selection"]["anonymizedUsers"] = len(seed_users)
|
| 1051 |
+
return user_mapping_payload(actor_mapping, mapping_payload["generatedAt"])
|
| 1052 |
+
|
| 1053 |
+
|
| 1054 |
+
def checkout_docs(path: Path | None) -> tuple[Path, str, bool]:
|
| 1055 |
+
if path:
|
| 1056 |
+
root = path.resolve()
|
| 1057 |
+
temporary = False
|
| 1058 |
+
else:
|
| 1059 |
+
root = Path(tempfile.mkdtemp(prefix="glpi-doc-")) / "repo"
|
| 1060 |
+
subprocess.run(
|
| 1061 |
+
["git", "clone", "--depth", "1", DOC_REPOSITORY, str(root)],
|
| 1062 |
+
check=True,
|
| 1063 |
+
)
|
| 1064 |
+
temporary = True
|
| 1065 |
+
|
| 1066 |
+
source = root / "source"
|
| 1067 |
+
if not source.is_dir():
|
| 1068 |
+
raise RuntimeError(f"GLPI documentation source directory not found: {source}")
|
| 1069 |
+
revision = subprocess.check_output(
|
| 1070 |
+
["git", "-C", str(root), "rev-parse", "HEAD"], text=True
|
| 1071 |
+
).strip()
|
| 1072 |
+
return root, revision, temporary
|
| 1073 |
+
|
| 1074 |
+
|
| 1075 |
+
def clean_rst_inline(text: str) -> str:
|
| 1076 |
+
text = re.sub(r":\w+(?::\w+)?:`([^`<>]+)(?:\s*<[^>]+>)?`", r"\1", text)
|
| 1077 |
+
text = re.sub(r"`([^`<>]+)(?:\s*<[^>]+>)?`_?", r"\1", text)
|
| 1078 |
+
text = text.replace("**", "").replace("*", "").replace("``", "")
|
| 1079 |
+
text = re.sub(r"\s+", " ", text)
|
| 1080 |
+
return text.strip()
|
| 1081 |
+
|
| 1082 |
+
|
| 1083 |
+
def parse_rst(path: Path) -> tuple[str, list[dict[str, Any]]]:
|
| 1084 |
+
raw_lines = path.read_text(encoding="utf-8", errors="replace").splitlines()
|
| 1085 |
+
lines: list[str] = []
|
| 1086 |
+
skip_indented = False
|
| 1087 |
+
for raw in raw_lines:
|
| 1088 |
+
stripped = raw.strip()
|
| 1089 |
+
if stripped.startswith(".. _") or stripped.startswith(".. |"):
|
| 1090 |
+
continue
|
| 1091 |
+
if stripped.startswith(".. image::") or stripped.startswith(".. figure::"):
|
| 1092 |
+
skip_indented = True
|
| 1093 |
+
continue
|
| 1094 |
+
if skip_indented and (not raw.startswith((" ", "\t")) or not stripped):
|
| 1095 |
+
skip_indented = False
|
| 1096 |
+
if skip_indented or stripped.startswith(":"):
|
| 1097 |
+
continue
|
| 1098 |
+
lines.append(raw.rstrip())
|
| 1099 |
+
|
| 1100 |
+
sections: list[dict[str, Any]] = []
|
| 1101 |
+
title = ""
|
| 1102 |
+
current_title = "Overview"
|
| 1103 |
+
current: list[str] = []
|
| 1104 |
+
paragraph: list[str] = []
|
| 1105 |
+
|
| 1106 |
+
def flush_paragraph() -> None:
|
| 1107 |
+
if not paragraph:
|
| 1108 |
+
return
|
| 1109 |
+
value = clean_rst_inline(" ".join(paragraph))
|
| 1110 |
+
paragraph.clear()
|
| 1111 |
+
if value and not value.startswith(".. ") and value != "::":
|
| 1112 |
+
current.append(value)
|
| 1113 |
+
|
| 1114 |
+
def flush_section() -> None:
|
| 1115 |
+
flush_paragraph()
|
| 1116 |
+
if current:
|
| 1117 |
+
sections.append({"title": current_title, "items": current.copy()})
|
| 1118 |
+
current.clear()
|
| 1119 |
+
|
| 1120 |
+
i = 0
|
| 1121 |
+
while i < len(lines):
|
| 1122 |
+
line = lines[i]
|
| 1123 |
+
stripped = line.strip()
|
| 1124 |
+
next_line = lines[i + 1].strip() if i + 1 < len(lines) else ""
|
| 1125 |
+
is_heading = bool(
|
| 1126 |
+
stripped
|
| 1127 |
+
and next_line
|
| 1128 |
+
and len(next_line) >= 3
|
| 1129 |
+
and re.fullmatch(r"([=\-~^\"'])\1{2,}", next_line)
|
| 1130 |
+
)
|
| 1131 |
+
if is_heading:
|
| 1132 |
+
flush_section()
|
| 1133 |
+
heading = clean_rst_inline(stripped)
|
| 1134 |
+
if not title:
|
| 1135 |
+
title = heading
|
| 1136 |
+
else:
|
| 1137 |
+
current_title = heading
|
| 1138 |
+
i += 2
|
| 1139 |
+
continue
|
| 1140 |
+
|
| 1141 |
+
if not stripped:
|
| 1142 |
+
flush_paragraph()
|
| 1143 |
+
elif stripped.startswith(("* ", "- ", "+ ")):
|
| 1144 |
+
flush_paragraph()
|
| 1145 |
+
value = clean_rst_inline(stripped[2:])
|
| 1146 |
+
if value:
|
| 1147 |
+
current.append(value)
|
| 1148 |
+
elif re.match(r"^\d+[.)]\s+", stripped):
|
| 1149 |
+
flush_paragraph()
|
| 1150 |
+
current.append(clean_rst_inline(re.sub(r"^\d+[.)]\s+", "", stripped)))
|
| 1151 |
+
elif stripped.startswith(".. ") or stripped.startswith(".. toctree::"):
|
| 1152 |
+
pass
|
| 1153 |
+
else:
|
| 1154 |
+
paragraph.append(stripped)
|
| 1155 |
+
i += 1
|
| 1156 |
+
flush_section()
|
| 1157 |
+
return title or path.stem.replace("_", " ").title(), sections
|
| 1158 |
+
|
| 1159 |
+
|
| 1160 |
+
def doc_rank(relative: Path) -> tuple[int, str]:
|
| 1161 |
+
value = relative.as_posix().lower()
|
| 1162 |
+
priorities = (
|
| 1163 |
+
"modules/assistance/",
|
| 1164 |
+
"modules/administration/",
|
| 1165 |
+
"modules/configuration/",
|
| 1166 |
+
"modules/tools/",
|
| 1167 |
+
"modules/assets/",
|
| 1168 |
+
"modules/management/",
|
| 1169 |
+
"modules/user-settings/",
|
| 1170 |
+
"advanced/",
|
| 1171 |
+
"tabs/",
|
| 1172 |
+
)
|
| 1173 |
+
for index, prefix in enumerate(priorities):
|
| 1174 |
+
if value.startswith(prefix):
|
| 1175 |
+
return index, value
|
| 1176 |
+
return len(priorities), value
|
| 1177 |
+
|
| 1178 |
+
|
| 1179 |
+
def build_documents(doc_root: Path, revision: str, target: int) -> list[dict[str, Any]]:
|
| 1180 |
+
source_root = doc_root / "source"
|
| 1181 |
+
candidates: list[tuple[Path, str, list[dict[str, Any]]]] = []
|
| 1182 |
+
for path in source_root.rglob("*.rst"):
|
| 1183 |
+
relative = path.relative_to(source_root)
|
| 1184 |
+
if path.name.lower() == "index.rst" or "/index.rst" in relative.as_posix().lower():
|
| 1185 |
+
continue
|
| 1186 |
+
title, sections = parse_rst(path)
|
| 1187 |
+
body_size = sum(len(item) for section in sections for item in section["items"])
|
| 1188 |
+
if body_size < 250:
|
| 1189 |
+
continue
|
| 1190 |
+
candidates.append((relative, title, sections))
|
| 1191 |
+
|
| 1192 |
+
candidates.sort(key=lambda item: doc_rank(item[0]))
|
| 1193 |
+
if len(candidates) < target:
|
| 1194 |
+
raise RuntimeError(f"Only {len(candidates)} usable GLPI documents found; need {target}")
|
| 1195 |
+
|
| 1196 |
+
documents: list[dict[str, Any]] = []
|
| 1197 |
+
for index, (relative, title, sections) in enumerate(candidates[:target], start=1):
|
| 1198 |
+
source_url = (
|
| 1199 |
+
"https://github.com/glpi-project/doc/blob/"
|
| 1200 |
+
f"{revision}/source/{relative.as_posix()}"
|
| 1201 |
+
)
|
| 1202 |
+
trimmed_sections: list[dict[str, Any]] = []
|
| 1203 |
+
remaining = 8_000
|
| 1204 |
+
for section in sections[:10]:
|
| 1205 |
+
items: list[str] = []
|
| 1206 |
+
for item in section["items"]:
|
| 1207 |
+
if remaining <= 0:
|
| 1208 |
+
break
|
| 1209 |
+
value = item[: min(1_200, remaining)].strip()
|
| 1210 |
+
if value:
|
| 1211 |
+
items.append(value)
|
| 1212 |
+
remaining -= len(value)
|
| 1213 |
+
if items:
|
| 1214 |
+
trimmed_sections.append({"title": section["title"], "items": items})
|
| 1215 |
+
if remaining <= 0:
|
| 1216 |
+
break
|
| 1217 |
+
|
| 1218 |
+
summary = next(
|
| 1219 |
+
(item for section in trimmed_sections for item in section["items"] if len(item) >= 40),
|
| 1220 |
+
f"GLPI user documentation for {title}.",
|
| 1221 |
+
)
|
| 1222 |
+
parts = relative.parts
|
| 1223 |
+
category = parts[1] if len(parts) > 2 and parts[0] == "modules" else parts[0]
|
| 1224 |
+
tags = ["glpi", "documentation", category, relative.stem.replace("_", "-")]
|
| 1225 |
+
documents.append(
|
| 1226 |
+
{
|
| 1227 |
+
"id": f"GLPI-DOC-{index:04d}",
|
| 1228 |
+
"title": title,
|
| 1229 |
+
"category": category,
|
| 1230 |
+
"tags": list(dict.fromkeys(tags)),
|
| 1231 |
+
"relatedIssuePatterns": [category, relative.stem.replace("_", "-")],
|
| 1232 |
+
"summary": summary[:700],
|
| 1233 |
+
"sections": trimmed_sections,
|
| 1234 |
+
"attribution": (
|
| 1235 |
+
"Adapted from the GLPI user documentation by GLPI contributors. "
|
| 1236 |
+
f"Licensed {DOC_LICENSE}. Source: {source_url}"
|
| 1237 |
+
),
|
| 1238 |
+
"source": {
|
| 1239 |
+
"project": "glpi-project/doc",
|
| 1240 |
+
"path": f"source/{relative.as_posix()}",
|
| 1241 |
+
"revision": revision,
|
| 1242 |
+
"url": source_url,
|
| 1243 |
+
"license": DOC_LICENSE,
|
| 1244 |
+
"licenseUrl": DOC_LICENSE_URL,
|
| 1245 |
+
},
|
| 1246 |
+
}
|
| 1247 |
+
)
|
| 1248 |
+
return documents
|
| 1249 |
+
|
| 1250 |
+
|
| 1251 |
+
def validate_assets(
|
| 1252 |
+
ticket_file: Path,
|
| 1253 |
+
document_file: Path,
|
| 1254 |
+
user_mapping_file: Path,
|
| 1255 |
+
expected_tickets: int,
|
| 1256 |
+
expected_comments: int,
|
| 1257 |
+
expected_documents: int,
|
| 1258 |
+
) -> None:
|
| 1259 |
+
tickets_payload = json.loads(ticket_file.read_text(encoding="utf-8"))
|
| 1260 |
+
documents_payload = json.loads(document_file.read_text(encoding="utf-8"))
|
| 1261 |
+
user_mapping_payload_data = json.loads(
|
| 1262 |
+
user_mapping_file.read_text(encoding="utf-8")
|
| 1263 |
+
)
|
| 1264 |
+
tickets = tickets_payload["tickets"]
|
| 1265 |
+
seed_users = tickets_payload["users"]
|
| 1266 |
+
clients = tickets_payload["clients"]
|
| 1267 |
+
documents = documents_payload["documents"]
|
| 1268 |
+
mapped_users = user_mapping_payload_data["users"]
|
| 1269 |
+
comments = sum(len(ticket.get("comments", [])) for ticket in tickets)
|
| 1270 |
+
|
| 1271 |
+
assert len(tickets) == expected_tickets, (len(tickets), expected_tickets)
|
| 1272 |
+
assert comments == expected_comments, (comments, expected_comments)
|
| 1273 |
+
assert len(documents) == expected_documents, (len(documents), expected_documents)
|
| 1274 |
+
assert len({ticket["source"]["issueNumber"] for ticket in tickets}) == len(tickets)
|
| 1275 |
+
comment_ids = [
|
| 1276 |
+
comment["source"]["commentId"]
|
| 1277 |
+
for ticket in tickets
|
| 1278 |
+
for comment in ticket.get("comments", [])
|
| 1279 |
+
]
|
| 1280 |
+
assert len(set(comment_ids)) == len(comment_ids)
|
| 1281 |
+
assert len({document["id"] for document in documents}) == len(documents)
|
| 1282 |
+
assert clients == [dict(client) for client in EXPANSION_CLIENTS]
|
| 1283 |
+
assert len({client["name"] for client in clients}) == len(clients)
|
| 1284 |
+
assert len({client["email"] for client in clients}) == len(clients)
|
| 1285 |
+
assert len({client["number"] for client in clients}) == len(clients)
|
| 1286 |
+
client_emails = {client["email"] for client in clients}
|
| 1287 |
+
assigned_client_emails = {
|
| 1288 |
+
ticket["clientEmail"] for ticket in tickets if ticket.get("clientEmail")
|
| 1289 |
+
}
|
| 1290 |
+
assert assigned_client_emails == client_emails
|
| 1291 |
+
assert any(ticket.get("clientEmail") is None for ticket in tickets)
|
| 1292 |
+
assert all(
|
| 1293 |
+
ticket.get("clientEmail") == client_email_for_issue(
|
| 1294 |
+
ticket["source"]["issueNumber"]
|
| 1295 |
+
)
|
| 1296 |
+
for ticket in tickets
|
| 1297 |
+
)
|
| 1298 |
+
assert user_mapping_payload_data["totalUsers"] == len(seed_users)
|
| 1299 |
+
assert user_mapping_payload_data["totalSourceUsers"] == len(mapped_users)
|
| 1300 |
+
assert user_mapping_payload_data["totalAnonymizedUsers"] == len(seed_users)
|
| 1301 |
+
assert len(seed_users) == min(TARGET_EXPANSION_USERS, len(mapped_users))
|
| 1302 |
+
assert tickets_payload["selection"]["sourceContributors"] == len(mapped_users)
|
| 1303 |
+
assert tickets_payload["selection"]["anonymizedUsers"] == len(seed_users)
|
| 1304 |
+
assert user_mapping_payload_data["consolidation"] == {
|
| 1305 |
+
"strategy": "exact-role-combination",
|
| 1306 |
+
"targetAnonymizedUsers": TARGET_EXPANSION_USERS,
|
| 1307 |
+
}
|
| 1308 |
+
assert len({user["sourceLogin"].casefold() for user in mapped_users}) == len(mapped_users)
|
| 1309 |
+
mapped_emails = {user["anonymizedEmail"] for user in mapped_users}
|
| 1310 |
+
assert len(mapped_emails) == len(seed_users)
|
| 1311 |
+
assert len({user["anonymizedName"] for user in mapped_users}) == len(seed_users)
|
| 1312 |
+
assert len({user["email"] for user in seed_users}) == len(seed_users)
|
| 1313 |
+
assert len({user["name"] for user in seed_users}) == len(seed_users)
|
| 1314 |
+
assert {user["email"] for user in seed_users} == mapped_emails
|
| 1315 |
+
|
| 1316 |
+
mapped_by_email: dict[str, list[dict[str, Any]]] = defaultdict(list)
|
| 1317 |
+
for user in mapped_users:
|
| 1318 |
+
mapped_by_email[user["anonymizedEmail"]].append(user)
|
| 1319 |
+
seed_by_email = {user["email"]: user for user in seed_users}
|
| 1320 |
+
for email, source_users in mapped_by_email.items():
|
| 1321 |
+
seed_user = seed_by_email[email]
|
| 1322 |
+
assert {user["anonymizedName"] for user in source_users} == {
|
| 1323 |
+
seed_user["name"]
|
| 1324 |
+
}
|
| 1325 |
+
assert {user["personaId"] for user in source_users} == {
|
| 1326 |
+
seed_user["source"]["personaId"]
|
| 1327 |
+
}
|
| 1328 |
+
role_signatures = {tuple(user["roles"]) for user in source_users}
|
| 1329 |
+
assert role_signatures == {tuple(seed_user["source"]["roles"])}
|
| 1330 |
+
assert {
|
| 1331 |
+
user["sourceLogin"].casefold() for user in source_users
|
| 1332 |
+
} == {
|
| 1333 |
+
login.casefold() for login in seed_user["source"]["logins"]
|
| 1334 |
+
}
|
| 1335 |
+
|
| 1336 |
+
assert all(ticket["createdByEmail"] in mapped_emails for ticket in tickets)
|
| 1337 |
+
assert all(
|
| 1338 |
+
"assignedTo" not in ticket or ticket["assignedTo"] in mapped_emails
|
| 1339 |
+
for ticket in tickets
|
| 1340 |
+
)
|
| 1341 |
+
assert all(
|
| 1342 |
+
comment["userEmail"] in mapped_emails
|
| 1343 |
+
for ticket in tickets
|
| 1344 |
+
for comment in ticket.get("comments", [])
|
| 1345 |
+
)
|
| 1346 |
+
|
| 1347 |
+
expected_roles: dict[str, set[str]] = defaultdict(set)
|
| 1348 |
+
for ticket in tickets:
|
| 1349 |
+
expected_roles[ticket["source"]["author"].casefold()].add("creator")
|
| 1350 |
+
for assignee in ticket["source"]["assignees"]:
|
| 1351 |
+
expected_roles[assignee["sourceLogin"].casefold()].add("assignee")
|
| 1352 |
+
for comment in ticket.get("comments", []):
|
| 1353 |
+
expected_roles[comment["source"]["author"].casefold()].add("commenter")
|
| 1354 |
+
actual_roles = {
|
| 1355 |
+
user["sourceLogin"].casefold(): set(user["roles"])
|
| 1356 |
+
for user in mapped_users
|
| 1357 |
+
}
|
| 1358 |
+
assert actual_roles == expected_roles
|
| 1359 |
+
assert user_mapping_payload_data["roleCounts"] == {
|
| 1360 |
+
role: sum(role in roles for roles in actual_roles.values())
|
| 1361 |
+
for role in ("creator", "assignee", "commenter")
|
| 1362 |
+
}
|
| 1363 |
+
mapped_by_login = {
|
| 1364 |
+
user["sourceLogin"].casefold(): user for user in mapped_users
|
| 1365 |
+
}
|
| 1366 |
+
for ticket in tickets:
|
| 1367 |
+
source = ticket["source"]
|
| 1368 |
+
creator = mapped_by_login[source["author"].casefold()]
|
| 1369 |
+
assert ticket["createdByEmail"] == creator["anonymizedEmail"]
|
| 1370 |
+
assert source["anonymizedAuthorEmail"] == creator["anonymizedEmail"]
|
| 1371 |
+
for assignee in source["assignees"]:
|
| 1372 |
+
mapped_assignee = mapped_by_login[assignee["sourceLogin"].casefold()]
|
| 1373 |
+
assert assignee["anonymizedEmail"] == mapped_assignee["anonymizedEmail"]
|
| 1374 |
+
if source["assignees"]:
|
| 1375 |
+
primary = mapped_by_login[
|
| 1376 |
+
source["assignees"][0]["sourceLogin"].casefold()
|
| 1377 |
+
]
|
| 1378 |
+
assert ticket["assignedTo"] == primary["anonymizedEmail"]
|
| 1379 |
+
else:
|
| 1380 |
+
assert "assignedTo" not in ticket
|
| 1381 |
+
for comment in ticket.get("comments", []):
|
| 1382 |
+
comment_source = comment["source"]
|
| 1383 |
+
commenter = mapped_by_login[comment_source["author"].casefold()]
|
| 1384 |
+
assert comment["userEmail"] == commenter["anonymizedEmail"]
|
| 1385 |
+
assert (
|
| 1386 |
+
comment_source["anonymizedAuthorEmail"]
|
| 1387 |
+
== commenter["anonymizedEmail"]
|
| 1388 |
+
)
|
| 1389 |
+
assert all(ticket["status"] in {"needs_support", "in_progress", "done"} for ticket in tickets)
|
| 1390 |
+
assert all(ticket["priority"] in {"low", "medium", "high"} for ticket in tickets)
|
| 1391 |
+
assert all(ticket.get("source", {}).get("url") for ticket in tickets)
|
| 1392 |
+
assert all(not ticket["title"].lower().startswith("[glpi") for ticket in tickets)
|
| 1393 |
+
assert all("Imported from GLPI issue" not in ticket["detail"] for ticket in tickets)
|
| 1394 |
+
assert all("Original reporter:" not in ticket["detail"] for ticket in tickets)
|
| 1395 |
+
assert all("GLPI labels:" not in ticket["detail"] for ticket in tickets)
|
| 1396 |
+
assert all("### Code of Conduct" not in ticket["detail"] for ticket in tickets)
|
| 1397 |
+
assert all(
|
| 1398 |
+
not re.search(r"https?://", ticket["detail"], flags=re.IGNORECASE)
|
| 1399 |
+
for ticket in tickets
|
| 1400 |
+
)
|
| 1401 |
+
assert all(
|
| 1402 |
+
"\\n" not in ticket["detail"]
|
| 1403 |
+
for ticket in tickets
|
| 1404 |
+
)
|
| 1405 |
+
assert all(
|
| 1406 |
+
not re.search(r"https?://", comment["text"], flags=re.IGNORECASE)
|
| 1407 |
+
for ticket in tickets
|
| 1408 |
+
for comment in ticket.get("comments", [])
|
| 1409 |
+
)
|
| 1410 |
+
assert all(
|
| 1411 |
+
"\\n" not in comment["text"]
|
| 1412 |
+
for ticket in tickets
|
| 1413 |
+
for comment in ticket.get("comments", [])
|
| 1414 |
+
)
|
| 1415 |
+
assert all(document.get("source", {}).get("license") == DOC_LICENSE for document in documents)
|
| 1416 |
+
|
| 1417 |
+
|
| 1418 |
+
def main() -> int:
|
| 1419 |
+
args = parse_args()
|
| 1420 |
+
if args.consolidate_existing_users:
|
| 1421 |
+
ticket_payload = json.loads(args.ticket_output.read_text(encoding="utf-8"))
|
| 1422 |
+
mapping_payload = json.loads(
|
| 1423 |
+
args.user_mapping_output.read_text(encoding="utf-8")
|
| 1424 |
+
)
|
| 1425 |
+
updated_mapping = consolidate_existing_users(
|
| 1426 |
+
ticket_payload, mapping_payload
|
| 1427 |
+
)
|
| 1428 |
+
json_dump(args.ticket_output, ticket_payload)
|
| 1429 |
+
json_dump(args.user_mapping_output, updated_mapping)
|
| 1430 |
+
validate_assets(
|
| 1431 |
+
args.ticket_output,
|
| 1432 |
+
args.document_output,
|
| 1433 |
+
args.user_mapping_output,
|
| 1434 |
+
args.ticket_count,
|
| 1435 |
+
args.comment_count,
|
| 1436 |
+
args.document_count,
|
| 1437 |
+
)
|
| 1438 |
+
print(
|
| 1439 |
+
f"Consolidated {updated_mapping['totalSourceUsers']} source users "
|
| 1440 |
+
f"into {updated_mapping['totalAnonymizedUsers']} role-matched personas "
|
| 1441 |
+
"without changing corpus membership."
|
| 1442 |
+
)
|
| 1443 |
+
return 0
|
| 1444 |
+
|
| 1445 |
+
if args.assign_existing_clients:
|
| 1446 |
+
payload = json.loads(args.ticket_output.read_text(encoding="utf-8"))
|
| 1447 |
+
payload["clients"] = [dict(client) for client in EXPANSION_CLIENTS]
|
| 1448 |
+
assign_clients_to_tickets(payload["tickets"])
|
| 1449 |
+
json_dump(args.ticket_output, payload)
|
| 1450 |
+
validate_assets(
|
| 1451 |
+
args.ticket_output,
|
| 1452 |
+
args.document_output,
|
| 1453 |
+
args.user_mapping_output,
|
| 1454 |
+
args.ticket_count,
|
| 1455 |
+
args.comment_count,
|
| 1456 |
+
args.document_count,
|
| 1457 |
+
)
|
| 1458 |
+
assigned_count = sum(
|
| 1459 |
+
bool(ticket.get("clientEmail")) for ticket in payload["tickets"]
|
| 1460 |
+
)
|
| 1461 |
+
print(
|
| 1462 |
+
f"Added {len(payload['clients'])} clients and assigned "
|
| 1463 |
+
f"{assigned_count} existing imported tickets without changing "
|
| 1464 |
+
"corpus membership."
|
| 1465 |
+
)
|
| 1466 |
+
return 0
|
| 1467 |
+
|
| 1468 |
+
if args.sanitize_existing:
|
| 1469 |
+
payload = json.loads(args.ticket_output.read_text(encoding="utf-8"))
|
| 1470 |
+
for ticket in payload["tickets"]:
|
| 1471 |
+
ticket["detail"] = sanitize_existing_visible_text(ticket["detail"])
|
| 1472 |
+
for comment in ticket.get("comments", []):
|
| 1473 |
+
comment["text"] = sanitize_existing_visible_text(comment["text"])
|
| 1474 |
+
json_dump(args.ticket_output, payload)
|
| 1475 |
+
validate_assets(
|
| 1476 |
+
args.ticket_output,
|
| 1477 |
+
args.document_output,
|
| 1478 |
+
args.user_mapping_output,
|
| 1479 |
+
args.ticket_count,
|
| 1480 |
+
args.comment_count,
|
| 1481 |
+
args.document_count,
|
| 1482 |
+
)
|
| 1483 |
+
print(
|
| 1484 |
+
f"Sanitized visible content for {len(payload['tickets'])} existing "
|
| 1485 |
+
"tickets without changing corpus membership."
|
| 1486 |
+
)
|
| 1487 |
+
return 0
|
| 1488 |
+
|
| 1489 |
+
if args.check_only:
|
| 1490 |
+
validate_assets(
|
| 1491 |
+
args.ticket_output,
|
| 1492 |
+
args.document_output,
|
| 1493 |
+
args.user_mapping_output,
|
| 1494 |
+
args.ticket_count,
|
| 1495 |
+
args.comment_count,
|
| 1496 |
+
args.document_count,
|
| 1497 |
+
)
|
| 1498 |
+
print("GLPI expansion assets are valid.")
|
| 1499 |
+
return 0
|
| 1500 |
+
|
| 1501 |
+
cache_dir = args.cache_dir or Path(tempfile.mkdtemp(prefix="peppermint-glpi-api-"))
|
| 1502 |
+
client = GitHubClient(cache_dir)
|
| 1503 |
+
print(f"Fetching GLPI issues into cache {cache_dir} ...")
|
| 1504 |
+
open_candidates = fetch_issue_candidates(
|
| 1505 |
+
client, args.repository, "open", args.open_pages
|
| 1506 |
+
)
|
| 1507 |
+
closed_candidates = fetch_issue_candidates(
|
| 1508 |
+
client, args.repository, "closed", args.closed_pages
|
| 1509 |
+
)
|
| 1510 |
+
raw_comments = fetch_recent_comments(client, args.repository, args.comment_pages)
|
| 1511 |
+
grouped = comment_by_issue(raw_comments)
|
| 1512 |
+
selected = select_issues(open_candidates, closed_candidates, grouped, args.ticket_count)
|
| 1513 |
+
allocated = allocate_comments(selected, grouped, args.comment_count)
|
| 1514 |
+
actor_roles = collect_actor_roles(selected, allocated)
|
| 1515 |
+
actor_mapping = build_actor_mapping(actor_roles)
|
| 1516 |
+
seed_users = expansion_users(actor_mapping)
|
| 1517 |
+
tickets = [
|
| 1518 |
+
transform_issue(
|
| 1519 |
+
issue,
|
| 1520 |
+
allocated[int(issue["number"])],
|
| 1521 |
+
args.repository,
|
| 1522 |
+
actor_mapping,
|
| 1523 |
+
)
|
| 1524 |
+
for issue in selected
|
| 1525 |
+
]
|
| 1526 |
+
|
| 1527 |
+
doc_root, doc_revision, _temporary = checkout_docs(args.docs_dir)
|
| 1528 |
+
documents = build_documents(doc_root, doc_revision, args.document_count)
|
| 1529 |
+
generated_at = datetime.now(timezone.utc).replace(microsecond=0).isoformat()
|
| 1530 |
+
|
| 1531 |
+
ticket_payload = {
|
| 1532 |
+
"version": "1.0",
|
| 1533 |
+
"generatedAt": generated_at,
|
| 1534 |
+
"generatedFor": "Peppermint additive data expansion",
|
| 1535 |
+
"source": {
|
| 1536 |
+
"project": args.repository,
|
| 1537 |
+
"repositoryUrl": f"https://github.com/{args.repository}",
|
| 1538 |
+
"api": "GitHub REST API",
|
| 1539 |
+
},
|
| 1540 |
+
"selection": {
|
| 1541 |
+
"tickets": len(tickets),
|
| 1542 |
+
"comments": sum(len(ticket["comments"]) for ticket in tickets),
|
| 1543 |
+
"sourceContributors": len(actor_mapping),
|
| 1544 |
+
"anonymizedUsers": len(seed_users),
|
| 1545 |
+
"open": sum(not ticket["isComplete"] for ticket in tickets),
|
| 1546 |
+
"closed": sum(ticket["isComplete"] for ticket in tickets),
|
| 1547 |
+
"originalPeppermintTicketsPreserved": True,
|
| 1548 |
+
},
|
| 1549 |
+
"clients": [dict(client) for client in EXPANSION_CLIENTS],
|
| 1550 |
+
"users": seed_users,
|
| 1551 |
+
"tickets": tickets,
|
| 1552 |
+
}
|
| 1553 |
+
document_payload = {
|
| 1554 |
+
"version": "1.0",
|
| 1555 |
+
"generatedAt": generated_at,
|
| 1556 |
+
"generatedFor": "Peppermint additive GLPI knowledge expansion",
|
| 1557 |
+
"totalDocuments": len(documents),
|
| 1558 |
+
"source": {
|
| 1559 |
+
"project": "glpi-project/doc",
|
| 1560 |
+
"repositoryUrl": DOC_REPOSITORY.removesuffix(".git"),
|
| 1561 |
+
"revision": doc_revision,
|
| 1562 |
+
"license": DOC_LICENSE,
|
| 1563 |
+
"licenseUrl": DOC_LICENSE_URL,
|
| 1564 |
+
},
|
| 1565 |
+
"documents": documents,
|
| 1566 |
+
}
|
| 1567 |
+
mapping_payload = user_mapping_payload(actor_mapping, generated_at)
|
| 1568 |
+
|
| 1569 |
+
json_dump(args.ticket_output, ticket_payload)
|
| 1570 |
+
json_dump(args.document_output, document_payload)
|
| 1571 |
+
json_dump(args.user_mapping_output, mapping_payload)
|
| 1572 |
+
validate_assets(
|
| 1573 |
+
args.ticket_output,
|
| 1574 |
+
args.document_output,
|
| 1575 |
+
args.user_mapping_output,
|
| 1576 |
+
args.ticket_count,
|
| 1577 |
+
args.comment_count,
|
| 1578 |
+
args.document_count,
|
| 1579 |
+
)
|
| 1580 |
+
print(
|
| 1581 |
+
f"Wrote {len(tickets)} tickets, {args.comment_count} comments, "
|
| 1582 |
+
f"{len(documents)} documents, and {len(seed_users)} anonymized personas "
|
| 1583 |
+
f"for {len(actor_mapping)} source contributors."
|
| 1584 |
+
)
|
| 1585 |
+
return 0
|
| 1586 |
+
|
| 1587 |
+
|
| 1588 |
+
if __name__ == "__main__":
|
| 1589 |
+
try:
|
| 1590 |
+
raise SystemExit(main())
|
| 1591 |
+
except (AssertionError, RuntimeError, subprocess.CalledProcessError) as exc:
|
| 1592 |
+
print(f"ERROR: {exc}", file=sys.stderr)
|
| 1593 |
+
raise SystemExit(1)
|
preparation/seed_peppermint.js
ADDED
|
@@ -0,0 +1,344 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env node
|
| 2 |
+
/**
|
| 3 |
+
* Peppermint seeder — runs INSIDE the container via docker exec.
|
| 4 |
+
* Uses Node 18 built-in fetch; no external dependencies needed.
|
| 5 |
+
*
|
| 6 |
+
* Usage (from seed-local.sh):
|
| 7 |
+
* docker cp seed/seed_peppermint.js <container>:/tmp/seed_peppermint.js
|
| 8 |
+
* docker cp seed_data.json <container>:/tmp/seed_data.json
|
| 9 |
+
* docker exec <container> node /tmp/seed_peppermint.js
|
| 10 |
+
*/
|
| 11 |
+
|
| 12 |
+
const fs = require("fs");
|
| 13 |
+
|
| 14 |
+
const BASE_URL = process.env.PEPPERMINT_URL || "http://localhost:5003";
|
| 15 |
+
const ADMIN_EMAIL = process.env.ADMIN_EMAIL || "admin@admin.com";
|
| 16 |
+
const ADMIN_PASSWORD = process.env.ADMIN_PASSWORD || "1234";
|
| 17 |
+
const DATA_FILE = process.env.SEED_DATA_FILE || "/tmp/seed_data.json";
|
| 18 |
+
const EXPANSION_FILES = (process.env.SEED_EXPANSION_FILES || "")
|
| 19 |
+
.split(":")
|
| 20 |
+
.map(value => value.trim())
|
| 21 |
+
.filter(Boolean);
|
| 22 |
+
|
| 23 |
+
const baseData = JSON.parse(fs.readFileSync(DATA_FILE, "utf8"));
|
| 24 |
+
const data = {
|
| 25 |
+
...baseData,
|
| 26 |
+
clients: [...(baseData.clients ?? [])],
|
| 27 |
+
users: [...(baseData.users ?? [])],
|
| 28 |
+
tickets: [...(baseData.tickets ?? [])],
|
| 29 |
+
};
|
| 30 |
+
|
| 31 |
+
for (const expansionFile of EXPANSION_FILES) {
|
| 32 |
+
const expansion = JSON.parse(fs.readFileSync(expansionFile, "utf8"));
|
| 33 |
+
const clients = expansion.clients ?? [];
|
| 34 |
+
const users = expansion.users ?? [];
|
| 35 |
+
const tickets = expansion.tickets ?? [];
|
| 36 |
+
data.clients.push(...clients);
|
| 37 |
+
data.users.push(...users);
|
| 38 |
+
data.tickets.push(...tickets);
|
| 39 |
+
console.log(
|
| 40 |
+
`Loaded ${clients.length} additive clients, ${users.length} additive users, ` +
|
| 41 |
+
`and ${tickets.length} additive tickets ` +
|
| 42 |
+
`from ${expansionFile}`,
|
| 43 |
+
);
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
// ── Helpers ───────────────────────────────────────────────────────────────────
|
| 47 |
+
|
| 48 |
+
async function api(method, path, token, body) {
|
| 49 |
+
const headers = { "Content-Type": "application/json" };
|
| 50 |
+
if (token) headers["Authorization"] = `Bearer ${token}`;
|
| 51 |
+
const res = await fetch(`${BASE_URL}${path}`, {
|
| 52 |
+
method,
|
| 53 |
+
headers,
|
| 54 |
+
body: body ? JSON.stringify(body) : undefined,
|
| 55 |
+
});
|
| 56 |
+
const text = await res.text();
|
| 57 |
+
let json;
|
| 58 |
+
try { json = JSON.parse(text); } catch { json = {}; }
|
| 59 |
+
return { ok: res.ok, status: res.status, json, text };
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
async function login(email, password) {
|
| 63 |
+
const r = await api("POST", "/api/v1/auth/login", null, { email, password });
|
| 64 |
+
if (r.ok) {
|
| 65 |
+
let tokenUserId = null;
|
| 66 |
+
try {
|
| 67 |
+
const payloadB64 = String(r.json.token || "").split(".")[1];
|
| 68 |
+
if (payloadB64) {
|
| 69 |
+
const payload = JSON.parse(Buffer.from(payloadB64, "base64url").toString("utf8"));
|
| 70 |
+
tokenUserId = payload?.data?.id ?? null;
|
| 71 |
+
}
|
| 72 |
+
} catch {}
|
| 73 |
+
|
| 74 |
+
return {
|
| 75 |
+
token: r.json.token,
|
| 76 |
+
user: r.json.user ?? null,
|
| 77 |
+
userId: r.json.user?.id ?? tokenUserId,
|
| 78 |
+
};
|
| 79 |
+
}
|
| 80 |
+
console.error(` LOGIN FAILED ${r.status}: ${r.text.slice(0, 120)}`);
|
| 81 |
+
return null;
|
| 82 |
+
}
|
| 83 |
+
|
| 84 |
+
async function waitForApi(maxWait = 120) {
|
| 85 |
+
console.log(`Waiting for API at ${BASE_URL} ...`);
|
| 86 |
+
const deadline = Date.now() + maxWait * 1000;
|
| 87 |
+
while (Date.now() < deadline) {
|
| 88 |
+
try {
|
| 89 |
+
const r = await fetch(`${BASE_URL}/`, { signal: AbortSignal.timeout(5000) });
|
| 90 |
+
if (r.status < 500) { console.log(" API is up."); return true; }
|
| 91 |
+
} catch {}
|
| 92 |
+
process.stdout.write(".");
|
| 93 |
+
await new Promise(r => setTimeout(r, 3000));
|
| 94 |
+
}
|
| 95 |
+
console.error(`\nERROR: API not ready after ${maxWait}s`);
|
| 96 |
+
return false;
|
| 97 |
+
}
|
| 98 |
+
|
| 99 |
+
function richText(text) {
|
| 100 |
+
return [{
|
| 101 |
+
type: "text",
|
| 102 |
+
text,
|
| 103 |
+
styles: {},
|
| 104 |
+
}];
|
| 105 |
+
}
|
| 106 |
+
|
| 107 |
+
function ticketDetailBlocks(value) {
|
| 108 |
+
const text = String(value ?? "").replace(/\r\n?/g, "\n");
|
| 109 |
+
const blocks = [];
|
| 110 |
+
|
| 111 |
+
for (const rawLine of text.split("\n")) {
|
| 112 |
+
const line = rawLine.trim();
|
| 113 |
+
if (!line) continue;
|
| 114 |
+
|
| 115 |
+
const numbered = line.match(/^\d+\.\s+(.+)$/);
|
| 116 |
+
const bulleted = line.match(/^[-*]\s+(.+)$/);
|
| 117 |
+
const heading = line.length <= 120 && /^[^:]+:$/.test(line);
|
| 118 |
+
|
| 119 |
+
if (heading) {
|
| 120 |
+
blocks.push({
|
| 121 |
+
type: "heading",
|
| 122 |
+
props: {
|
| 123 |
+
textColor: "default",
|
| 124 |
+
backgroundColor: "default",
|
| 125 |
+
textAlignment: "left",
|
| 126 |
+
level: 2,
|
| 127 |
+
},
|
| 128 |
+
content: richText(line.slice(0, -1)),
|
| 129 |
+
children: [],
|
| 130 |
+
});
|
| 131 |
+
} else if (numbered || bulleted) {
|
| 132 |
+
blocks.push({
|
| 133 |
+
type: numbered ? "numberedListItem" : "bulletListItem",
|
| 134 |
+
props: {
|
| 135 |
+
textColor: "default",
|
| 136 |
+
backgroundColor: "default",
|
| 137 |
+
textAlignment: "left",
|
| 138 |
+
},
|
| 139 |
+
content: richText((numbered || bulleted)[1]),
|
| 140 |
+
children: [],
|
| 141 |
+
});
|
| 142 |
+
} else {
|
| 143 |
+
blocks.push({
|
| 144 |
+
type: "paragraph",
|
| 145 |
+
props: {
|
| 146 |
+
textColor: "default",
|
| 147 |
+
backgroundColor: "default",
|
| 148 |
+
textAlignment: "left",
|
| 149 |
+
},
|
| 150 |
+
content: richText(line),
|
| 151 |
+
children: [],
|
| 152 |
+
});
|
| 153 |
+
}
|
| 154 |
+
}
|
| 155 |
+
|
| 156 |
+
return blocks.length > 0 ? blocks : [{
|
| 157 |
+
type: "paragraph",
|
| 158 |
+
props: {
|
| 159 |
+
textColor: "default",
|
| 160 |
+
backgroundColor: "default",
|
| 161 |
+
textAlignment: "left",
|
| 162 |
+
},
|
| 163 |
+
content: [],
|
| 164 |
+
children: [],
|
| 165 |
+
}];
|
| 166 |
+
}
|
| 167 |
+
|
| 168 |
+
// ── Main ──────────────────────────────────────────────────────────────────────
|
| 169 |
+
|
| 170 |
+
async function main() {
|
| 171 |
+
if (!await waitForApi()) process.exit(1);
|
| 172 |
+
|
| 173 |
+
// Extra pause for Prisma to finish seeding
|
| 174 |
+
await new Promise(r => setTimeout(r, 5000));
|
| 175 |
+
|
| 176 |
+
// ── Login as admin ──────────────────────────────────────────────────────
|
| 177 |
+
console.log(`\nLogging in as ${ADMIN_EMAIL}...`);
|
| 178 |
+
let adminLogin = await login(ADMIN_EMAIL, ADMIN_PASSWORD);
|
| 179 |
+
if (!adminLogin) {
|
| 180 |
+
await new Promise(r => setTimeout(r, 10000));
|
| 181 |
+
adminLogin = await login(ADMIN_EMAIL, ADMIN_PASSWORD);
|
| 182 |
+
}
|
| 183 |
+
if (!adminLogin) { console.error("Failed to login as admin. Exiting."); process.exit(1); }
|
| 184 |
+
const adminToken = adminLogin.token;
|
| 185 |
+
console.log(" OK");
|
| 186 |
+
|
| 187 |
+
const adminId = adminLogin.userId ?? null;
|
| 188 |
+
|
| 189 |
+
const userTokens = { [ADMIN_EMAIL]: adminToken };
|
| 190 |
+
const userIds = { [ADMIN_EMAIL]: adminId };
|
| 191 |
+
const userNames = { [ADMIN_EMAIL]: adminLogin.user?.name ?? "Admin" };
|
| 192 |
+
const userProfiles = {
|
| 193 |
+
[ADMIN_EMAIL]: {
|
| 194 |
+
id: adminId,
|
| 195 |
+
name: adminLogin.user?.name ?? "Admin",
|
| 196 |
+
email: ADMIN_EMAIL,
|
| 197 |
+
role: "admin",
|
| 198 |
+
},
|
| 199 |
+
};
|
| 200 |
+
|
| 201 |
+
// ── Create users ────────────────────────────────────────────────────────
|
| 202 |
+
console.log(`\nCreating ${data.users.length} users...`);
|
| 203 |
+
for (const u of data.users) {
|
| 204 |
+
const r = await api("POST", "/api/v1/auth/user/register", adminToken, {
|
| 205 |
+
name: u.name, email: u.email, password: u.password, admin: u.admin ?? false,
|
| 206 |
+
});
|
| 207 |
+
if (r.ok) {
|
| 208 |
+
const uid = r.json.id ?? r.json.user?.id;
|
| 209 |
+
userIds[u.email] = uid;
|
| 210 |
+
userNames[u.email] = u.name;
|
| 211 |
+
console.log(` Created: ${u.email} (id=${uid})`);
|
| 212 |
+
} else {
|
| 213 |
+
console.log(` Skipped (may exist): ${u.email} — ${r.status}`);
|
| 214 |
+
}
|
| 215 |
+
const userLogin = await login(u.email, u.password);
|
| 216 |
+
if (!userLogin) throw new Error(`Unable to log in seeded user ${u.email}`);
|
| 217 |
+
userTokens[u.email] = userLogin.token;
|
| 218 |
+
if (userLogin.userId) userIds[u.email] = userLogin.userId;
|
| 219 |
+
if (userLogin.user?.name) userNames[u.email] = userLogin.user.name;
|
| 220 |
+
userProfiles[u.email] = {
|
| 221 |
+
id: userLogin.userId,
|
| 222 |
+
name: userLogin.user?.name ?? u.name,
|
| 223 |
+
email: u.email,
|
| 224 |
+
role: userLogin.user?.isAdmin ? "admin" : "user",
|
| 225 |
+
};
|
| 226 |
+
}
|
| 227 |
+
|
| 228 |
+
// ── Create clients ──────────────────────────────────────────────────────
|
| 229 |
+
console.log(`\nCreating ${data.clients.length} clients...`);
|
| 230 |
+
for (const client of data.clients) {
|
| 231 |
+
const r = await api("POST", "/api/v1/client/create", adminToken, {
|
| 232 |
+
name: client.name,
|
| 233 |
+
email: client.email,
|
| 234 |
+
number: client.number,
|
| 235 |
+
contactName: client.contactName,
|
| 236 |
+
});
|
| 237 |
+
if (r.ok) {
|
| 238 |
+
console.log(` Created client: ${client.name}`);
|
| 239 |
+
} else {
|
| 240 |
+
console.log(` Skipped client (may exist): ${client.email} — ${r.status}`);
|
| 241 |
+
}
|
| 242 |
+
}
|
| 243 |
+
|
| 244 |
+
const clientResult = await api("GET", "/api/v1/clients/all", adminToken);
|
| 245 |
+
if (!clientResult.ok) {
|
| 246 |
+
throw new Error(`Unable to load seeded clients: ${clientResult.status}`);
|
| 247 |
+
}
|
| 248 |
+
const clientRows = Array.isArray(clientResult.json)
|
| 249 |
+
? clientResult.json
|
| 250 |
+
: clientResult.json.clients ?? clientResult.json.data ?? [];
|
| 251 |
+
const clientIds = Object.fromEntries(
|
| 252 |
+
clientRows.filter(client => client.email).map(client => [client.email, client.id]),
|
| 253 |
+
);
|
| 254 |
+
for (const client of data.clients) {
|
| 255 |
+
if (!clientIds[client.email]) {
|
| 256 |
+
throw new Error(`Unable to resolve seeded client ${client.email}`);
|
| 257 |
+
}
|
| 258 |
+
}
|
| 259 |
+
|
| 260 |
+
// ── Create tickets ──────────────────────────────────────────────────────
|
| 261 |
+
console.log(`\nCreating ${data.tickets.length} tickets...`);
|
| 262 |
+
for (const t of data.tickets) {
|
| 263 |
+
const assignedEmail = t.assignedTo;
|
| 264 |
+
if (assignedEmail && !userIds[assignedEmail]) {
|
| 265 |
+
throw new Error(`Unknown assigned user ${assignedEmail} for ticket '${t.title}'`);
|
| 266 |
+
}
|
| 267 |
+
const engineer =
|
| 268 |
+
assignedEmail && userIds[assignedEmail]
|
| 269 |
+
? { id: userIds[assignedEmail], name: userNames[assignedEmail] ?? assignedEmail }
|
| 270 |
+
: undefined;
|
| 271 |
+
const creatorEmail = t.createdByEmail;
|
| 272 |
+
if (creatorEmail && !userProfiles[creatorEmail]?.id) {
|
| 273 |
+
throw new Error(`Unknown creator ${creatorEmail} for ticket '${t.title}'`);
|
| 274 |
+
}
|
| 275 |
+
const createdBy = creatorEmail ? userProfiles[creatorEmail] : undefined;
|
| 276 |
+
const clientEmail = t.clientEmail;
|
| 277 |
+
if (clientEmail && !clientIds[clientEmail]) {
|
| 278 |
+
throw new Error(`Unknown client ${clientEmail} for ticket '${t.title}'`);
|
| 279 |
+
}
|
| 280 |
+
|
| 281 |
+
const body = {
|
| 282 |
+
title: t.title,
|
| 283 |
+
name: t.title,
|
| 284 |
+
// The API JSON-stringifies this field. Imported plain text therefore
|
| 285 |
+
// needs to be submitted as native BlockNote blocks; submitting a string
|
| 286 |
+
// makes escaped newlines appear literally in the ticket editor.
|
| 287 |
+
detail: t.source ? ticketDetailBlocks(t.detail) : t.detail,
|
| 288 |
+
priority: t.priority ?? "low",
|
| 289 |
+
type: t.type ?? "support",
|
| 290 |
+
...(engineer ? { engineer } : {}),
|
| 291 |
+
...(createdBy ? { createdBy } : {}),
|
| 292 |
+
...(clientEmail ? { company: clientIds[clientEmail] } : {}),
|
| 293 |
+
};
|
| 294 |
+
|
| 295 |
+
const r = await api("POST", "/api/v1/ticket/create", adminToken, body);
|
| 296 |
+
if (!r.ok) {
|
| 297 |
+
console.log(` FAILED '${t.title.slice(0, 45)}': ${r.status} ${r.text.slice(0, 80)}`);
|
| 298 |
+
continue;
|
| 299 |
+
}
|
| 300 |
+
const ticketId = r.json.id;
|
| 301 |
+
console.log(` Ticket: '${t.title.slice(0, 45)}' (id=${ticketId})`);
|
| 302 |
+
|
| 303 |
+
// Update status
|
| 304 |
+
const status = t.status ?? "needs_support";
|
| 305 |
+
if (status !== "needs_support") {
|
| 306 |
+
const sr = await api("PUT", "/api/v1/ticket/update", adminToken, { id: ticketId, status });
|
| 307 |
+
if (!sr.ok) {
|
| 308 |
+
await api("PUT", "/api/v1/ticket/status/update", adminToken, { id: ticketId, status });
|
| 309 |
+
}
|
| 310 |
+
}
|
| 311 |
+
|
| 312 |
+
// Add comments
|
| 313 |
+
for (const c of t.comments ?? []) {
|
| 314 |
+
const commenterEmail = c.userEmail ?? ADMIN_EMAIL;
|
| 315 |
+
const tok = userTokens[commenterEmail];
|
| 316 |
+
if (!tok) {
|
| 317 |
+
throw new Error(`Unknown commenter ${commenterEmail} for ticket '${t.title}'`);
|
| 318 |
+
}
|
| 319 |
+
const cr = await api("POST", "/api/v1/ticket/comment", tok, {
|
| 320 |
+
id: ticketId, text: c.text, public: c.public ?? false,
|
| 321 |
+
});
|
| 322 |
+
if (!cr.ok) console.log(` Comment failed: ${cr.status} ${cr.text.slice(0, 80)}`);
|
| 323 |
+
}
|
| 324 |
+
|
| 325 |
+
// Peppermint stores workflow status and open/closed state independently.
|
| 326 |
+
// Existing seed tickets intentionally omit isComplete and retain their
|
| 327 |
+
// original behavior. Additive imports may explicitly close resolved items.
|
| 328 |
+
if (t.isComplete === true) {
|
| 329 |
+
const closeResult = await api(
|
| 330 |
+
"PUT",
|
| 331 |
+
"/api/v1/ticket/status/update",
|
| 332 |
+
adminToken,
|
| 333 |
+
{ id: ticketId, status: true },
|
| 334 |
+
);
|
| 335 |
+
if (!closeResult.ok) {
|
| 336 |
+
console.log(` Close failed: ${closeResult.status} ${closeResult.text.slice(0, 80)}`);
|
| 337 |
+
}
|
| 338 |
+
}
|
| 339 |
+
}
|
| 340 |
+
|
| 341 |
+
console.log("\nSeeding complete!");
|
| 342 |
+
}
|
| 343 |
+
|
| 344 |
+
main().catch(e => { console.error(e); process.exit(1); });
|
release-manifest.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"repo_id": "WebArena-Pro/peppermint-data",
|
| 3 |
+
"application_repository": "https://github.com/McGill-NLP/webarena-pro",
|
| 4 |
+
"prepared_at_utc": "2026-11-13T20:57:31.632222+00:00",
|
| 5 |
+
"visibility": "private",
|
| 6 |
+
"source_urls": [
|
| 7 |
+
"https://github.com/glpi-project/glpi/issues",
|
| 8 |
+
"https://github.com/glpi-project/doc"
|
| 9 |
+
],
|
| 10 |
+
"files": [
|
| 11 |
+
{
|
| 12 |
+
"path": "LICENSES.md",
|
| 13 |
+
"bytes": 982,
|
| 14 |
+
"sha256": "eada8087774090e22739ac946b558bcaefa663d23156f5b3b174ae64a31f1ed5"
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"path": "README.md",
|
| 18 |
+
"bytes": 2199,
|
| 19 |
+
"sha256": "1e53a862addeab834ac0620cd1ca3bddfa7722b8e7201e27769a0a218d73f262"
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"path": "data/glpi_knowledge_documents.json",
|
| 23 |
+
"bytes": 446217,
|
| 24 |
+
"sha256": "9e3a00697980bf2db466fe56cea43a33faea3d2a582d3b354f589c2e722ef12f"
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"path": "data/glpi_tickets.json",
|
| 28 |
+
"bytes": 3225606,
|
| 29 |
+
"sha256": "7c564d07c99836e740db6e18d0c2df0b88a52a760a69ea428ae32c4b28805366"
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"path": "data/glpi_user_mapping.json",
|
| 33 |
+
"bytes": 144627,
|
| 34 |
+
"sha256": "f9652e82435ddf5082e48683759d401673fc03db6f64b2b8a50a4489ec61069b"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"path": "data/knowledge_base_documents.json",
|
| 38 |
+
"bytes": 238605,
|
| 39 |
+
"sha256": "bb5a489f86e17cd70f7967f2c346da75bb9623cd4e4ae9461e9e7e596b252712"
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"path": "data/seed_data.json",
|
| 43 |
+
"bytes": 59135,
|
| 44 |
+
"sha256": "4abff1d0aefe6835121ece482b7e1d43a04a352975527f635a305dd11087032d"
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"path": "preparation/build_glpi_seed_assets.py",
|
| 48 |
+
"bytes": 58619,
|
| 49 |
+
"sha256": "e9ec42ba1da3a5bf2f166de9e79bb103a06a54bcb42be14daf7f69c07098071e"
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"path": "preparation/seed_peppermint.js",
|
| 53 |
+
"bytes": 12449,
|
| 54 |
+
"sha256": "1d6e7628420281f06bd2a76bee7505c198022f6b80fe15fbf5026a014bddad12"
|
| 55 |
+
}
|
| 56 |
+
],
|
| 57 |
+
"remote_media_preserved": false
|
| 58 |
+
}
|