Skip to content
Snippets Groups Projects

Creates rake for setup users

Merged Kapil Patel requested to merge create-rake-for-setup-users into develop
All threads resolved!
  • Adds a rake task to create users

    • The rake task can create users using any combination of

      • database auth
      • Shibboleth auth
      • Orcid auth
    • Assign users to the following roles

      • admin
      • publication_manager
      • crc_1280_manager
      • crc_1280_member
      • crc_1280_group_manager
      • crc_1280_group_member
    • The list of possible attributes are

      • email
      • password
      • name
      • saml_id
      • orcid
      • role
      • group_id

      Not all attributes are required. See the template file setup.json.template for the different combinations.

      Roles crc_1280_group_manager and crc_1280_group_member needs the attribute group_id for the role to be assigned

  • setup_hyrax.rake now calls setup_users.rake to create users.

  • Seed files

    • The seed file setup.json has been deleted and in place is a template seed file setup.json.template
    • All files in the directory hyrax/seed will be ignored by git (except hyrax/seed/setup.json.template)
    • NOTE: Make a copy of the file setup.json before pulling this change, if you would like to retain that file.
Edited by Anusha Ranganathan

Merge request reports

Pipeline #6671 failed

Pipeline failed for f633d21b on create-rake-for-setup-users

Approved by

Merged by Anusha RanganathanAnusha Ranganathan 2 years ago (Apr 3, 2023 7:42pm UTC)

Merge details

  • Changes merged into develop with 332a726a.
  • Deleted the source branch.

Pipeline #6675 failed

Pipeline failed for 332a726a on develop

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Kapil Patel added 1 commit

    added 1 commit

    Compare with previous version

  • added 1 commit

    • d7ff93e6 - Improved rake task to add orcid and update users

    Compare with previous version

  • Anusha Ranganathan resolved all threads

    resolved all threads

  • added 3 commits

    • d0644cc3 - Moved setup.json to template
    • ae123def - Template file for creating seed users
    • 29bd1e97 - Ignore all seed files except template

    Compare with previous version

  • Anusha Ranganathan changed the description

    changed the description

  • added 1 commit

    • f633d21b - Create users if seed file exists

    Compare with previous version

  • Anusha Ranganathan approved this merge request

    approved this merge request

  • mentioned in commit 332a726a

  • Anusha Ranganathan mentioned in merge request !124 (closed)

    mentioned in merge request !124 (closed)

  • mentioned in issue #33 (closed)

  • mentioned in issue #34 (closed)

  • Please register or sign in to reply
    Loading