-
Notifications
You must be signed in to change notification settings - Fork 26
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
[imports] Relocate csv-imports to the backend: committee #1709
Comments
I am not sure, if I have the current action json_upload description. What should happen, if
in json_upload? The info of the second data set is interesting. Is there a difference, if a committee with name n1 already exists? Same with organization_tags, etc.
There are two interesting points here. Can we handle every instance separated? Committee update. Should we handle empty fields special?
How does the handling of add and remove committee_managers, meeting_admins, etc work? |
I looked at it and it seems to the current version
That isn't a very useful format. If it is easy for you throw a warning, that it is duplicate and let the user decide, whether he wants to import or not. If the committee doesn't exist, the second will throw an error on import, because we will generate 2 create events. IMO this doesn't matter, because it is no real use case to import the same committee twice in 1 import.
With organization_tags we should prevent it. If 2 committees want to use the same, we should generate only 1 create event, because it is a real use case to use an organization on more than 1 committee.
With this data it is easy:
Neither committee_managers, nor meeting_admins will be created, if they not exist. The committee_managers can be added or removed (don't mention it in he payload) from beeing committee_manager. |
Some questions about the
|
At import: |
changed in the import action description
IMO show an error in the line. The consequence is that the whole import fails.
In the action description
The
Besides common errors like action worker with data not found, errors are differences between the preview state and the state during import, i.e. an object expected to exist don't exist any more and vice versa. The user must be informed, that something he saw in the preview, has changed!
If there is a real exception, it is okay to be thrown.
Look for existing committees in database and in your action_data for creating committees. Because of possible circular relations you should handle the forwarding after the creation of all committees. |
Details see in actions https://github.com/OpenSlides/OpenSlides/wiki/without_templ.committee.json_upload and https://github.com/OpenSlides/OpenSlides/wiki/without_templ.committee.import.
@emanuelschuetze @MSoeb @rrenkert @jsangmeister @luisa-beerboom see specification of actions(links above) and let's discuss or give your okay for the factual requirements.
The text was updated successfully, but these errors were encountered: