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

PLATFORM-1762 Create get_services_identifiers_by_tag_name method at container #20

Merged
merged 3 commits into from May 31, 2023

Conversation

jorgemo-fever
Copy link
Contributor

@jorgemo-fever jorgemo-fever commented May 30, 2023

PLATFORM-1762

Description

Tags would get advantage of this functionality and it is needed for implementing it at Transactional API.

How to test

  • Locally install this version of pypendency.
  • Register a service and then call the new method to obtain the services identifiers
  • Test also the edge case: service not registered

@jorgemo-fever jorgemo-fever self-assigned this May 30, 2023
@jorgemo-fever jorgemo-fever requested a review from a team as a code owner May 30, 2023 08:54
@jorgemo-fever jorgemo-fever requested review from gprossignoli and removed request for a team and Guille-Barrena May 30, 2023 08:54
@@ -149,5 +125,43 @@ def __instance_from_fqn(self, fully_qualified_name: str, args: list, kwargs: dic
except TypeError as e:
raise exceptions.ServiceInstantiationFailed(fully_qualified_name) from e

def has(self, identifier: str) -> bool:
return identifier in self._service_mapping
def get_service_identifier(self, service: Union[object, Definition]) -> str:

Choose a reason for hiding this comment

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

So this isn't new, it was moved, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

has was moved, and get_service_identifier is the only new method i created

@jorgemo-fever jorgemo-fever changed the title PLATFORM-1762 Create get_service_identifier method at container PLATFORM-1762 Create get_services_identifiers_by_tag_name method at container May 31, 2023
@jorgemo-fever jorgemo-fever merged commit 261d703 into master May 31, 2023
2 checks passed
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.

None yet

2 participants