Giter VIP home page Giter VIP logo

Comments (1)

zzacharo avatar zzacharo commented on September 25, 2024

After some investigation on how to migrate users there are some things to be addressed.

  • Important first thing is to investigate if is possible in SQLAlchemy to create a model by forcing the auto increment key to be one specific and if is possible to check that nothing breaks when you insert normally new records after that.
  • Iterate through the list of users and clean up users that don't have valid accounts at Cern (in case we want to remove some trash data).
    • In case we do that we should update the loans of these users with a custom id (e.g -1) in order to keep the loans for statistics purposes but having a way to identify these cases.
  • We need to keep the postbox information of the logged in user. There are possibly 2 solutions on that. Either we extend the Cern Oauth response to give back the postbox from /Me endpoint and then change https://github.com/inveniosoftware/invenio-oauthclient/blob/master/invenio_oauthclient/contrib/cern.py#L196 to integrate these information inside linked accounts or as also suggested by Anne in the library to have at least a link to the phonebook which is feasible as we keep the ccid and we can compose the link.
  • We need to create the users in invenio keeping the same ids as in cds as these ids are referenced in the loans.

Useful Information

  • The table for the circulation users is called crcBORROWER.

from cds-migrator-kit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.