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

safe-global / safe-client-gateway / 15823181484
89%

Build:
DEFAULT BRANCH: main
Ran 23 Jun 2025 11:43AM UTC
Jobs 1
Files 875
Run time 3min
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

23 Jun 2025 11:37AM UTC coverage: 90.193% (+0.004%) from 90.189%
15823181484

push

github

web-flow
feat(Spaces): member alias functionality  (#2613)

* feat: add update member name functionality

This commit introduces a new endpoint to update a member's name within a space. Users can only update their own names, ensuring proper authorization. The implementation includes a new DTO for validation and updates to the members repository and service to handle the name change logic.

* refactor: update the endpoint to set an alias instead of overwriting the original name field

This commit introduces an alias field for members, allowing users to set and update their aliases within a space. The implementation includes a new migration to add the alias column, updates to the member entity, repository, and service to handle alias changes, and modifications to the controller and DTOs for validation. Users can only update their own aliases, ensuring proper authorization.

* refactor: simplify `updateAlias` method by removing userId parameter

This commit refactors the updateAlias method in the MembersRepository and related services to eliminate the userId parameter. The method now retrieves the user based on the authenticated wallet address and checks for membership in the specified space. The controller and service have been updated accordingly to reflect this change, enhancing clarity and reducing potential errors in alias updates.

* fix: use correct user id to update member alias

* test: add integration tests for updating member aliases

This commit introduces integration tests for the new alias update functionality in the MembersRepository and MembersController. The tests cover various scenarios, including updating an alias to a new value, changing it from null to a value, and validating alias format. Additionally, error handling is tested for cases where the user is not authenticated or not a member of the space.

* chore: update member alias migration to change column type and remove index

This commit modifies the migration for adding the alias column... (continued)

3366 of 4069 branches covered (82.72%)

Branch coverage included in aggregate %.

18 of 21 new or added lines in 7 files covered. (85.71%)

11652 of 12582 relevant lines covered (92.61%)

551.51 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
0.0
migrations/1749755837793-add-member-alias.ts
Jobs
ID Job ID Ran Files Coverage
1 run-test:cov - 15823181484.1 23 Jun 2025 11:43AM UTC 1749
91.18
GitHub Action Run
Source Files on build 15823181484
  • Tree
  • List 875
  • Changed 239
  • Source Changed 7
  • Coverage Changed 238
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #15823181484
  • 97c539e1 on github
  • Prev Build on main (#15779600914)
  • Next Build on main (#15873396514)
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

© 2025 Coveralls, Inc