Skip to content
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

Importing existing Accounts by only membership number must work #2457

Closed
luisa-beerboom opened this issue May 30, 2024 · 3 comments · Fixed by #2460
Closed

Importing existing Accounts by only membership number must work #2457

luisa-beerboom opened this issue May 30, 2024 · 3 comments · Fixed by #2460
Assignees
Labels
Becquerel projectname bug Michelson projectname needs investigation The cause for a bug is not clear enough, so it has to be investigated for some time staging Zeeman projectname
Milestone

Comments

@luisa-beerboom
Copy link
Member

luisa-beerboom commented May 30, 2024

See point 1 of #2456

especially comment #2456 (comment)

@luisa-beerboom luisa-beerboom self-assigned this May 30, 2024
@luisa-beerboom luisa-beerboom added this to the 4.2 milestone May 30, 2024
@luisa-beerboom luisa-beerboom added bug staging Becquerel projectname Zeeman projectname Michelson projectname labels May 30, 2024
@luisa-beerboom
Copy link
Member Author

Can't replicate, @Elblinator also can't replicate on localhost, we are assuming staging may be broken, assigning @m-schieder

@luisa-beerboom luisa-beerboom added the needs investigation The cause for a bug is not clear enough, so it has to be investigated for some time label May 30, 2024
@Elblinator
Copy link
Member

I tried it again and the import worked correctly
this time my localhost definitely ran on 4.1.10

@Elblinator
Copy link
Member

I moved the comment from the original Issue to here:
Additional Info:
File of account I created: Accounts (3).csv

File I tried to import the user into the meeting:
participants_only_mem_nr.csv

payload:

{
  "action": "participant.json_upload",
  "data": [
    {
      "data": [
        {
          "member_number": "blaueshaus"
        }
      ],
      "meeting_id": 150
    }
  ]
}

Preview:


message: "Actions handled successfully"
results: [[{id: 142, headers: [{property: "title", type: "string", is_object: true},…],…}]]
status_code: 200
success: true

Response:

{
    "status_code": 200,
    "success": true,
    "message": "Actions handled successfully",
    "results": [
        [
            {
                "id": 142,
                "headers": [
                    {
                        "property": "title",
                        "type": "string",
                        "is_object": true
                    },
                    {
                        "property": "first_name",
                        "type": "string",
                        "is_object": true
                    },
                    {
                        "property": "last_name",
                        "type": "string",
                        "is_object": true
                    },
                    {
                        "property": "is_active",
                        "type": "boolean",
                        "is_object": true
                    },
                    {
                        "property": "is_physical_person",
                        "type": "boolean",
                        "is_object": true
                    },
                    {
                        "property": "default_password",
                        "type": "string",
                        "is_object": true
                    },
                    {
                        "property": "email",
                        "type": "string",
                        "is_object": true
                    },
                    {
                        "property": "username",
                        "type": "string",
                        "is_object": true
                    },
                    {
                        "property": "gender",
                        "type": "string",
                        "is_object": true
                    },
                    {
                        "property": "pronoun",
                        "type": "string",
                        "is_object": true
                    },
                    {
                        "property": "saml_id",
                        "type": "string",
                        "is_object": true
                    },
                    {
                        "property": "member_number",
                        "type": "string",
                        "is_object": true
                    },
                    {
                        "property": "structure_level",
                        "type": "string",
                        "is_object": true,
                        "is_list": true
                    },
                    {
                        "property": "number",
                        "type": "string",
                        "is_object": true
                    },
                    {
                        "property": "vote_weight",
                        "type": "decimal",
                        "is_object": true
                    },
                    {
                        "property": "comment",
                        "type": "string",
                        "is_object": true
                    },
                    {
                        "property": "is_present",
                        "type": "boolean",
                        "is_object": true
                    },
                    {
                        "property": "groups",
                        "type": "string",
                        "is_object": true,
                        "is_list": true
                    }
                ],
                "rows": [
                    {
                        "state": "error",
                        "messages": [
                            "Found more users with name and email"
                        ],
                        "data": {
                            "member_number": {
                                "id": 7163,
                                "value": "blaueshaus",
                                "info": "done"
                            },
                            "id": 7163,
                            "username": {
                                "id": 7163,
                                "value": "BaluBaer",
                                "info": "new"
                            },
                            "groups": [
                                {
                                    "value": "Standard",
                                    "info": "generated",
                                    "id": 922
                                }
                            ]
                        }
                    }
                ],
                "statistics": [
                    {
                        "name": "total",
                        "value": 1
                    },
                    {
                        "name": "created",
                        "value": 0
                    },
                    {
                        "name": "updated",
                        "value": 0
                    },
                    {
                        "name": "error",
                        "value": 1
                    },
                    {
                        "name": "warning",
                        "value": 0
                    },
                    {
                        "name": "structure levels created",
                        "value": 0
                    },
                    {
                        "name": "groups created",
                        "value": 0
                    }
                ],
                "state": "error"
            }
        ]
    ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Becquerel projectname bug Michelson projectname needs investigation The cause for a bug is not clear enough, so it has to be investigated for some time staging Zeeman projectname
Projects
None yet
3 participants