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

don't allow commas in model and dataset names #700

Merged
merged 3 commits into from
Aug 5, 2024

Conversation

ekorman
Copy link
Contributor

@ekorman ekorman commented Aug 5, 2024

this was causing things like get_evaluations to fail since the query params are string separated model names

@ekorman ekorman requested review from czaloom and ntlind as code owners August 5, 2024 03:14
@ekorman ekorman linked an issue Aug 5, 2024 that may be closed by this pull request
1 task
@ekorman
Copy link
Contributor Author

ekorman commented Aug 5, 2024

the migration file replaces dataset and model names with commas to underscores (and adds enough underscores to guarantee uniqueness). it then updates the model, dataset, and evaluation tables accordingly.

here are screenshots of before and after running the migration command on some sample data

before:
image
image
image

after:
image
image
image


DROP FUNCTION get_unique_name;

COMMIT;
Copy link
Collaborator

@czaloom czaloom Aug 5, 2024

Choose a reason for hiding this comment

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

nit: Im not sure the COMMIT is required since we don't use this elsewhere in the migration files.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i think you're right, i remvoed it

@czaloom
Copy link
Collaborator

czaloom commented Aug 5, 2024

Does the migration run properly without up and down files?

@ekorman
Copy link
Contributor Author

ekorman commented Aug 5, 2024

Does the migration run properly without up and down files?

not sure but i added an empty down file

@ekorman ekorman merged commit 93b4bb0 into main Aug 5, 2024
12 checks passed
@ekorman ekorman deleted the 699-bug-modelget_evaluations-returning-empty-list branch August 5, 2024 14:15
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.

BUG: model.get_evaluations returning empty list
2 participants