Closed german1608 closed 4 years ago
Apologies for not getting back on this earlier. I only just saw the issue. To publish any datasets on HDX requires that a user be supplied by way of the hdx key.
To avoid writing to prod, you can either default to stage as you have done in your code and then have the option to override for the real prod runs - so your developers only write to stage. If you don't want them to write datasets at all, my advice would be to make the default that there is no publishing to HDX - that's the version other developers would use - and then for prod runs, have configuration to override the default to allow publishing.
For example, if no HDX key is supplied in configuration, you could set hdx_read_only=True (assuming your developers need to read but not write to HDX) and disable the part of your code that publishes datasets.
Thanks for your answers. Is there a way to create users in stage?
Hi @german1608, I tried contacting you directly by email on this.
@mcarans Thanks for your help. I solved the issue using hdx_site='feature'
, as you suggested via email. I'll close this issue then
I'm integrating HDX to an application to publish datasets regularly, but I'd like to avoid pushing datasets to
prod
site when other developers work on their local machines.Is it possible? I tried with the following script:
but that give me the following error: