geosmartcity-cip / gsc-datacatalogue Goto Github PK
View Code? Open in Web Editor NEWGeoSmartCity Data Catalogue
License: MIT License
GeoSmartCity Data Catalogue
License: MIT License
@AndreaDiNora, @giannibarrotta When issuing the command listDataOrigin I suppose it is the intention that the web service shall try to connect to the remote resource and retrieve potential datasets? In this case, do you have a valid path to a directory of ESRI Shapefiles - or to a PostgreSQL/PostGIS database table?
According to "11.2 Update/Assign layers/group to application", for each layer there are some parameters as:
queryable
basic,
overview
these parameters are useful to set info on client maps
@AndreaDiNora : description parameter is mandatory for application form
@AndreaDiNora, @giannibarrotta When trying to register a user with an e-mail address other than [email protected] a message is returned that the 'specificed email address does not exist'.
Current client functionalities have some problems because service have been updated.
We need to add also schema params in postgis datasource.
Verify the updated wiki.
Q: We should probably find some way of validating the content of the sld and metadata files? Presently I am loading text into the fields using the HTML5 FileAPI
A: Yes can be useful, but I think that at this moment there are many other problems
Q: Agreed, 2nd priority.
Q: According to wiki:
Three possible functions categories: application, data catalogue, layers.
A/Q: I have added type to the functions section but am unable to use type for anything since it is not returned by the list request.
A: Ok
In particular:
Data catalogue functions will be use to access data catalogue sections and activate specific functionality
I don’t see any control connected to this functions.
Admin can see admin sections as user controls panel. Any other user without specific function cannot see this panel.
A: I will use role to determine this but I didn’t know whether they were fixed with their final names as I need to use these as a fixed enumeration to make the checks.
A: These are current static functions common to all organization.
They cannot be edit.
A correction to what was said earlier, there are only two types of functions, Data Catalogue (code datacatalogue) and Client application (code map) the third type are in fact permits to give to the layer for single application.
Check “11.2 Update/Assign layers/group to application” of the wiki for more info, for example queryable is a parameter of layer that show the possibility to perform a wfs query on this layer on client.
A: OK – I receive these roles when I authenticate the user – but my users are not members of any roles and I am not able to get the function to add him to a role to work.
Q: The function that lists permissions for roles returns an array without wrapping it in a response object. This is handled in the application but is different from all other Web Services.
A: Ok
Q: The function to list layers does not accept organization alone as a parameter but requires specifying datasetId or layerId in addition. It would be convenient to be able to see all layers for an organization without these filters.
A: Ok
We need another value on combo in data origin in edit and create dataset page to allow ingestion
this value is "auto_update". The description of this value could be "Ingest from url".
Q: Add permission to role force the user to choose also layer and application.
There are permission not bounded by application and layer, for example show a specific control on client, or other functions type as say before.
A: I can only do this once the function returns the type so that I can differentiate between functions that relate to layers, applications.
Q: Remove layer in this screen, because the permissions for Layer will be indicated by assigntoapp service (see 11.2 Update/Assign layers/group to application on wiki page)
A: Done
Q: The function that lists applications does not list all details about the application - in order to populate the editing form this would be convenient
A: There is the search for id for details. If we return all details in application list we return too much data because the application config can be complex
Q: I now load the application using the idapplication parameter but I still do not get back any info
A: Ok
Q: bug on edit user page
@AndreaDiNora, @giannibarrotta I have temporarily used
@monstruil: Suggest to create and link to PDF user guide in user interface.
Also to be assessed, inline captions, lead-texts, placeholder text
With the present repository layout the server code is placed directly on the root. I have made a sub-folder called "client" where I will commit the client code.
Q: The function that lists 'functions' does not return organization id, type
A: List function service require an organization as parameter, why do you need an organization id? Only function without an organization id are preconfigured admin functions showed with includeadminrecords to true. These functions are not linked to any organization.
Q: merely because it would be consistent with the behavior of other services. However, I can hide organization from the function form altogether and just use the current organization for all CRUD operations.
Type is missing from the response. Required to distinguish which other fields to show.
A: Ok
Q: Clean a previous edit
If I enter in edit mode, datasource, dataset etc, when change tab e reenter without select the data, I found previous settings, so user to create a new data, must click on clear. Can be useful clear section when enter on it from tab.
A: Yes – I understand. I initially ran a function to clear the form when the tabs were clicked but it turned out that function also was invoked when I changed the focus programmatrically. When I had populated the model of the form it was suddenly empty. I will find a solution to this. I need some more thinking on this issue.
Q: Configuration of data is strictly connected to organization. One user of an organization cannot see data of another organization.
Use an admin account to create data for different organization is a bit an error, but in this case we need a combo where we can set the organization so the admin can see data for this specific organization and no others.
A: I will add a drop-down that permits users to select the current organization id of theirs if they have several.
Q: The list role function does not return associated users – I need this list to be able to edit the number of users of an existing role
A: The list of users can be found on response of service. Try:
{ "organization": "872" }
Do you have a role with user assigned?
A: Aparently, that was the problem. The listing works now – but an error persists whenever I try to add a new user to the SystemAdmin role:
{"status":"error","description":"One of the specified id parameters is not a number.","request":{"idrole":1,"users":[{"iduser":1,"username":"Admin"},{"iduser":405,"username":"runar"}]}}
The same function works for other roles.
When create a group, instead of description, the request contain organization with the value of description.
Q: The function to list group layers does not return the group layer description, also (layers appears to be missing if the layer was created with layers that do not belong to the same organization)
A: Is not a problem return also description.
Layers of another organization must not showed. Organization are important to aggregate data of same pilot.
Q: There does not appear to be any method to edit group layer name or description
A: Yes, this is true, if you think that is useful we can create this service.
@monstruil: Suggest to make screen capture demo that illustrates the end-to-end workflow using the data catalogue.
@AndreaDiNora, @giannibarrotta No parameter name is specified in the test set specification. The error message suggets that it should be 'id'.
Probably best if they are sorted by name?
We added to wiki some examples of datasource and dataset creation for publish to Geoserver.
Datasource:
https://github.com/GeoSmartCity-CIP/gsc-datacatalogue/wiki/GSC-Data-Catalogue-Services#71--create
Application:
https://github.com/GeoSmartCity-CIP/gsc-datacatalogue/wiki/GSC-Data-Catalogue-Services#111-create
It is clear that you need also datasets and layers but their creation is standard.
Q: Where should we implement the get configuration method - mainly in client applications I assume?
A: Correct
@AndreaDiNora, @giannibarrotta
The following are questions that needs to be resolved. The issue may be on the server or it may be that the client is passing the wrong parameters. We should verify this in a screen-by-screen walk-through of the service at your earliest convenience.
The issues that I have identified are as follows:
Otherwise it might be useful to have a mechanism to list users directly
Hi,
we need to add to client also the Application section.
This section is important to publish on Geoserver for two reasons:
Q: As with the 'publish to CKAN' button, When to display the publish (to GeoServer) button for applications? Presently it is shown for all. Also, this service does not return valid JSON
A: It’s ok on applications list
Q: What are the conditions when the publish (to CKAN) button should be displayed for data sources. Presently it is shown in the action column for all data sources - but obviously this is not the intention?
A: Publish on Ckan must be showed when datasource (or dataset can be used as ckan data). For example a single shapefile is a dataset that can be be published on Ckan.
Q: Ok –are we able to determine that from some analysis of the other properties so that I can hide show the button? Should probably discuss.
A: Ok
Q: The list user function does not return associated roles – that means I cannot edit other users than the currently logged in one.
A: User can be assigned to Roles only by admin.
The flow is this:
Admin use listrole (4.3 Search/List) to list all roles with all user associated, with assignrole (4.4 Assign/remove users to role) admin, can edit list users associated to a rule.
A: This flow is not implicit. Users can create roles that are specific to organizations – but need to have the aid from an admin to assign users to it? We need to discuss this flow.
@AndreaDiNora, @giannibarrotta The update method in the user web service requires the username to remain unchanged. This may be intentional behavior - but in such case, what is the rationale for keeping the id parameter? As additional security?
Now accepts only organization name - not id.
This is ok - but if there are two organizations with partially the same name - they will both be returned.
Q: The function to return column names for some layers/datasets reports that no columns could be found
Steps to reproduce:
A: There is a bug on our service that delete columns when update the dataset. So you can see the columns only on dataset not updated.
Q: Login service accept username, no email. I cannot use my username to access to application.
Is [email protected] cabled?
A: [email protected] and its password is hard-coded for development purposes
The user.login service returns user data directly and not a status message. Therefore it failed. I have now altered it so that it checks for a numeric iduser on the response – if it is present it interprets it as success.
Q: Problem persists after checking out most recent version
A: Looks like gsc.js library is out of date on server.
@AndreaDiNora : drop-down is redundant as organization already selected in left-bar.
Q: General question: is it an error when there are no elements for list? Some of the response objects return error when there are no data to be returned for a list request.
Could it be ok with 'done' and an empty array. It has some consequence for how responses are parsed.
A: Can you give me an example?
Q: An error is returned if listperm is executed with role as input parameter?
A: Ok
In Datasource create/update page, organization is a normal field. This must be removed because, the user has already an organization (choosed from combo).
@AndreaDiNora, @giannibarrotta This means a list request will only return exactly ONE record. This function needs to return all datasources for the logged in user and/or his organizations?
Q: A single request to create dataset creates two duplicate datasets... This may be wrong on the client end - but I am unable to see what I am doing wrong?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.