cocina-models 0.84.3 → 0.84.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aab0f71139e7186ac04a7f2132ae54dc4c90986fa8a5d96d1b827469502df1a1
4
- data.tar.gz: dc0014735d2b42cf8031540677aa64a8a8fb975a20b5e7e3c895a699a2ec6c49
3
+ metadata.gz: ec3a00a348ca9a851ee3455b7b0208628ca9590556ad76b0f536c4da3e1b6079
4
+ data.tar.gz: 156105d8055745c353db2690e2c39b72a043243272fddc72fb80e5e9a42b81c4
5
5
  SHA512:
6
- metadata.gz: b6aec7701fad871d5d10403ef0af0fa6b786f4ec97f01f3bd5021943e34071c4c253a5569f129cdc804556180cbbf19f862bc8edad5842abf1bad4b9f9c9b2c3
7
- data.tar.gz: d8584408d94f5698c1c55e2477583c95079c20447e59f5a6361a481a71c8ae9d2cee475002a5ca3ee2eb4532e75afcb01a94a87500b85618a34072e273151b57
6
+ metadata.gz: ff595ddde9a4729ed1e77239d78b7d1729798708bb44a407a6019d98943b50d8f14a3ad12fa06f17085294d499a32b82ece50f7ca6f23a30ce857bcd12a2de87
7
+ data.tar.gz: 3bdb368b93e0ba0fc8f865cbb2888045589c2169af810f3380f18e2c8511fafea30fc088980a4503f6f0405a1b60daf575c1df07ac7463830058e9517827d97a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cocina-models (0.84.3)
4
+ cocina-models (0.84.4)
5
5
  activesupport
6
6
  deprecation
7
7
  dry-struct (~> 1.0)
data/README.md CHANGED
@@ -87,6 +87,38 @@ RAILS_ENV=production bin/validate-cocina -p 8
87
87
  ```
88
88
  5. Check `validate-cocina.csv` for validation errors.
89
89
 
90
+ ## Running Reports in DSA
91
+
92
+ Custom reports stored in dor-services-app can be run similarly to validation testing described above.
93
+
94
+ 1. Go the sdr-infra box:
95
+
96
+ ```
97
+ ssh deploy@sdr-infra
98
+ ```
99
+
100
+ 2. Go to the dor-services-app directory and reset to main if needed (verify nobody else is using this first though):
101
+
102
+ ```
103
+ cd dor-services-app
104
+ git status # see if there are any unsaved changes, if so, you may need to git stash them
105
+ git pull # OR git reset --hard main to just ditch any local unsaved changes
106
+ ```
107
+
108
+ 3. Connect to the desired database by setting the environment variables as described in the section above. This must be done each time you SSH back into the box to run a new report.
109
+
110
+ 4. Run the report (good idea to do it in a screen or via background process in case you get disconnected):
111
+
112
+ ```
113
+ bundle exec bin/rails r -e production "BadIso8601Dates.report" > BadIso8601Dates.csv
114
+ ```
115
+
116
+ 5. When done, you can pull the report to your laptop as needed:
117
+
118
+ ```
119
+ scp deploy@sdr-infra:/opt/app/deploy/dor-services-app/BadIso8601Dates.csv BadIso8601Dates.csv
120
+ ```
121
+
90
122
  ## Releasing
91
123
 
92
124
  ### Step 0: Share intent to change the models
@@ -76,7 +76,8 @@ module Cocina
76
76
  #
77
77
  # So we catch the false positives from the upstream gem and allow
78
78
  # this pattern to validate
79
- /\AY-?\d{5,}\Z/.match?(value)
79
+ /\AY-?\d{5,}\Z/.match?(value) ||
80
+ /\A-?\d{1,3}\Z/.match?(value) # temporarily allow format violations
80
81
  end
81
82
 
82
83
  def valid_iso8601?(value)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Cocina
4
4
  module Models
5
- VERSION = '0.84.3'
5
+ VERSION = '0.84.4'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocina-models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.84.3
4
+ version: 0.84.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne