You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.
When parsing 37 CFR 42 and core configured to use elastic search, every PUT to a notice URI fails the same way. Here are some snippets that don't make it to the console but provide a great deal of context, pulled from local variables in paused client.py post-exception:
Can't merge a non object mapping [amendments.changes] with an object mapping [amendments.changes]` [{'reason': '[YW_wNku][127.0.0.1:9300][indices:data/write/index[p]]', 'type': 'remote_transport_exception'}] '[YW_wNku][127.0.0.1:9300][indices:data/write/index[p]]'
As the request is made, regulations-core/regcore/db/es.py line 115 local variable notice has the following under the amendments key (ie. notice[‘amendments’]):
[
{'authority': '35 U.S.C. 2(b)(2).', 'instruction': '1. The authority citation for 37 CFR part 1 continues to read as follows:', 'cfr_part': '1'},
{'changes': [['1-301', [{'action': 'DELETE'}]]], 'instruction': '2. Section 1.301 is removed and reserved.', 'cfr_part': '1'},
{'changes': [['1-302', [{'action': 'DELETE'}]]], 'instruction': '3. Section 1.302 is removed and reserved.', 'cfr_part': '1'},
{'changes': [['1-303', [{'action': 'DELETE'}]]], 'instruction': '4. Section 1.303 is removed and reserved.', 'cfr_part': '1'},
{'changes': [['1-304', [{'action': 'DELETE'}]]], 'instruction': '5. Section 1.304 is removed and reserved.', 'cfr_part': '1'},
{'instruction': '6. Part 42 is added to read as follows:', 'cfr_part': '1'}, {'instruction': '7. Part 90 is added to read as follows:', 'cfr_part': '90'}
]
With the debugger paused immediately after this failure, I attempted to pull what we already have there. There is no record:
Hey again @eadamsatx. Sorry about that -- we don't have any active instances backed by Elastic, so we must have missed this when updating the Notice schema. I'd have to dig in more, but I'm betting the problem is that the amendments (a list) have different schemas (the first has an authority but no changes, for example). It probably makes sense to encode a single schema at parse time rather than tweaking these in the API.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When parsing 37 CFR 42 and core configured to use elastic search, every
PUT
to a notice URI fails the same way. Here are some snippets that don't make it to the console but provide a great deal of context, pulled from local variables in paused client.py post-exception:Can't merge a non object mapping [amendments.changes] with an object mapping [amendments.changes]` [{'reason': '[YW_wNku][127.0.0.1:9300][indices:data/write/index[p]]', 'type': 'remote_transport_exception'}] '[YW_wNku][127.0.0.1:9300][indices:data/write/index[p]]'
As the request is made,
regulations-core/regcore/db/es.py
line 115 local variablenotice
has the following under theamendments
key (ie. notice[‘amendments’]):With the debugger paused immediately after this failure, I attempted to pull what we already have there. There is no record:
And pulling the schema didn't give me any hints about the preferred structure of
amendments
.The text was updated successfully, but these errors were encountered: