Closed dfoll closed 6 years ago
@adgiles This is the issue that came up at the end of scrum today (yesterday as you read this). I've been testing this and trying to play with it, but it's always being interrupted by other tasks. Honestly I feel like this needs more research, but am hoping this will at least give you something to look at if you want to start looking into. I can't really tell what's going on, if it's the browser holding on to credentials, or something the app is wanting to do because the instance of WAB the app is being created from is registered to my account. Of course I'd be more than happy to show this to you in person tomorrow after planning if you can't make any sense of what I'm saying, or can't reproduce
@dfoll. The code was not handling any errors being returned due to incorrect credentials or user permissions, and was probably overlooked during testing so I recommend the check list is updated.
I have addressed these in this PR: https://github.com/Esri/solutions-grg-widget/pull/174
Recreating steps above:
I have used my online developer account credentials:
You are now informed you do not have access:
Layer successfully published:
Used my own account in the org
layer now published to correct account
Check list tests need updating to test different accounts:
Valid accounts that are not part of the org Valid accounts that are in the org but are only viewers
[x] publish to portal button works properly
[x] enter credentials for a valid org user with proper permissions - item is created in user content
[x] enter credentials for a valid org user without permission to create content (viewer) - item is not created, error message displayed
[x] enter credentials for a user that is not a valid org user (unlinked arcgis.com account) - item is not created, error message is displayed
[x] enter credentials for a valid org user with proper permissions - item is created in user content (this step is duplicated as a secondary check that no credentials are being held onto)
I have tested this issue and verified it fixed, also updated the checklist test. Someone can verify the checklist test is desired.... the above issue was copied directly from what i updated the checklist test with. Leaving open for someone to verify the checklist test. I have more development comments on #172 for @adgiles because the two issues were so closely related.
Closing. Issue was verified as fixed by @dfoll who ran through the checklist test.
Repo Steps or Enhancement details