Skip to content
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

Resources uploaded _after_ starting reordering never appear in the dataset admin #2674

Open
thom4parisot opened this issue Oct 28, 2021 · 0 comments

Comments

@thom4parisot
Copy link
Contributor

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.

image

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant