Date: 2021-07-16
Accepted
We are using the upstream ckan version of ckanext-spatial. They upgraded the extension to PY3; however, their harvester tests were removed. The waf harvester was not being encoded properly to support PY2 and PY3 so our tests were failing.
We decided to fix the bug and submit a PR upstream.
- Until the fix is merged upstream, the ckanext-geodatagov repo will be tracking a pinned version of ckanext-spatial fork which adds complexity.
- All of the customization of the GSA fork of ckanext-spatial is disregarded. The GSA fork was messy already.
Date: 2021-07-19
Accepted
We are using the upstream ckan version of ckanext-harvest. They upgraded the extension to PY3; however, there is a PY3-compatibility issue that causes our tests were failing.
We decided to fix the bug and submit a PR upstream.
- Until the fix is merged upstream, the ckanext-geodatagov repo will be tracking a pinned version of ckanext-spatial fork which adds complexity.
- All of the customization of the GSA fork of ckanext-spatial is disregarded. The GSA fork was messy already.
Date: 2021-06-21
Accepted
The Solr dev image that ckanext-datajson uses was incompatible with ckanext-geodatagov. There was a 'solrsearch issue' that popped up with no clear resolution.
Using the catalog.data.gov stopped solr from throwing exceptions.
- Consequences unknown.
- All of the ckanext repos shouldn't be using varying versions of solr/postgres/etc..
Date: 2021-06-24
Accepted
If all of the tables are not initialized, the 'reset_db' function attempts to delete all of the tables and reinitialize everything. Becaues geodatagov requires the postgis tables which has a complicated initialized, the ckan function doesn't support it's maintenance (the current code doesn't support it, it doesn't mean they can't or won't). This is the logic that breaks it. Either way, if reset_db() is called to early, the postgis tables will be deleted and will break the code. If reset_db() is called too late, the db can't initialize and the code breaks.
Implement two customizations.
- https://github.com/GSA/ckanext-geodatagov/pull/190/commits/627a8ad689d50b446527ea39ff4b9290203929a9
- https://github.com/GSA/ckanext-geodatagov/pull/190/commits/8e34ee0164ac1ce454d4c8944ee5fbc5d025b2ed
- Consequences unknown.
- If the commands called in the test_category_tags.py is called anywhere else, the tests fail.
- If the commands are repeated in multiple files, the tests fail.
- If any test needs to be run in isolation, the test_category_tags.py test needs to precede it, otherwise the independent test will fail..
Date: 2021-07-08
Accepted
There are a few libraries that either operate differently in py2 and py3 or have different support for py2 and py3 needed to use two separate version.
PY2:
- https://github.com/asl2/PyZ3950.git#egg=PyZ3950
- OWSLib == 0.8.6
- pyproj 1.9.6
- factory-boy==2.1.1
- werkzeug (no customization; it installed based on other dependencies)
PY3:
- https://github.com/danizen/PyZ3950.git#egg=PyZ3950
- OWSLib >= 0.18.0
- pyproj 2.6.1
- factory-boy==2.12.0
- https://github.com/nickumia-reisys/werkzeug@e1f6527604ab30e4b46b5430a5fb97e7a7055cd7#egg=werkzeug
The PY3 upgrade for ckanext-harvest and ckanext-spatial had small bugs that were submitted as PRs upstream, until they are accepted, the local change needs to be tracked.
- https://github.com/nickumia-reisys/ckanext-harvest.git@9d1f647d247c16b6c3acba26e321e9500cafb18c#egg=ckanext-harvest
- https://github.com/GSA/ckanext-spatial.git@93c430ffc36ba7e306652fd511efd0d1e7081381#egg=ckanext-spatial
See commit
- A lot of specificity
Date: 2021-07-16
Accepted
We don't have any customizations to the csw harvesting capability, so we no longer need to test our unique cases.
Remove tests.
- ckanext-spatial or ckanext-harvester are not testing csw harvesting, so there are missing tests overall.
Date: 2021-07-19
Unreviewed
The CKAN test suite no longer supports forms in web pages; so custom parsing needs to be done to extract form options and data. The new tests leverage this. The CKAN test suite changed the return type of the test app from 2.8 to 2.9.
Write custom test functions.
- ckanext-spatial or ckanext-harvester are not testing csw harvesting, so there are missing tests overall.
Date: 2022-12-12
Unreviewed
The test was trying to create a harvest source with a post request to /harvest/new
; however, we suspect something in ckanext-harvest changed and broke this functionality. Since we are doing harvest tests in catalog.data.gov, we thought it was acceptable to remove this test altogether.
Remove test
- Less tests?