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

Include parameter to indicate endpoint #117

Merged

Conversation

sarroutbi
Copy link
Collaborator

Resolves: #116

@codecov-commenter
Copy link

codecov-commenter commented May 18, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (df3cc46) 0.00% compared to head (f65decf) 58.77%.
Report is 2 commits behind head on master.

Files Patch % Lines
src/tangd.c 95.45% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##           master     #117       +/-   ##
===========================================
+ Coverage        0   58.77%   +58.77%     
===========================================
  Files           0        4        +4     
  Lines           0      570      +570     
  Branches        0      147      +147     
===========================================
+ Hits            0      335      +335     
- Misses          0      134      +134     
- Partials        0      101      +101     

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

@sarroutbi sarroutbi force-pushed the 202305181359_prefix_url_parameter branch 9 times, most recently from 54ce3b0 to 89ad6b4 Compare May 18, 2023 14:39
@sarroutbi sarroutbi changed the title Include parameter to indicate URL prefix Include parameter to indicate endpoint May 18, 2023
@sarroutbi sarroutbi force-pushed the 202305181359_prefix_url_parameter branch 5 times, most recently from 9c3b517 to b49e1e1 Compare May 18, 2023 15:06
@sarroutbi sarroutbi marked this pull request as ready for review May 18, 2023 15:20
@sarroutbi sarroutbi requested a review from sergio-correia May 18, 2023 15:20
@sarroutbi sarroutbi force-pushed the 202305181359_prefix_url_parameter branch 3 times, most recently from 0904089 to 9dba1de Compare May 18, 2023 18:42
@sarroutbi sarroutbi force-pushed the 202305181359_prefix_url_parameter branch 3 times, most recently from 7e9b597 to 38dc999 Compare June 7, 2023 10:53
@sarroutbi sarroutbi force-pushed the 202305181359_prefix_url_parameter branch 3 times, most recently from 0a794e7 to 58691c1 Compare January 15, 2024 09:37
Copy link
Collaborator

@sergio-correia sergio-correia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good overall, but please fix the indent to match the file you are changing: e.g.: it seems you are using 2 spaces in some places like socket.h and tangd.c (perhaps others as well)

@sarroutbi sarroutbi force-pushed the 202305181359_prefix_url_parameter branch from 58691c1 to f5dd28a Compare February 9, 2024 11:14
@sarroutbi sarroutbi marked this pull request as draft February 12, 2024 10:41
@sarroutbi sarroutbi force-pushed the 202305181359_prefix_url_parameter branch 3 times, most recently from 26e8b86 to 086108d Compare February 12, 2024 11:03
@sarroutbi sarroutbi marked this pull request as ready for review February 12, 2024 11:12
@sarroutbi sarroutbi dismissed sergio-correia’s stale review February 12, 2024 11:17

Proposed changes have been implemented

src/tangd.c Outdated Show resolved Hide resolved
src/tangd.c Outdated Show resolved Hide resolved
src/tangd.c Outdated Show resolved Hide resolved
@sarroutbi sarroutbi force-pushed the 202305181359_prefix_url_parameter branch 2 times, most recently from 3335e5f to 52ef7a7 Compare February 12, 2024 12:08
@sarroutbi sarroutbi force-pushed the 202305181359_prefix_url_parameter branch 4 times, most recently from 1e2eb9c to 2bebffa Compare February 12, 2024 12:43
This change allows specifying -e option, so that
endpoint parameter is used. This parameter gives
the possibility to change URL where Tang listens,
so that endpoint provided is prepended between
host port information and advertisement/recovery
suffix (rec/adv).
Without endpoint, advertisement URL is:
http://localhost:port/adv
Meanwhile, if using endpoint (-e this/is/endpoint),
advertisement URL is:
http://localhost:port/this/is/endpoint/adv
For more information, check man page

Resolves: latchset#116

Signed-off-by: Sergio Arroutbi <[email protected]>
@sarroutbi sarroutbi force-pushed the 202305181359_prefix_url_parameter branch from 2bebffa to f65decf Compare February 12, 2024 12:49
Copy link
Collaborator

@sergio-correia sergio-correia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for this work!

@sarroutbi sarroutbi merged commit 4b7656b into latchset:master Feb 12, 2024
14 checks passed
@sarroutbi sarroutbi deleted the 202305181359_prefix_url_parameter branch February 12, 2024 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Include parameter to change URL path prefix where server is listening
3 participants