• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Unleash / unleash / 16162923405
86%
master: 91%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 09 Jul 2025 07:26AM UTC
Jobs 1
Files 1187
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 Jul 2025 07:19AM UTC coverage: 91.414% (+2.4%) from 89.057%
16162923405

push

github

web-flow
chore: amend user-created-missing events (#10333)

## About the changes
Users could have been created in Unleash without a corresponding event
(a.k.a. audit log), due to a non transactional user insert
([fix](https://github.com/Unleash/unleash/pull/10327)). This could have
happened because of providing the wrong role id or some other causes
we're not aware of.

This amends the situation by inserting an event for each user that
exists in the instance (not deleted) and doesn't have it's corresponding
user-created event.

The event is inserted as already announced because this happened in the
past.

The event log will look like this (simulated the situation in local
dev):
```json
{
  "id": 11,
  "type": "user-created",
  "createdBy": "unleash_system_user",
  "createdAt": "2025-07-08T16:06:17.428Z",
  "createdByUserId": null,
  "data": {
    "id": "6",
    "email": "xyz@three.com"
  },
  "preData": null,
  "tags": [],
  "featureName": null,
  "project": null,
  "environment": null,
  "label": "User created",
  "summary": "**unleash_system_user** created user ****"
}
```

The main problem is we can't create the event in the past, so this will
have to do it

7088 of 7140 branches covered (99.27%)

38 of 41 new or added lines in 1 file covered. (92.68%)

67042 of 73339 relevant lines covered (91.41%)

436.52 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
92.68
src/migrations/20250708173000-amend-users-created-events.js
Jobs
ID Job ID Ran Files Coverage
1 16162923405.1 09 Jul 2025 07:25AM UTC 1187
91.41
GitHub Action Run
Source Files on build 16162923405
  • Tree
  • List 1187
  • Changed 133
  • Source Changed 0
  • Coverage Changed 133
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #16162923405
  • 902845bf on github
  • Prev Build on main (#16162741539)
  • Next Build on main (#16169700438)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc