Resources uploaded _after_ starting reordering never appear in the dataset admin
thom4parisot opened this issue · comments
Detailed Description
I'm using 2 apps:
- a terminal, with curl, to upload resources to a dataset
- my web browser to edit the resources of a dataset
My terminal command is basically:
for REGION in {02,03,04,06,11,24,27,28,32,76,84,93}; do curl -F "file=@exports/rpg-bio-2020-r${REGION}.geojson.gz" -H 'Accept: application/json' -H "X-Api-Key: $DATA_GOUV_API_KEY" 'https://www.data.gouv.fr/api/1/datasets/616d6531c2951bbe8bd97771/upload/'; done
I pressed the "Sort" button in the admin when I was uploading region 32. I took my time to sort the items. And save the reordered resources.
By the time I finished sorting the elements, 76, 84 and 93 got uploaded. But after refreshing the page, they did not appear. Ever. I had to reupload the elements to see them in the dataset resources list in the admin.
Context
When I sort resources in the dataset admin , I want to see newly created resources after the sort , so I do not have to reupload them ("data loss") .
Your Environment
- Browser Name and version: Firefox 93, iTerm 2
- Operating System and version (desktop or mobile): macOS 11