-
-
Notifications
You must be signed in to change notification settings - Fork 535
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: support node_id values containing colons
The node_id can be anything depending on how the user is handling it, so colons can appear in it, specially when it is some kind of encrypted value. This changes how we split the `GlobalID` string to only split the first colon in it, meaning that the remaining of the string will be considered as a whole for the node_id.
- Loading branch information
1 parent
7adcbfe
commit bfc1f63
Showing
3 changed files
with
20 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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 @@ | ||
Release type: minor | ||
|
||
Add support for extra colons in the `GlobalID` string. | ||
|
||
Before, the string `SomeType:some:value` would produce raise an error saying that | ||
it was expected the string to be splited in 2 parts when doing `.split(":")`. | ||
|
||
Now we are using `.split(":", 1)`, meaning that the example above will consider | ||
`SomeType` to be the type name, and `some:value` to be the node_id. |
This file contains 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 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