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

Development for changes to LIBRS - JSON Specifications, API Validator: Source code for API endpoints, JSON model changes, and updates to docs.librs.org specifications ready for review in TEI test environment #17

Merged
merged 7 commits into from
Jul 30, 2024
23 changes: 23 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Deploy PR Previews
on:
push:
branches:
- master
pull_request:
types:
- opened
- synchronize
concurrency: preview-${{ github.ref }}
jobs:
deploy-preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Deploy PR Preview
uses: teisdbr/pr-preview-action@v1.4.7
with:
token: ${{ secrets.PR-Preview-Action }}
preview-branch: master
source-dir: .
umbrella-dir: pr-preview
action: auto
43 changes: 43 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: '.'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
8 changes: 4 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -199,22 +199,22 @@ GEM
rb-inotify (~> 0.9, >= 0.9.7)
ruby_dep (~> 1.2)
mercenary (0.3.6)
mini_portile2 (2.8.1)
mini_portile2 (2.8.7)
minima (2.5.0)
jekyll (~> 3.5)
jekyll-feed (~> 0.9)
jekyll-seo-tag (~> 2.1)
minitest (5.13.0)
multipart-post (2.1.1)
nokogiri (1.14.3)
mini_portile2 (~> 2.8.0)
nokogiri (1.15.6)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
octokit (4.14.0)
sawyer (~> 0.8.0, >= 0.5.3)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (3.1.1)
racc (1.6.2)
racc (1.8.0)
rb-fsevent (0.10.3)
rb-inotify (0.10.0)
ffi (~> 1.0)
Expand Down
2 changes: 1 addition & 1 deletion _data/data-element-defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2319,7 +2319,7 @@
}, {
"de_num": "52",
"name": "DISPOSITION OF ARRESTEE UNDER 18",
"definition": "Used only if the arrestee was 16 years of age or younger at the time of arrest.",
"definition": "Mandatory field for ANY Arrestee that is 17 years of age or younger. The Federal UCR program considers juveniles as under 18 years of age regardless of state law. The LIBRS program will stay aligned with the FBI and collect this field for arrestees 17 and younger even though this differs from the latest state Juvenile Age Definition.\n\nIf the arrestee is 17 and considered an adult in Louisiana after April 19, 2024, please use A – Referred to Criminal or Adult Court.",
"length": "1",
"format": "A",
"comment": "",
Expand Down
7 changes: 4 additions & 3 deletions _data/error.json
Original file line number Diff line number Diff line change
Expand Up @@ -1945,7 +1945,7 @@
"err_no": 16052,
"err_message": "DISPOSITION MUST BE ENTERED WHEN AGE IS 17 AND YOUNGER",
"err_desc": {
"52": "If Age of Arrestee (DE 47) is under 18 (17 and younger), then Disposition of Arrestee Under 18 (DE 52) must be entered.<br><br>Note: As of January 1st, 2020, all offenders under the age of 18 are considered juveniles."
"52": "If Age of Arrestee (DE 47) is under 18 (17 and younger), then Disposition of Arrestee Under 18 (DE 52) must be entered.<br><br>The Federal UCR program considers juveniles as under 18 years of age regardless of state law. The LIBRS program will stay aligned with the FBI even though the Juvenile Age definition has changed. If the arrestee is 17 and considered an adult in Louisiana after April 19, 2024, please use A – Referred to Criminal or Adult Court."
}
},
"16053": {
Expand Down Expand Up @@ -2393,9 +2393,10 @@
"22100": {
"active": "true",
"err_no": 22100,
"err_message": "AGE MUST BE '01' - '17' FOR JUVENILE OFFENSES",
"err_message": "AGE MUST BE '01' - '16' FOR JUVENILE OFFENSES",
"err_desc": {
"47": "When Juvenile Qualifiers are used, Age of Arrestee (DE 47) must be '01' thru '17' (this includes 17) for the following Juvenile Qualifiers:{::nomarkdown}<ul><li>(JU:RUN) Runaway Offense (90I)</li><li>(JU:UNG) Ungovernable (90C)</li><li>(JU:CUR) Curfew (90B)</li><li>(JU:TRU) Truancy (90Z)</li></ul>{:/}Note: As of January 1st, 2020, all offenders under the age of 18 are considered juveniles."
"47": "When Juvenile Qualifiers are used, Age of Arrestee (DE 47) must be '01' thru '16' (this includes 16) for the following Juvenile Qualifiers:{::nomarkdown}<ul><li>(JU:RUN) Runaway Offense (90I)</li><li>(JU:UNG) Ungovernable (90C)</li><li>(JU:CUR) Curfew (90B)</li><li>(JU:TRU) Truancy (90Z)</li></ul>{:/}The Louisiana Juvenile Age definition has changed over the years. LIBRS uses the age along with the incident date to validate the Juvenile Qualifiers according to the following rules:<ul><li>Prior to March 1, 2019, the Juvenile age is 16 and younger.</li><li>March 1, 2019 – April 18, 2024, the juvenile age is 17 and younger.</li><li>On or after April 19, 2024, the Juvenile age is 16 and younger.</li></ul>",
"37": "When Juvenile Qualifiers are used, Age of Offender [At Time of Incident] (37) must be ‘01’ thru ‘16’ (this includes 16) for the following Juvenile Qualifiers:{::nomarkdown}<ul><li>(JU:RUN) Runaway Offense (90I)</li><li>(JU:UNG) Ungovernable (90C)</li><li>(JU:CUR) Curfew (90B)</li><li>(JU:TRU) Truancy (90Z)</li></ul>{:/}The Louisiana Juvenile Age definition has changed over the years. LIBRS uses the age along with the incident date to validate the Juvenile Qualifiers according to the following rules:<ul><li>Prior to March 1, 2019, the Juvenile age is 16 and younger.</li><li>March 1, 2019 – April 18, 2024, the juvenile age is 17 and younger.</li><li>On or after April 19, 2024, the Juvenile age is 16 and younger.</li></ul>"
}
},
"22105": {
Expand Down
14 changes: 7 additions & 7 deletions data-element-values.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ title: LIBRS Data Element Available Values
layout: default
permalink: /data-element-values
---

# LIBRS Data Element Available Values
____

---

<table>
<thead>
Expand All @@ -32,7 +32,7 @@ ____
{% for values in subsection.values %}
<tr>
<td style="vertical-align: top; text-align: right; padding-left:0px; padding-right:0px; white-space: nowrap; min-width: 25px">{{values.code}}</td>
<td style="vertical-align: top; padding-left:0px; padding-right:0px;">&nbsp;-&nbsp;</td>
<td style="vertical-align: top; padding-left:0px; padding-right:0px;"> - </td>
<td style="vertical-align: top; padding-left:0px;">{{values.desc}}</td>
</tr>
{% endfor %}
Expand All @@ -46,13 +46,13 @@ ____
</tbody>
</table>

<br><br>
`<br><br>`

# Allowable Property Loss Types (DE 14) By NIBRS and Attemped/Completed

___
---

The following table outlines the values that are allowed to be used for data Element 14, Property Loss Type, when an Offense of a particular NIBRS Code is either Attempted or Completed.
The following table outlines the values that are allowed to be used for data Element 14, Property Loss Type, when an Offense of a particular NIBRS Code is either Attempted or Completed.

<table>
<thead>
Expand All @@ -79,4 +79,4 @@ The following table outlines the values that are allowed to be used for data Ele
</tr>
{% endfor %}
</tbody>
</table>
</table>
Loading
Loading