hyrax 3.0.0.pre.rc4 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/.dassie/config/cable.yml +1 -1
  3. data/.dassie/config/environments/development.rb +2 -0
  4. data/.dassie/config/environments/production.rb +1 -1
  5. data/.dassie/config/redis.yml +1 -0
  6. data/.dassie/db/seeds.rb +8 -0
  7. data/.dockerignore +1 -0
  8. data/Dockerfile +7 -4
  9. data/app/actors/hyrax/actors/create_with_remote_files_actor.rb +27 -1
  10. data/app/actors/hyrax/actors/file_actor.rb +4 -2
  11. data/app/actors/hyrax/actors/file_set_actor.rb +8 -6
  12. data/app/controllers/concerns/hyrax/works_controller_behavior.rb +16 -5
  13. data/app/forms/hyrax/forms/resource_form.rb +15 -0
  14. data/app/helpers/hyrax/hyrax_helper_behavior.rb +8 -0
  15. data/app/indexers/hyrax/valkyrie_file_set_indexer.rb +116 -0
  16. data/app/indexers/hyrax/valkyrie_indexer.rb +6 -1
  17. data/app/indexers/hyrax/valkyrie_work_indexer.rb +2 -0
  18. data/app/jobs/embargo_expiry_job.rb +7 -5
  19. data/app/jobs/file_set_attached_event_job.rb +6 -1
  20. data/app/jobs/lease_expiry_job.rb +6 -4
  21. data/app/models/concerns/hyrax/ability.rb +11 -0
  22. data/app/models/concerns/hyrax/solr_document_behavior.rb +7 -1
  23. data/app/models/hyrax/file_set.rb +1 -0
  24. data/app/models/hyrax/work.rb +2 -0
  25. data/app/models/job_io_wrapper.rb +1 -1
  26. data/app/services/hyrax/access_control_list.rb +1 -1
  27. data/app/services/hyrax/adapters/nesting_index_adapter.rb +1 -1
  28. data/app/services/hyrax/embargo_manager.rb +1 -1
  29. data/app/services/hyrax/graph_exporter.rb +1 -1
  30. data/app/services/hyrax/listeners/metadata_index_listener.rb +18 -1
  31. data/app/services/hyrax/versioning_service.rb +1 -1
  32. data/app/services/hyrax/work_uploads_handler.rb +5 -2
  33. data/app/views/hyrax/admin/admin_sets/_show_document_list_row.html.erb +1 -1
  34. data/app/views/hyrax/base/_form_share.html.erb +1 -5
  35. data/app/views/hyrax/base/_workflow_actions.html.erb +1 -1
  36. data/app/views/hyrax/batch_edits/edit.html.erb +2 -2
  37. data/app/views/hyrax/collections/_list_collections.html.erb +1 -1
  38. data/app/views/hyrax/collections/_search_form.html.erb +1 -1
  39. data/app/views/hyrax/stats/file.html.erb +1 -1
  40. data/app/views/hyrax/stats/work.html.erb +1 -1
  41. data/app/views/hyrax/uploads/_js_templates.html.erb +4 -4
  42. data/app/views/hyrax/uploads/_js_templates_versioning.html.erb +4 -4
  43. data/app/views/hyrax/users/_contributions.html.erb +1 -1
  44. data/app/views/hyrax/users/_profile_tabs.html.erb +2 -2
  45. data/app/views/hyrax/users/_search_form.html.erb +1 -1
  46. data/app/views/hyrax/users/_user.html.erb +1 -1
  47. data/app/views/hyrax/users/_user_info.html.erb +9 -9
  48. data/bin/db-migrate-seed.sh +3 -1
  49. data/bin/solrcloud-assign-configset.sh +27 -0
  50. data/bin/solrcloud-upload-configset.sh +31 -0
  51. data/chart/hyrax/Chart.yaml +8 -8
  52. data/chart/hyrax/README.md +42 -6
  53. data/chart/hyrax/templates/NOTES.txt +1 -1
  54. data/chart/hyrax/templates/_helpers.tpl +76 -0
  55. data/chart/hyrax/templates/configmap-env.yaml +10 -11
  56. data/chart/hyrax/templates/cron-embargo.yaml +24 -0
  57. data/chart/hyrax/templates/cron-lease.yaml +24 -0
  58. data/chart/hyrax/templates/deployment.yaml +36 -4
  59. data/chart/hyrax/templates/secrets.yaml +3 -2
  60. data/chart/hyrax/values.yaml +72 -1
  61. data/config/initializers/listeners.rb +2 -0
  62. data/documentation/developing-your-hyrax-based-app.md +3 -3
  63. data/lib/hyrax/transactions/container.rb +11 -1
  64. data/lib/hyrax/transactions/steps/delete_resource.rb +38 -0
  65. data/lib/hyrax/transactions/steps/destroy_work.rb +1 -0
  66. data/lib/hyrax/transactions/work_destroy.rb +20 -0
  67. data/lib/hyrax/version.rb +1 -1
  68. data/lib/tasks/embargo_lease.rake +27 -0
  69. data/lib/wings/active_fedora_converter/default_work.rb +4 -0
  70. data/lib/wings/attribute_transformer.rb +29 -19
  71. data/lib/wings/model_transformer.rb +4 -19
  72. data/lib/wings/orm_converter.rb +24 -21
  73. data/lib/wings/valkyrie/persister.rb +1 -0
  74. data/lib/wings/valkyrie/query_service.rb +36 -24
  75. data/template.rb +1 -1
  76. metadata +14 -20
  77. data/chart/fcrepo/.gitignore +0 -2
  78. data/chart/fcrepo/.helmignore +0 -23
  79. data/chart/fcrepo/Chart.yaml +0 -11
  80. data/chart/fcrepo/README.md +0 -50
  81. data/chart/fcrepo/templates/NOTES.txt +0 -21
  82. data/chart/fcrepo/templates/_helpers.tpl +0 -68
  83. data/chart/fcrepo/templates/configmap-env.yaml +0 -19
  84. data/chart/fcrepo/templates/deployment.yaml +0 -109
  85. data/chart/fcrepo/templates/ingress.yaml +0 -41
  86. data/chart/fcrepo/templates/pvc.yaml +0 -20
  87. data/chart/fcrepo/templates/secret.yaml +0 -12
  88. data/chart/fcrepo/templates/service.yaml +0 -15
  89. data/chart/fcrepo/templates/serviceaccount.yaml +0 -12
  90. data/chart/fcrepo/templates/tests/test-connection.yaml +0 -15
  91. data/chart/fcrepo/values.yaml +0 -79
  92. data/chart/hyrax/templates/fcrepo-secret.yaml +0 -13
@@ -1,20 +0,0 @@
1
- ---
2
- kind: PersistentVolumeClaim
3
- apiVersion: v1
4
- metadata:
5
- name: {{ template "fcrepo.fullname" . }}
6
- labels:
7
- app: {{ template "fcrepo.name" . }}
8
- chart: {{ template "fcrepo.chart" . }}
9
- release: {{ .Release.Name }}
10
- heritage: {{ .Release.Service }}
11
- component: fcrepo
12
- spec:
13
- accessModes:
14
- - ReadWriteOnce
15
- resources:
16
- requests:
17
- storage: {{ default .Values.storage.size "1Gi" }}
18
- {{- if .Values.storage.className }}
19
- storageClassName: "{{ .Values.storage.ClassName }}"
20
- {{- end }}
@@ -1,12 +0,0 @@
1
- {{- if .Values.postgresql.enabled }}
2
- apiVersion: v1
3
- kind: Secret
4
- metadata:
5
- name: {{ include "fcrepo.fullname" . }}
6
- labels:
7
- {{ include "fcrepo.labels" . | indent 4 }}
8
- type: Opaque
9
- data:
10
- DATABASE_PASSWORD: {{ .Values.postgresql.postgresqlPassword | b64enc }}
11
- JAVA_OPTS: {{ printf "-Dfcrepo.modeshape.configuration=\"classpath:/config/jdbc-postgresql/repository.json\" -Dfcrepo.postgresql.host=\"%s\" -Dfcrepo.postgresql.username=\"%s\" -Dfcrepo.postgresql.password=\"%s\" -Dfcrepo.object.directory=\"/data/objects\" -Dfcrepo.binary.directory=\"/data/binaries\"" ( include "fcrepo.postgresql.fullname" . ) .Values.postgresql.postgresqlUsername .Values.postgresql.postgresqlPassword | b64enc }}
12
- {{- end }}
@@ -1,15 +0,0 @@
1
- apiVersion: v1
2
- kind: Service
3
- metadata:
4
- name: {{ include "fcrepo.fullname" . }}
5
- labels:
6
- {{- include "fcrepo.labels" . | nindent 4 }}
7
- spec:
8
- type: {{ .Values.service.type }}
9
- ports:
10
- - port: {{ .Values.servicePort | default .Values.service.port }}
11
- targetPort: http
12
- protocol: TCP
13
- name: http
14
- selector:
15
- {{- include "fcrepo.selectorLabels" . | nindent 4 }}
@@ -1,12 +0,0 @@
1
- {{- if .Values.serviceAccount.create -}}
2
- apiVersion: v1
3
- kind: ServiceAccount
4
- metadata:
5
- name: {{ include "fcrepo.serviceAccountName" . }}
6
- labels:
7
- {{- include "fcrepo.labels" . | nindent 4 }}
8
- {{- with .Values.serviceAccount.annotations }}
9
- annotations:
10
- {{- toYaml . | nindent 4 }}
11
- {{- end }}
12
- {{- end }}
@@ -1,15 +0,0 @@
1
- apiVersion: v1
2
- kind: Pod
3
- metadata:
4
- name: "{{ include "fcrepo.fullname" . }}-test-connection"
5
- labels:
6
- {{- include "fcrepo.labels" . | nindent 4 }}
7
- annotations:
8
- "helm.sh/hook": test-success
9
- spec:
10
- containers:
11
- - name: wget
12
- image: busybox
13
- command: ['wget']
14
- args: ['{{ include "fcrepo.fullname" . }}:{{ .Values.service.port }}']
15
- restartPolicy: Never
@@ -1,79 +0,0 @@
1
- # Default values for fcrepo.
2
- # This is a YAML-formatted file.
3
- # Declare variables to be passed into your templates.
4
-
5
- replicaCount: 1
6
-
7
- storage: {}
8
-
9
- image:
10
- repository: ualbertalib/docker-fcrepo4
11
- pullPolicy: IfNotPresent
12
- tag: ""
13
-
14
- fcrepoSecretName: ""
15
-
16
- imagePullSecrets: []
17
- nameOverride: ""
18
- fullnameOverride: ""
19
-
20
- serviceAccount:
21
- # Specifies whether a service account should be created
22
- create: true
23
- # Annotations to add to the service account
24
- annotations: {}
25
- # The name of the service account to use.
26
- # If not set and create is true, a name is generated using the fullname template
27
- name: ""
28
-
29
- healthCheck: {}
30
-
31
- podAnnotations: {}
32
-
33
- podSecurityContext: {}
34
- # fsGroup: 2000
35
-
36
- securityContext: {}
37
- # capabilities:
38
- # drop:
39
- # - ALL
40
- # readOnlyRootFilesystem: true
41
- # runAsNonRoot: true
42
- # runAsUser: 1000
43
-
44
- servicePort: 8080
45
-
46
- service:
47
- type: ClusterIP
48
- port: 8080
49
-
50
- ingress:
51
- enabled: false
52
- annotations: {}
53
- # kubernetes.io/ingress.class: nginx
54
- # kubernetes.io/tls-acme: "true"
55
- hosts:
56
- - host: fcrepo.local
57
- paths: ['/']
58
- tls: []
59
- # - secretName: fcrepo-tls
60
- # hosts:
61
- # - chart-example.local
62
-
63
- postgresql:
64
- enabled: true
65
- image:
66
- repository: bitnami/postgresql
67
- tag: 12.3.0
68
- postgresqlUsername: fcrepo
69
- postgresqlPassword: fcrepo_pass
70
- postgresqlDatabase: fcrepo
71
- servicePort: 5432
72
-
73
- resources: {}
74
-
75
- nodeSelector: {}
76
-
77
- tolerations: []
78
-
79
- affinity: {}
@@ -1,13 +0,0 @@
1
- {{- if .Values.fcrepo.enabled }}
2
- apiVersion: v1
3
- kind: Secret
4
- metadata:
5
- name: {{ include "hyrax.fcrepo.fullname" . }}
6
- labels:
7
- {{ include "hyrax.labels" . | indent 4 }}
8
- type: Opaque
9
- data:
10
- DATABASE_PASSWORD: {{ .Values.postgresql.postgresqlPassword | b64enc }}
11
- DATABASE_HOST: {{ include "fcrepo.postgresql.fullname" . | b64enc }}
12
- JAVA_OPTS: {{ printf "-Dfcrepo.modeshape.configuration=\"classpath:/config/jdbc-postgresql/repository.json\" -Dfcrepo.postgresql.host=\"%s\" -Dfcrepo.postgresql.username=\"%s\" -Dfcrepo.postgresql.password=\"%s\" -Dfcrepo.object.directory=\"/data/objects\" -Dfcrepo.binary.directory=\"/data/binaries\"" ( include "fcrepo.postgresql.fullname" . ) .Values.postgresql.postgresqlUsername .Values.postgresql.postgresqlPassword | b64enc }}
13
- {{- end }}