Open kaplun opened 9 years ago
For this I think we can also use https://github.com/inveniosoftware/invenio-sequencegenerator which is supposed to have the same functionality of generating sequences that we have in current inspirehep.
TeXkeys are somehow different because they don't have an integer based sequence, but are defined with random chars. In this sense the pidstore can be really used to poll if a given generated TeXKey hasn't already been generated and otherwise produce a new one.
Once Labs is the master for records we need to issue TeXkeys there.
This should be implemented using the PidStore, via a record enhancer.
Legacy implementation of TeXkeys is here: https://github.com/inspirehep/invenio/blob/prod/modules/miscutil/lib/sequtils_texkey.py
cc: @tsgit