Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
RDMS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
researchdata
RDMS
Commits
461b8a97
Commit
461b8a97
authored
1 year ago
by
Anusha Ranganathan
Browse files
Options
Downloads
Patches
Plain Diff
Publication manager needs workflow loaded
parent
4695f5a9
Branches
bug/fix-workflow-action-visibility
No related tags found
1 merge request
!195
Draft: Fixed work and workflow action visibility
Pipeline
#8331
failed
1 year ago
Stage: build
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
hyrax/lib/tasks/create_publication_manager.rake
+11
-0
11 additions, 0 deletions
hyrax/lib/tasks/create_publication_manager.rake
hyrax/lib/tasks/setup_hyrax.rake
+4
-0
4 additions, 0 deletions
hyrax/lib/tasks/setup_hyrax.rake
with
15 additions
and
0 deletions
hyrax/lib/tasks/create_publication_manager.rake
+
11
−
0
View file @
461b8a97
...
...
@@ -10,6 +10,17 @@ namespace :rdms do
puts
"Creating system publication manager"
_success
,
messages
,
_user
=
User
.
create_user_from_hash
(
user_hash
,
update_user:
false
)
puts
messages
if
messages
.
any?
end
task
:update
=>
:environment
do
user_hash
=
{
"email"
:
ENV
.
fetch
(
'SYSTEM_PUBLICATION_MANAGER'
,
'publication_manager@hyrax'
),
"name"
:
"Publication Manager"
,
"role"
:
"publication_manager"
}
puts
"Updating system publication manager"
_success
,
messages
,
_user
=
User
.
create_user_from_hash
(
user_hash
,
update_user:
true
)
puts
messages
if
messages
.
any?
end
end
...
...
This diff is collapsed.
Click to expand it.
hyrax/lib/tasks/setup_hyrax.rake
+
4
−
0
View file @
461b8a97
...
...
@@ -24,6 +24,10 @@ namespace :rdms do
Rake
::
Task
[
'hyrax:default_collection_types:create'
].
invoke
Rake
::
Task
[
'hyrax:default_admin_set:create'
].
invoke
Rake
::
Task
[
'hyrax:default_admin_set_for_workflow:create'
].
invoke
# the publication manager has manage role for the workflow, but not approving.
# So updating, so they also have approving role.
# Approving role can only be assigned after workflow is created, not before.
Rake
::
Task
[
'rdms:publication_manager:update'
].
invoke
######
# Finished loading workflows, creating collection types and administrative sets
##############################################
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment