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

Additional BoolExpr Evaluation Not Respecting Equivalent Dates #132

Open
tmooney opened this issue Nov 14, 2016 · 0 comments
Open

Additional BoolExpr Evaluation Not Respecting Equivalent Dates #132

tmooney opened this issue Nov 14, 2016 · 0 comments

Comments

@tmooney
Copy link
Member

tmooney commented Nov 14, 2016

Here are four equivalent lister commands. Three work but one fails:

$ genome model build list -f 'date_completed="2016-11-14T09:17:38Z"' -sh model
MODEL
-----
$ genome model build list -f 'date_completed="2016-11-14T09:17:38Z"' -sh id
ID
--
2892e48181d64e0f868f418bea7eeb05
$ genome model build list -f 'date_completed="2016-11-14 09:17:38"' -sh model
MODEL
-----
H_...redacted... (cfc452238f1a4f38b33e87f7f42026b1)
$ genome model build list -f 'date_completed="2016-11-14 09:17:38"' -sh id
ID
--
2892e48181d64e0f868f418bea7eeb05

In the one case where it fails, it ultimately comes down to this check not knowing the two date formats are equivalent, even though the object is successfully loaded from the database in either case.

This check only gets run when the loading iterator believes that additional evaluation is required, so the output is inconsistent depending on what hints ended up in the query based on the --show for the lister.

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

No branches or pull requests

1 participant