-
Notifications
You must be signed in to change notification settings - Fork 382
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
#9250: Share plugin - Permalink functionality #9288
Conversation
can you update this pr with latest master, so It can pass the checks, thank you. |
* #9251_context_access: geosolutions-it#9287 Fix terser dependency (geosolutions-it#9290)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- see my comments inline
- Title can not be saved or searched. I see you make it work on cards too, and this is great, but for the moment the title functionality is not supported sufficiently for resources to make this title visible everywhere. So for the moment, as I asked, show the title input only if the title already exists as attribute (so only for the case of permalinks). After merging this PR, let's open a new issue to improve the title functionality.
title_not_saved.webm
Here the point of the issue telling this
- It could be a nice to have to have the title editor in save form too. IT should be shown for the moment only if it is present as attribute (also an empty string is ok for showing the editor, but if it is an empty string in the layer tree or where it is shown as a string,you should show the name isntead.
- I notice the controlLabel is not correct. "Via a direct link" . Please fix (use something like "Permalink generated", maybe a subtitle "share the resource using the generated address"
-[ ] The permalinks URL should contain the hash in the URL (name), instead here I see the ID.
Because of this inconsistency above, any futher test will not be valid because after refactoring I'd need to test all again. Generally the rest seems to work well (please double check the part of the session I commented inline).
- I noticed the share plugin to create permalink is not shown if the map is new ... It may be acceptable @tdipisa ?
The code is already present to show title from the resource on the card. Will make name take precedence on resources and hide input when title is not present |
@tdipisa we should be ready to go. Anyway our installation do not contain the PERMALINK category. Now we have docker and some other items. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything works. Only some minor issues:
- Save button has a fixed size as the "create new" button, in certain languages, this is not enough. Expecially in french where this have to be used mostly. So please
Doc build is complaining about missing configuration file. It worked a while back. Strange! |
I think is a new requirement. Can you open an issue for that? @tdipisa I'll review the PR in the meanwhile, but for merging it requires this to be fixed on the main project version: 2
python:
install:
- requirements: docs/requirements.txt
system_packages: true
mkdocs:
configuration: mkdocs.yml
fail_on_warning: false
@tdipisa can you assign this task to someone? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I applied the fixes in review by myself, please take a look
here I added a draft PR to fix the issue of readthedocs, you can start from this. I can not dedicate time today on this, hope it works. |
Hi @tdipisa , there was a missing comment I noticed you didn't replied, so just to double check, I ask for confirmation
I mean that the share plugin do not show when the map is new. So the permalink will not be visible too. Is this acceptable? |
yes |
closed and reopen to re-run checks |
@ElenaGallo please test this carefully on DEV once deployed. |
@dsuren1 some notes after testing the permalink: |
My feedback on this:
Ther rest is up to @dsuren1 |
|
Description
This PR introduces permalink functionality to Share
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (check one with "x", remove the others)
Issue
What is the current behavior?
What is the new behavior?
User can create permalink of the current state of the map, dashboard, geostory, context map. The permalink resources are saved as PERMALINK category and has unique resource id. The title attribute is shown in Save/SaveAs modal and TOC
Breaking change
Does this PR introduce a breaking change? (check one with "x", remove the other)
Other useful information