-
Notifications
You must be signed in to change notification settings - Fork 0
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
Better handling of form edits and versioning. #150
Comments
This is mostly portal work i.e. the ability to clone surveys. Discussion in Basecamp is here Until then, we should make sure Survey Coordinators know don't change surveys that already have data submitted to them. They should create new surveys at the portal as a workaround instead. |
Perhaps we need to discuss a little more. I feel that this also has On 12 June 2015 at 12:35, M. Koutroumpas [email protected] wrote:
|
So, the idea is that once the user clicks on the authoring link tool, no one will be able to modify the survey. But they will have instead a "duplicate" button. Is that right? |
That's correct |
i think the default 'duplicate content' offers the required functionality; duplicate the survey with a new uuid; on which a new app configuration can be coupled; Note that this survey is duplicated in the same group, so the same users can access it |
Let's be clear on the fact that with this workaround we're solving a limitation of the pcapi data explode scripts that currently aren't able to detect if the model has been changed, so an update on the postgres table structure would have been required, and from a user perspective this workaround is not optimal |
@pvgenuchten this is not true. PCAPI is very much able to detect changes and it tries really hard to overcome this limitation. In particular the table schema will be updated if there are no observations already uploaded. However, if there are already observations published with the old schema there is nothing PCAPI can do to magically transform irrelevant data models to each other. |
What no-SQL databases do is add the new columns with a null or empty value for the previous records. But we can implement the duplicate button and not add more complexity to PCAPI, who knows what other implications this may bring. |
@Delawen I am happy to implement this in PCAPI if you explain how. Complexity is not a problem if it is the right thing to do. However I am still not convinced that this is the right thing. Could you please explain this by providing an example how an existing Feature with data model (Text, Decision Tree, Image 1, Image 2, Geom) gets converted to a new data model with (Text, Audio, Date) ? If the answer is to concatenate the two data models into a huge one while adding NULLs in the middle then we need an explanation for the Co-design users when they get a 100 Column database of NULLs after a couple of revisions. We also need to make sure that existing OGC implementation like Geoserver, SOS, WPSs don't mind a featuretype that can change in every second. In any case NoSQL databases do solve this but not with NULLs. They are just embedding the schema in every observation, which is exactly what PCAPI already does. |
Well, the idea is not to concatenate "as is", but detect the fields that have changed and add them. And then detect the fields that are no longer there and just add like a "ghost" field with an empty value. If a field has changed the type, then it counts as a removal and new add. About OGC services, as long as we don't cache them, it is not a problem. Maybe we will have to tell GeoServer to refresh the schema, but that's all. But I don't know what are the implications of doing this on PCAPI, that's why if you say it is not "easy" (easy, fast, useful, too complex), then just forget about it and we add the duplicate button. |
@Delawen , it is "easy", it just does not seem sensible to do so |
@Delawen to summarize above: if you add a parameter parent_sid=X along with the existing sid=Y when calling the survey designer it will load X and save it as Y. |
Thanks.
|
On some basecamp thread I cannot find now (or was it an ITF?) someone mentioned that the clone button was no longer needed. Did I dream it or does it make sense? |
The COBWEB design depends on the premise that there is one schema (data-model) per survey. This causes problems for Survey Coordinators that change their survey after submitting records in an old survey. The workflow is:
The obvious solution for this is to assume that changes in surveys are actually different surveys (i.e. survey versioning). This complies with the COBWEB data-model (WP7) and the whole design of the architecture as endorsed by COBWEB partners.
The text was updated successfully, but these errors were encountered: