fixed Identify Items That Use Insecure URLs sample notebook #1821
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
resolves #9781
Note:
this notebook scans the whole organization and identifies items that use insecure URLs,
some of the output had to be edited because some items are not working - for example -
gis.content.get('88282a83d8b445b89a5225039c65616a')
the user who will consume the sample notebook can log in to their AGOL and Enterprise organization and if all the items in their organization are good, then they'll not face any errors running this sample notebook
Testing instructions:
Step 1: In the
get_items_to_check()
method definition please put max_items=2Step 2: In the
main()
method definition please replace the following statement:for item in get_items_to_check():
withitem1 = gis.content.get('bc6a732940e84e67a07b4dc299e0f5cf')
item2 = gis.content.get('8ace59c5a8be401bbddaccfae0a39305')
item_array = [item1, item2]
for item in item_array:
Please don't run the
Post Processing
section since that output has been created and edited and will only work if all items in the organization are good and running finePlease add comments if you face issues