Skip to content

Feat: Static Resolver implementation#41

Merged
Niraj-Kamdar merged 14 commits into
mainfrom
feat/uri-resolution-impl
Nov 13, 2022
Merged

Feat: Static Resolver implementation#41
Niraj-Kamdar merged 14 commits into
mainfrom
feat/uri-resolution-impl

Conversation

@cbrzn
Copy link
Copy Markdown
Contributor

@cbrzn cbrzn commented Nov 3, 2022

No description provided.

@cbrzn cbrzn requested a review from Niraj-Kamdar November 3, 2022 15:02
@cbrzn cbrzn force-pushed the feat/uri-resolution-impl branch from 35d6561 to 3ae3816 Compare November 4, 2022 19:18
@Niraj-Kamdar Niraj-Kamdar marked this pull request as draft November 5, 2022 11:23
@cbrzn cbrzn force-pushed the feat/uri-resolution-impl branch from 54da472 to 0924020 Compare November 5, 2022 14:40
Comment thread packages/polywrap-client/polywrap_client/client.py Outdated
def __init__(self, resolvers: List[IUriResolver]):
self.resolvers = resolvers

def get_step_description(self) -> str:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be get_step_name?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

we are following the UriResolverAggregatorBase interface and I think it makes sense to keep it with description

self.uri_map = uri_map

@staticmethod
def _from(static_resolver_likes: List[UriResolverLike]) -> "StaticResolver":
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This should be class method instead. Let's name this something else. (Ex: construct_from or from_list, from_array?)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think it make sense to keep it as a static method, but the name indeed need to be changed; will rename it to from_list

Comment thread packages/polywrap-uri-resolvers/polywrap_uri_resolvers/static_resolver.py Outdated
Comment thread packages/polywrap-uri-resolvers/polywrap_uri_resolvers/static_resolver.py Outdated
Comment thread packages/polywrap-uri-resolvers/polywrap_uri_resolvers/static_resolver.py Outdated
Comment thread packages/polywrap-uri-resolvers/polywrap_uri_resolvers/static_resolver.py Outdated
Comment thread packages/polywrap-uri-resolvers/polywrap_uri_resolvers/uri_resolver_wrapper.py Outdated
Copy link
Copy Markdown
Contributor

@Niraj-Kamdar Niraj-Kamdar left a comment

Choose a reason for hiding this comment

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

Left some comments regarding better code practices

@cbrzn cbrzn requested a review from Niraj-Kamdar November 10, 2022 19:27
@cbrzn cbrzn marked this pull request as ready for review November 10, 2022 19:27
@cbrzn cbrzn force-pushed the feat/uri-resolution-impl branch from 98fb25d to 16b8444 Compare November 10, 2022 19:35
@cbrzn cbrzn changed the title Feat: Uri resolution implementation Feat: Static Resolver implementation Nov 11, 2022
@cbrzn cbrzn force-pushed the feat/uri-resolution-impl branch from 16b8444 to 88eb118 Compare November 11, 2022 18:22
@Niraj-Kamdar Niraj-Kamdar merged commit 6eb1b87 into main Nov 13, 2022
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.

2 participants