[BUG]
esemichasnova opened this issue · comments
Willingness to contribute
No. I cannot contribute a bug fix at this time.
MLflow version
2.11.3
System information
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
- Python version:
- yarn version, if running the dev UI:
Describe the problem
When I set a alias to the existed model and the alias contain capital letters, it converts into the alias without capital letters.
E.g. I am typing "CapitalLetterTag" and the appeared alias is "capitallettertag"
![image](https://private-user-images.githubusercontent.com/121808510/339014899-2af59d4f-4b1a-4468-af06-860a42274ad7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI3NzUwOTIsIm5iZiI6MTcyMjc3NDc5MiwicGF0aCI6Ii8xMjE4MDg1MTAvMzM5MDE0ODk5LTJhZjU5ZDRmLTRiMWEtNDQ2OC1hZjA2LTg2MGE0MjI3NGFkNy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODA0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgwNFQxMjMzMTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yZTM4YThmYTJiZWE1ZmVjNzljNWE0N2QxMGNhMmU4NDk0Zjk4ZjgzNmRlM2YwYTM3Njk0YzU1MDY3ZGNmYTliJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.594pX0K-4mqojTnPESiUYJQoR-3lXHN4w-TN_tMPic4)
![image](https://private-user-images.githubusercontent.com/121808510/339015094-3fb6b6de-8be9-47a9-bb38-f25f601321e3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI3NzUwOTIsIm5iZiI6MTcyMjc3NDc5MiwicGF0aCI6Ii8xMjE4MDg1MTAvMzM5MDE1MDk0LTNmYjZiNmRlLThiZTktNDdhOS1iYjM4LWYyNWY2MDEzMjFlMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODA0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgwNFQxMjMzMTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05NWY4NWY2YmE3Mjk0MjUxMjM4YTdhNTg2YTA0MTFhZmQwMmRiMGYyODdiNmQ2ODhjYjA1NjYxZjllMzMzMzRlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.G9yPgCC-v0zPwvn6kLmRAM10OJsoNAGW1YWJAc6AdH4)
Steps to reproduce the bug
Code to generate data required to reproduce the bug
No response
Is the console panel in DevTools showing errors relevant to the bug?
No response
Does the network panel in DevTools contain failed requests relevant to the bug?
No response
@esemichasnova Thank you for opening the issue. This is by-design, model alias feature is not case-sensitive. For readability, you can use hyphens instead of capital cases e.g. capital-letter-tag
. We will update the documentation to make this behavior clear!
Hi, just to clarify the scenario here:
-
When we create the alias
MyNewAlias
via an API call, then it works fine and we see it asMyNewAlias
in the MLflow frontend. When we use the API to search and list model versions' aliases, we also seeMyNewAlias
. -
When we create an alias from the frontend (clicking the pencil next to the aliases box) and input
MyNewAlias
, we see that it is saved asmynewalias
.
This seems like a bug to me.
@BalkanFlink Thank you for the additional information!
Sorry for the misinformation here. After further investigation, it turns out the alias is not case sensitive only in particular environments (e.g. Databricks, local Mac OS with file store). For other environments, the alias might be case sensitive.
We will work on fixing the UI and update you soon.
@mlflow/mlflow-team Please assign a maintainer and start triaging this issue.
Fixed by #12352