indigo
indigo copied to clipboard
Indigo Platform for publishing beautiful legislation.
fixes https://github.com/laws-africa/indigo/issues/2101 these are common when extracting citations from PDF text.
It looks like it breaks provision matching, at least: ``` >>> m.call_citator({"frbr_uri": doc.expression_uri().expression_uri(), "format": "text", "body": "for purposes of section 47(1)(e)\nof the Constitution and is", "citations": []}) {'citations': [{'href': '/akn/za/act/1996/constitution',...
https://github.com/viewflow/viewflow/wiki/django%E2%80%90fsm-to-viewflow.fsm-Migration-Guide https://github.com/viewflow/django-fsm https://docs.viewflow.io/fsm/index.html
Sentry Issue: [INDIGO-LAWSAFRICA-1NQ](https://lawsafrica.sentry.io/issues/5242326886/?referrer=github_integration) ``` UniqueViolation: duplicate key value violates unique constraint "indigo_api_commencement_commenced_work_id_commen_1e6073eb_uniq" DETAIL: Key (commenced_work_id, commencing_work_id, date)=(23986, 23987, 2009-04-30) already exists. File "django/db/backends/utils.py", line 84, in _execute return self.cursor.execute(sql, params)...
See e.g. https://edit.laws.africa/works/akn/za/act/1936/24/ `Apply the amendments made by Farmers' Assistance Amendment Act, 1960 (Act 16 of 1960) on 1960-04-01.` 
Sentry Issue: [INDIGO-LAWSAFRICA-1HJ](https://lawsafrica.sentry.io/issues/5045589689/?referrer=github_integration) ``` NotSupportedError: CustomElementRegistry.define: 'la-akoma-ntoso' has already been defined as a custom element at None (webpack://indigo/./indigo_app/js/indigo.js?:19:16) at ./indigo_app/js/indigo.js (/static/javascript/indigo-app.8a86c7899905.js:63:1) at __webpack_require__ (/static/javascript/indigo-app.8a86c7899905.js:897:42) at None (webpack://indigo/./indigo_app/js/main.js?:2:84) at ./indigo_app/js/main.js (/static/javascript/indigo-app.8a86c7899905.js:74:1)...
Sentry Issue: [INDIGO-LAWSAFRICA-1G8](https://lawsafrica.sentry.io/issues/5005998955/?referrer=github_integration) ``` KeyError: 'amended_work' (6 additional frame(s) were not displayed) ... File "indigo_app/views/base.py", line 78, in dispatch return super().dispatch(request, *args, **kwargs) File "indigo_app/views/base.py", line 55, in dispatch return...
eg. in terms of s 29 of the National Prosecuting Authority Act 32 of 1998.