-
Notifications
You must be signed in to change notification settings - Fork 27
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
Refactoring categories #47
Conversation
d45e9a9
to
c45d4f5
Compare
@@ -0,0 +1,8 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This generates something like:
arxiv_field_categories = [{'term': 'hep-ph'}, {'term': 'hep-th'}]
When what we need is just an array of strings:
arxiv_field_categories = ['hep-ph', 'hep-th']
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{
'items': {
'oneOf': [
{
'enum': ['one', 'two'],
'type': 'string'
}
]
},
'type': 'array',
'uniqueItems': True
}
4988dea
to
c095f17
Compare
This looks great now 👍 , but we should wait for #41 to see if this is actually what it's needed before merging, though we can start modifying the rest of the code (inspire-next + hepcrawl) to adapt to this in the meantime, as if not like this, it will be quite similar I think. |
I forgot! this is a non-backwards compatible change, so you should use this: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add the non-backwards-compatible tag/header/message/whatever
a2d0081
to
e264d7f
Compare
1ea5678
to
4413868
Compare
* INCOMPATIBLE rename inspire_field_categories to inspire_categories. * Removed external_field_categories. * New values for inspire_field enum
4413868
to
04f2fc6
Compare
|
We are going to create 2 fields: