-
Notifications
You must be signed in to change notification settings - Fork 30
🐛 Generate API base URL by active product ⚠️ #7619
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
Merged
giancarloromeo
merged 101 commits into
ITISFoundation:master
from
giancarloromeo:fix-api-base-url-generation
May 14, 2025
Merged
Changes from all commits
Commits
Show all changes
101 commits
Select commit
Hold shift + click to select a range
95a88d1
fix api-key creation response
giancarloromeo 1575ff7
continue
giancarloromeo 32f109e
fix api url
giancarloromeo 8c6c2da
Merge branch 'master' into fix-api-base-url-generation
giancarloromeo a1a5b2c
Merge branch 'master' into fix-api-base-url-generation
giancarloromeo 221b5c0
Merge remote-tracking branch 'upstream/master' into fix-api-base-url-…
giancarloromeo 710159e
fix host
giancarloromeo 0ca6baf
Merge branch 'master' into fix-api-base-url-generation
giancarloromeo 1e751ac
add test
giancarloromeo 7dda096
fix host
giancarloromeo 2f04ab3
fix expected api
giancarloromeo 2131eb8
typehint
giancarloromeo de3ecf6
fix port
giancarloromeo 4c89d78
fix helper
giancarloromeo 30f59e0
typecheck
giancarloromeo 67d23fa
Merge branch 'master' into fix-api-base-url-generation
giancarloromeo 26dd896
use generator
giancarloromeo ca6d976
move to common
giancarloromeo fcd1abb
Merge branch 'master' into fix-api-base-url-generation
giancarloromeo eb24d6b
Merge branch 'master' into fix-api-base-url-generation
giancarloromeo 2dc9a92
Merge branch 'master' into fix-api-base-url-generation
giancarloromeo e711dea
move to iterator
giancarloromeo 90de65e
fix iter
giancarloromeo 6744d71
make more robust
giancarloromeo e7c0234
add product_api_base_url param
giancarloromeo c8db246
add product_api_base_url param
giancarloromeo 73e7fe1
add missing param
giancarloromeo becbde2
add param
giancarloromeo e3f341b
add product_api_base_url param
giancarloromeo 3acbfc5
add param
giancarloromeo 6879782
fix test
giancarloromeo 0a0d705
add nullable field
giancarloromeo b7bbe70
fix tests
giancarloromeo b8b8cfd
fix examples
giancarloromeo 55dafb2
fix
giancarloromeo ddf542e
fix
giancarloromeo 8fe7c52
fix
giancarloromeo 1aa57ed
fix tests
giancarloromeo 08f32ab
fix test
giancarloromeo d620252
fix typecheck
giancarloromeo 7c89663
typecheck
giancarloromeo b9d66b7
typecheck
giancarloromeo 817f7d7
add metadata
giancarloromeo caaa89b
typecheck
giancarloromeo b9e1d73
Merge branch 'master' into fix-api-base-url-generation
giancarloromeo 6ec1239
Merge remote-tracking branch 'upstream/master' into fix-api-base-url-…
giancarloromeo 0e89788
Merge branch 'fix-api-base-url-generation' of github.com:giancarlorom…
giancarloromeo 10e459f
typecheck
giancarloromeo 856e7fc
fix iter_origins
giancarloromeo 2d64c6a
continue
giancarloromeo 5927feb
Merge remote-tracking branch 'upstream/master' into fix-api-base-url-…
giancarloromeo 1a0b1df
fix api_base_url generation
giancarloromeo b169c6e
add missing param
giancarloromeo 2e6d2ea
update
giancarloromeo 03bab7e
remove
giancarloromeo 5b8c9f8
Merge branch 'master' into fix-api-base-url-generation
giancarloromeo e33c8e2
fix test
giancarloromeo d35e22c
Merge remote-tracking branch 'upstream/master' into fix-api-base-url-…
giancarloromeo 7699e7a
Merge branch 'fix-api-base-url-generation' of github.com:giancarlorom…
giancarloromeo 40699c0
fix test
giancarloromeo 20ec910
fix mock
giancarloromeo 5c9e2c2
fix tests
giancarloromeo ee08426
fix test
giancarloromeo c97eed0
Merge remote-tracking branch 'upstream/master' into fix-api-base-url-…
giancarloromeo 416492e
fix tests
giancarloromeo d525a27
fix int tests
giancarloromeo 6cf6dd7
fix
giancarloromeo 26a01e1
fix
giancarloromeo 9f77907
fix
giancarloromeo b5fd47f
fix
giancarloromeo 9cec281
Merge branch 'master' into fix-api-base-url-generation
giancarloromeo 20094cb
fix param
giancarloromeo 6d14a2d
fix api_base_url
giancarloromeo 33765d5
add missing field
giancarloromeo 891685d
Merge branch 'master' into fix-api-base-url-generation
giancarloromeo c64c8ae
add api_base_url
giancarloromeo ed65503
fix param
giancarloromeo a574100
typecheck
giancarloromeo e8174a2
deprecate env var
giancarloromeo e7081b9
update spec
giancarloromeo 405a480
Merge branch 'master' into fix-api-base-url-generation
giancarloromeo d8b63bd
Merge remote-tracking branch 'upstream/master' into fix-api-base-url-…
giancarloromeo d10f236
remove env
giancarloromeo b9f6c47
remove env
giancarloromeo 26e1892
not nullable
giancarloromeo 38d7853
remove assert
giancarloromeo fefd466
add var
giancarloromeo 866bde0
mocks
giancarloromeo 394f48e
nullable
giancarloromeo 64ea381
add assert
giancarloromeo 1dd8043
add test
giancarloromeo 8a319e6
tests
giancarloromeo c2d9da2
nullable field
giancarloromeo fffb8f2
Merge branch 'master' into fix-api-base-url-generation
giancarloromeo 1c116ee
remove msg
giancarloromeo bf2d4d6
flip
giancarloromeo 4f89dda
Merge branch 'master' into fix-api-base-url-generation
giancarloromeo 56c718b
update spec
giancarloromeo e739fe9
Merge branch 'master' into fix-api-base-url-generation
giancarloromeo c4ac547
Merge branch 'master' into fix-api-base-url-generation
giancarloromeo 52088bf
Merge branch 'master' into fix-api-base-url-generation
giancarloromeo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import ipaddress | ||
|
||
|
||
def is_ip_address(host: str) -> bool: | ||
try: | ||
ipaddress.ip_address(host) | ||
return True | ||
except ValueError: | ||
return False |
19 changes: 19 additions & 0 deletions
19
packages/common-library/src/common_library/test_network.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import pytest | ||
from common_library.network import is_ip_address | ||
|
||
|
||
@pytest.mark.parametrize( | ||
"host, expected", | ||
[ | ||
("127.0.0.1", True), | ||
("::1", True), | ||
("192.168.1.1", True), | ||
("2001:0db8:85a3:0000:0000:8a2e:0370:7334", True), | ||
("256.256.256.256", False), | ||
("invalid_host", False), | ||
("", False), | ||
("1234:5678:9abc:def0:1234:5678:9abc:defg", False), | ||
], | ||
) | ||
def test_is_ip_address(host: str, expected: bool): | ||
giancarloromeo marked this conversation as resolved.
Show resolved
Hide resolved
|
||
assert is_ip_address(host) == expected |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.