-
Notifications
You must be signed in to change notification settings - Fork 409
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
Unadvertised resources #9583
Unadvertised resources #9583
Comments
I think there are some typos in this issue that make us difficoult to understand. From my undestanding it is asking for "Unadvertized" resources not listed in Home and not listed in the Map Catalog plugin. |
I've updated a bit the description to make it clearer. That's the point anyway, what is difficult tu understand here?
Why using permalinks should satisfy the requirements that are asking for a completely different thing? Unadvertized resources must be anyway visible in MS Catalog but only for admins. |
@tdipisa |
@dsuren yes, I think this from description make it already quite clear:
isn't it? |
So in that case, wouldn't it be better that we disable the group permission options when |
No, nothing should change for this. |
Okay. Thanks |
Blocked waiting for further evaluations on the backend. |
@tdipisa @offtherailz PR for the backend available here |
Thank you @afabiani. @offtherailz will review asap. |
Reporting usage infoBasically you have to add to POST/PUT requests for create/edit the resource adding the
<Resource>
<description>
<![CDATA[]]>
</description>
<metadata></metadata>
<name>
<![CDATA[test-save-unadvertised]]>
</name>
<advertised>
false
</advertised>
<category>
<name>MAP</name>
</category>
<Attributes>
<attribute>
<name>attributes</name>
<value>null</value>
<type>STRING</type>
</attribute>
</Attributes>
<store>
<data>
// DATA
</data>
</store>
</Resource>
<Resource>
<description>
<![CDATA[]]>
</description>
<metadata></metadata>
<name>
<![CDATA[a]]>
</name>
<advertised>
false
</advertised>
</Resource> I also added an example here: https://github.com/geosolutions-it/geostore/wiki/REST-API-examples |
@Igi-ID (FYI @offtherailz) |
@tdipisa just a clarification for this:
In our case I think this checkbox should be show to everyone that can edit the resource, that is consistent with the rest of the model.
Please confirm that |
Confirmed @offtherailz @Igi-ID AC not so well expressed, it seems. |
Added unadvertised field in Metadata.jsx, shown in modal form. Checkbox, controlled. Adjust handleResourceData.jsx enhancer, include unadvertised field from resource originalData unto props passed to Metadata.jsx. Added translations for unadvertised field.
Description
Include the possibility to have unadvertised resources in MS: maps, dashboards and geostories (app contexts are excluded for now).
From the Edit properties panel of a resource it is possible for the admin/owner to make a resource unadvertised. Doing that, the resource will appear in the Home page or in the Map Catalog tool only for admin users or the owner (as per usual behaviour admins can change that setting for all resources and normal users only for their own resources).
For other users accessing the resources directly (e.g. that can open the Edit Properties within it), we can consider to include a notifications simply to inform that the resource is Unadvertized so that they can be aware of this (for example the same as above screenshot but with the checkbox disabled).What kind of improvement you want to add? (check one with "x", remove the others)
Other useful information
The text was updated successfully, but these errors were encountered: