Skip to content

script to clear pythonapi playground#401

Merged
AtmaMani merged 5 commits into
masterfrom
chun7642/cleanup_pythonapi_script
Mar 29, 2019
Merged

script to clear pythonapi playground#401
AtmaMani merged 5 commits into
masterfrom
chun7642/cleanup_pythonapi_script

Conversation

@CMPeng
Copy link
Copy Markdown
Contributor

@CMPeng CMPeng commented Mar 26, 2019

https://github.com/ArcGIS/geosaurus/issues/1817
The script deletes
(a) user groups and items, and then the user itself
(b) only groups and items

Tested against pythonapi playground, and has deleted all services for arcgis_python.

  1. Using the username and password for GIS initialization; profile option is in comments.
  2. If run locally, please change
    from misc._common import *
    to
    from _common import *
    Current setting is for remote runs.

@CMPeng CMPeng requested a review from AtmaMani March 26, 2019 21:54
@CMPeng
Copy link
Copy Markdown
Contributor Author

CMPeng commented Mar 27, 2019

@AtmaMani can you please review the change? Thanks!
Modified to be using temp_execution/temp_execution123

Comment thread misc/_common.py Outdated
Comment thread misc/_common.py Outdated
Comment thread misc/_common.py
@CMPeng
Copy link
Copy Markdown
Contributor Author

CMPeng commented Mar 28, 2019

@AtmaMani
Can you please review the changes again?
This time with home page in place of item id, and three unnecessary condition checks removed.

@CMPeng CMPeng requested a review from AtmaMani March 28, 2019 21:06
Comment thread misc/_common.py Outdated
Comment thread misc/_common.py
Comment thread misc/_common.py
Comment thread misc/_common.py Outdated
@CMPeng CMPeng requested a review from AtmaMani March 29, 2019 20:48
@CMPeng
Copy link
Copy Markdown
Contributor Author

CMPeng commented Mar 29, 2019

Thanks @AtmaMani
The recursive method is having problems - that is fixed.
and three others changed as you suggested.
Can you please check again? :)

@AtmaMani AtmaMani merged commit 85f0a5b into master Mar 29, 2019
@AtmaMani
Copy link
Copy Markdown
Contributor

thank you @CMPeng

@CMPeng CMPeng deleted the chun7642/cleanup_pythonapi_script branch November 18, 2019 23:30
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

Successfully merging this pull request may close these issues.

2 participants