-
Notifications
You must be signed in to change notification settings - Fork 2
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
Empty items related columns in parent table #67
Comments
@yolile What specifically is incorrect? I think we have the logic that if there are <=5 items in a sub-array, then they are by default "rolled up" into the parent table. |
Yes, but in this case, we have more than 5 items, so the tender_items table is created (correctly) but also all the items related columns are in the parent table (with empty values, incorrectly) |
@sorenabell is this deployed and fixed in the web interface too? |
@sorenabell: @yolile tested and this seems to have been fixed in the CLI, but not yet deployed to the web? |
Yes, let us test it a little bit more. |
@yolile @jpmckinney This issue has been fixed in both CLI and web. |
Great :) So we can close the issue? @yolile can also test again. |
I tested it again with the attached file and indeed, the problem is fixed for the parent arrays, however, there are some arrays at the item level that appear in both, the parent table (with empty values) and also as a separate table. See, for example "items/attributes":
files: |
@yolile a new version of the library has been released that fixes this issue. |
Hmm not sure if I'm doing something wrong, but I tried with this file again https://github.com/open-contracting/spoonbill/files/6858821/394282-adquisicion-cubiertas-maquinarias-vehiculos-utilitarios-annp-1-1621414358.txt and everything looks fine but the tender items. The resulted excel file has only 1 tender item, but the original JSON has 16, and the extra columns are still there in the tender sheet. |
@yolile I'm not sure I follow.
Yes, the only thing I notice in the attached Excel file is that |
Oh you are right, sorry, I had too many open Excel files and I was probably looking at the incorrect one when I wrote that. You are right, there are 16 items in the excel file, correctly. However, the |
Hmm, are you sure you are testing your file on ocp12.open-contracting.org? I don't have any empty columns anywhere when I tested. |
Yes: test.mp4(And I reproduced the issue about having only 1 item now) But if everything is working well for you, then maybe for some reason the problem is just for me and we can close this issue) |
Aha, at 0:50, I checked "Split arrays into separate tables", in which case everything is fine. @sabahfromlondon What should be the default state of that toggle? @yolile I'm able to reproduce empty columns on both the |
command: spoonbill data/394282-adquisicion-cubiertas-maquinarias-vehiculos-utilitarios-annp-1-1621414358.json
file: https://contrataciones.gov.py/datos/api/v3/doc/ocds/record/ocds-03ad3f-394288-1
output:
(this may be happening with all the arrays not only items)
The text was updated successfully, but these errors were encountered: