-
Notifications
You must be signed in to change notification settings - Fork 69
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
Add tests to formdata_to_model regarding citeable #1980
Comments
Citeable:
And at least one between:
Here there is the code that is doing this consideration: https://github.com/inspirehep/inspire-schemas/blob/master/inspire_schemas/builders.py#L272&L300. The tests should be easy but I think should be done in Refereed: @michamos let us know what we should do 🗣️ with the |
The equivalent before the big
I personally liked the unit tests that were in |
I took the decision to remove them in the interest of speed in #1918. That design was and still is better than the current one in |
I will do it in the way that @jacquerie suggest that is the old one that we were using in the But please let me know why you ( @jmartinm @jacquerie ) like them or why you prefer those rather than the actual ones. Because probably you are right but I am not able to see your point. |
That's the key part you are mistaken about: the builder is (almost) free of logic, and that logic is still in inspire-next/inspirehep/modules/literaturesuggest/tasks.py Lines 204 to 209 in 6aaa968
|
Partially done in inspirehep/inspire-schemas#118 What about |
Yeah that property really depends on the specific journal to which the record is associated, and even within a given journal it's not necessary all the volume/issues to be refereed (e.g. some journal publishes both conference proceedings and articles). |
Do you think we should open an issue for this? |
No, so I think that this issue can be closed, since we already have one about implementing |
A quick fix was introduced in #1979 to adapt to latest
inspire-schemas
.Proper tests need to be added to make sure that the form is adding the
citable
flag properly. Also the flagrefereed
needs to be checked.The text was updated successfully, but these errors were encountered: