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

137 create a function for container name creation logic #194

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Francois-Werbrouck
Copy link
Contributor

ref #137

@Francois-Werbrouck Francois-Werbrouck linked an issue Oct 8, 2024 that may be closed by this pull request
@Francois-Werbrouck Francois-Werbrouck marked this pull request as ready for review October 8, 2024 22:27
@Francois-Werbrouck Francois-Werbrouck requested a review from a team as a code owner October 8, 2024 22:27
@Francois-Werbrouck
Copy link
Contributor Author

Francois-Werbrouck commented Oct 8, 2024

I haven't write

unit tests for the new function to ensure it behaves correctly.

I will write unittest to make sure the 2 functions behave as expected soon (current tests workflow are broken atm). Previous tests should tell us if the changes are working for the refactoring.

Copy link
Member

@k-allagbe k-allagbe left a comment

Choose a reason for hiding this comment

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

There might still be manual building of those strings in:

  • tests/test_azure_storage.py
  • tests/fertiscan/test_datastore.py

@Francois-Werbrouck
Copy link
Contributor Author

I will rebase on main and check if any tests are having issues atm. I will then add new tests where it is necessary and update the old tests with the new functions!

@Francois-Werbrouck Francois-Werbrouck force-pushed the 137-create-a-function-for-container-name-creation-logic branch from 7a507e3 to 0f8bddb Compare October 11, 2024 19:22
@Francois-Werbrouck
Copy link
Contributor Author

There seems to be issues with certain tests. I will look into it first thing next week! 🚀

@@ -50,6 +50,37 @@ async def generate_hash(image):
print(error.__str__())
raise Exception("Unhandeled Datastore.blob.azure_storage Error")

def build_container_name(name:str,tier:str="user"):

Choose a reason for hiding this comment

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

The spacing on the types does not look right. Are we running ruff on these files?

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.

Create a Function for Container Name Creation Logic
3 participants