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

Fixes #2291 If a map save fails, user is not warned #2505

Merged
merged 3 commits into from
Jan 17, 2018

Conversation

allyoucanmap
Copy link
Contributor

@allyoucanmap allyoucanmap commented Jan 10, 2018

Description

Added feedback messages on save and save as.

success save

Recognized errors: 403 - 404 - 409 - 500
error save

Issues

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Bugfix

What is the current behavior? (You can also link to an open issue here)
issue #2291

What is the new behavior?
Notifications feedback will be shown after saving

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...

Other information:
Merge after #2495 Added details to Map because of conflict with success notification

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 80.875% when pulling b408315 on allyoucanmap:map-fails-save into c32261b on geosolutions-it:master.

@@ -51,6 +51,27 @@ const DATE_FORMATS = {
"it-IT": "dd/MM/yyyy",
"nl-NL": "dd/MM/yyyy"
};

const errorParser = {
geostore: {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would register this handler in the GeoStoreAPI code, and put here a function to register the parsers

@ghost ghost added the review label Jan 12, 2018
@geosolutions-it geosolutions-it deleted a comment Jan 12, 2018
@MV88 MV88 mentioned this pull request Jan 12, 2018
5 tasks
@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 81.01% when pulling 63dcfbf on allyoucanmap:map-fails-save into c32261b on geosolutions-it:master.

@@ -51,6 +51,18 @@ const DATE_FORMATS = {
"it-IT": "dd/MM/yyyy",
"nl-NL": "dd/MM/yyyy"
};

const servicesErrorParser = {
geostore: require('../api/GeoStoreDAO').errorParser
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we do the opposite?

  • registerParser = (type, parser) => {} in LocaleUtils
  • registerParser('geostore', parser) in GeoStoreDAO

@tdipisa tdipisa removed the review label Jan 16, 2018
@geosolutions-it geosolutions-it deleted a comment Jan 16, 2018
@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 81.011% when pulling 9789063 on allyoucanmap:map-fails-save into c32261b on geosolutions-it:master.

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.

If a map save fails, user is not warned
6 participants