ioda-net / geo-front3

frontend from geoadmin/mf-geoadmin3
Other
1 stars 0 forks source link

Webdav save #56

Open Jenselme opened 9 years ago

Jenselme commented 9 years ago

Enhancements

These are proposed enhancements. Feel free to comment them.

tigerfoot commented 9 years ago

Just some remarks :

Globally : The whole functionality should be optional (shown or not) and we also need to provide a global external webdav. This could be used by customer that host the geoportail on our infrastructure, but want to have the drawings save on their own webdav with a unique global login)

About 1) It will unclutter the interface if we can have a dedicated webdav dialog. This popup show once the choice of own webdav is made Propose the url endpoint, a file selector (if use the button is load), if a newfile name is choosed (button is create). Once every is ready, just close the popup. webdav endpoint, username, password, and probably last file used should be stored (clean button) and automatically restored.

As the sentences are too long I would like to propose something like 3 radio img No save = server icon X red crossed Server = server icon Own Server = server + personna Make all of them with a tooltips explaining the choice. By default a user has nothing to read and he ready to draw.

Jenselme commented 8 years ago

As a reminder, the functional tests associated with this:

Requirements: you must be able to connect to a webdav server with a username and a password. On this server you must have access to 2 KMLs and another file.

To perform these tests, you must be in drawing mode and select "Save automatically on custom server".

File load

  1. No url
    • Try to load a KML without a URL.
    • Result: a message asking for a URL must be displayed.
  2. Wrong file name
    • Enter the correct URL.
    • Enter your credentials
    • Specify a wrong file name.
    • Result: a message saying the file cannot be found must be displayed.
  3. Wrong credentials
    • Enter the correct URL.
    • Enter the correct filename.
    • Enter either the wrong username or the wrong password.
    • Result: a message saying that you are not authorized to load the KML must be displayed.
  4. Wrong file type
    • Enter the correct URL.
    • Enter the path to a non KML file
    • Enter the correct credentials
    • Result: an alert must open saying that this file is not a valid KML.
  5. Correct
    • Enter all fields correctly.
    • Result: the KML must be displayed.

File save

  1. Existing
    • Enter all fields correctly
    • Start drawing
    • Result: a prompt appears asking if you really want to override this file. If you confirm, the KML will be overridden, if you cancel it won't be saved.
  2. Creating
    • Enter all fields correctly
    • Enter the name of a new KML
    • Start drawing
    • Result: the KML must be created
  3. Changing name
    • Enter all fields correctly
    • Load an existing KML
    • Change the name of the KML to your other file
    • Draw
    • Result: a prompt appears asking if you really want to override this file. If you confirm, the KML will be overridden, if you cancel, it won't be saved.

File delete

  1. Features
    • Enter all fields correctly
    • Load a KML
    • Delete part of the drawing
    • Result: the KML must be updated
  2. File
    • Enter all fields correctly
    • Load a KML
    • Go More > Delete all features
    • Result: the KML must be deleted