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

update data import rake tasks #288

Closed
shelleydoljack opened this issue Feb 6, 2024 · 2 comments · Fixed by #289
Closed

update data import rake tasks #288

shelleydoljack opened this issue Feb 6, 2024 · 2 comments · Fixed by #289
Assignees

Comments

@shelleydoljack
Copy link
Contributor

We need to be able to:

  • not pull or load the default data import profiles
  • delete data import profiles that users created (like remove from test before loading ones from prod)
  • load only user-created data import profiles

From sul-dlss/FOLIO-Project-Stanford#605

@shelleydoljack shelleydoljack self-assigned this Feb 6, 2024
@shelleydoljack
Copy link
Contributor Author

default profiles should have a metadata block like this:

"metadata"=>
     {"createdDate"=>"2020-11-23T12:00:00.000+00:00",
      "createdByUserId"=>"00000000-0000-0000-0000-000000000000",
      "createdByUsername"=>"System",
      "updatedDate"=>"2020-11-24T12:00:00.000+00:00",
      "updatedByUserId"=>"00000000-0000-0000-0000-000000000000",
      "updatedByUsername"=>"System"}}],

@shelleydoljack
Copy link
Contributor Author

For the mapping profiles, the System user ID is not 00000000-0000-0000-0000-000000000000 but rather 6a010e5b-5421-5b1c-9b52-568b37038575 which is an Unknown user in our system. So to delete the default mapping profiles from our json when we pull it, we can use the userInfo field, userName = System.

 "userInfo" : {
    "firstName" : "System",
    "lastName" : "System",
    "userName" : "System"
  },

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

Successfully merging a pull request may close this issue.

1 participant