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

Submitting a report with attachments throws a discard edits message #847

Open
skrishn opened this issue Sep 9, 2024 · 7 comments
Open
Assignees
Labels
1-BUG Something isn't working Reporter 4.x Crowdsource Reporter (new)
Milestone

Comments

@skrishn
Copy link
Collaborator

skrishn commented Sep 9, 2024

In production, when I add a report, and attach a file, it takes me back to the form and before submitting the report, it shows discard edits message. I have to click the continue editing button or hit submit to submit the report.

https://localdeployment.maps.arcgis.com/apps/instant/reporter/index.html?appid=fdd05d8357264042a43973f44e8a61e1

image

Attach issue

In dev, it shows the message on form load. I've started to see this today only. https://localgovdev.mapsdevext.arcgis.com/home/item.html?id=884338be7e9e4e31bca9f58d31da4663

@skrishn skrishn added 1-BUG Something isn't working Reporter 4.x Crowdsource Reporter (new) labels Sep 9, 2024
@skrishn skrishn added this to the 2024.R03 milestone Sep 9, 2024
@skrishn
Copy link
Collaborator Author

skrishn commented Sep 10, 2024

@sumitzarkar This is noticed in Enterprise 11.4 too.@

@skrishn
Copy link
Collaborator Author

skrishn commented Sep 10, 2024

In devext, I see this message when providing an address to add a feature. Not noticed in production.

image

@sumitzarkar
Copy link
Collaborator

@skrishn

This is from the editor widget JS API, We have not made any changes to this, could you please check with JS api team if any chnages in this functionality and do we need to handel it in our code seperately

@skrishn
Copy link
Collaborator Author

skrishn commented Sep 11, 2024

@sumitzarkar I can check with them. The first case is happening on production but it's not reproducible when adding a feature in map viewer. I wonder if this still be an editor widget issue. This behavior is already been there in production but we didn't notice it. The locator issue is noticed only in devext.

@sumitzarkar
Copy link
Collaborator

@skrishn

THe discrd message is shown from the editor widget, we don't have any control on it, this could be due to changes in JS API. Please check this with API team

@jmhauck
Copy link
Collaborator

jmhauck commented Sep 18, 2024

this._editor.viewModel.featureTemplatesViewModel.state changes more frequently at 4.31 than it used to. This was causing startCreate to be fired more than necessary.

@skrishn
Copy link
Collaborator Author

skrishn commented Sep 19, 2024

@jmhauck Looks good in devext. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1-BUG Something isn't working Reporter 4.x Crowdsource Reporter (new)
Projects
None yet
Development

No branches or pull requests

3 participants