Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract new package: Tracker API client #1179

Conversation

josecelano
Copy link
Member

@josecelano josecelano commented Jan 10, 2025

Extract new package: Tracker API client.

I've also extracted a new type Origin for the API base URL in the connection info. For example: htpp://tracker.com:1212/.

@josecelano josecelano force-pushed the 1159-extract-tracker-tracker-api-client-workspace-package branch from 09ec5b2 to a1ded65 Compare January 10, 2025 12:44
@josecelano josecelano linked an issue Jan 10, 2025 that may be closed by this pull request
@josecelano josecelano self-assigned this Jan 10, 2025
@josecelano josecelano added - Developer - Torrust Improvement Experience API Related to the Tracker API labels Jan 10, 2025
Copy link

codecov bot commented Jan 10, 2025

Codecov Report

Attention: Patch coverage is 96.07843% with 4 lines in your changes missing coverage. Please review.

Project coverage is 76.36%. Comparing base (08a862a) to head (aa7ffdf).
Report is 6 commits behind head on develop.

Files with missing lines Patch % Lines
packages/tracker-api-client/src/connection_info.rs 94.36% 4 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1179      +/-   ##
===========================================
+ Coverage    76.07%   76.36%   +0.28%     
===========================================
  Files          174      177       +3     
  Lines        11599    11906     +307     
  Branches     11599    11906     +307     
===========================================
+ Hits          8824     9092     +268     
- Misses        2606     2648      +42     
+ Partials       169      166       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

The Tracker API client was extracted into a new package. This removes
the duplicate client in tests and starts using the new package.
@josecelano josecelano force-pushed the 1159-extract-tracker-tracker-api-client-workspace-package branch from 99fcbb6 to e4b9875 Compare January 10, 2025 16:23
@josecelano josecelano marked this pull request as ready for review January 10, 2025 17:17
@josecelano josecelano requested a review from a team as a code owner January 10, 2025 17:17
@josecelano josecelano requested a review from da2ce7 January 10, 2025 17:17
@josecelano josecelano force-pushed the 1159-extract-tracker-tracker-api-client-workspace-package branch from b6abf2b to b47cc0a Compare January 10, 2025 17:18
Instead of using a plain string we now use a Origin type containing hte
base URL for the API without path or fragments.

```
scheme://host:port/
```
@josecelano josecelano force-pushed the 1159-extract-tracker-tracker-api-client-workspace-package branch from b47cc0a to aa7ffdf Compare January 10, 2025 17:47
@josecelano
Copy link
Member Author

ACK aa7ffdf

@josecelano josecelano changed the title Extract new package Ttracker API client Extract new package: Ttracker API client Jan 10, 2025
@josecelano josecelano changed the title Extract new package: Ttracker API client Extract new package: Tracker API client Jan 10, 2025
@josecelano josecelano merged commit f508ef7 into torrust:develop Jan 10, 2025
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- Developer - Torrust Improvement Experience API Related to the Tracker API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extract torrust-tracker-api-client workspace package
1 participant