-
Notifications
You must be signed in to change notification settings - Fork 96
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 #9583] Unadvertised resources #332
Conversation
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.
- When I share a resource to everyone, it is listed despite is true or false. In fact the
advertised
flag doesn't look to make difference. From my understanding it should filter out the items on search/list services (e.g. extjs and more), while make the direct request to resource or resource data still available.
- see my comment about default value. I tested and the values become anyway null. This causes a null pointer exception on requests like
get http://localhost:8081/rest/geostore/extjs/resource/52
@@ -15,3 +15,5 @@ create index idx_user_group_attr_text on gs_user_group_attribute (string); | |||
create index idx_attr_user_group on gs_user_group_attribute (userGroup_id); | |||
|
|||
alter table gs_user_group_attribute add constraint fk_ugattrib_user_group foreign key (userGroup_id) references gs_usergroup; | |||
|
|||
alter table gs_resource add column advertised bool not null; |
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 think it goes on a different file. Next version is 2.1.0
See also my comment about default value
doc/sql/migration/postgresql/postgresql-migration-from-v.1.5.0-to-v2.0.0.sql
Outdated
Show resolved
Hide resolved
src/core/model/src/main/java/it/geosolutions/geostore/core/model/Resource.java
Show resolved
Hide resolved
one hint. For testing MapStore with your changes I did the following (because master is pointing on latest GeoStore )
|
@offtherailz the resources should be still listed to their owners, at least this was a requirement. When you toggle |
Yes, during my test, that's what I noticed. |
@afabiani I think you can proceed fixing this according to the above review. I'm available if you have something to discuss. |
please @afabiani if you are not able to replicate let me know, we can try together. |
@offtherailz the requested changes have been done |
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.
Works great 👍
Part of geosolutions-it/MapStore2#9583