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

Empty email: in template causes error #52

Open
thomasyu888 opened this issue May 4, 2022 · 2 comments
Open

Empty email: in template causes error #52

thomasyu888 opened this issue May 4, 2022 · 2 comments

Comments

@thomasyu888
Copy link
Member

thomasyu888 commented May 4, 2022

  File "/Users/tyu/anaconda3/envs/synapseformation/lib/python3.7/site-packages/synapseclient/client.py", line 2597, in invite_to_team
    raise ValueError("Must specify either 'user' or 'inviteeEmail'")
ValueError: Must specify either 'user' or 'inviteeEmail'
@lopierra
Copy link

lopierra commented May 4, 2022

UPDATE: For now, deleting the empty email: field from each of the teams works.

I attempted to create multiple teams with a single YAML file, but when I run synapseformation create, only the first team is created.

Snippet from my YAML file:

- name: INCLUDE_X01-DeSmith
  type: Team
  can_public_join: false
  description: DeSmith X01 study team
  invitations:
  - message: 
    members:
    - principal_id: 3423548 # lopierra
    - email: 
- name: INCLUDE_X01-Hakon
  type: Team
  can_public_join: false
  description: Hakonarson X01 study team
  invitations:
  - message: 
    members:
    - principal_id: 3423548 # lopierra
    - email: 
- name: INCLUDE_EXcEEDS
  type: Team
  can_public_join: false
  description: EXcEEDS (Fidler) study team
  invitations:
  - message: 
    members:
    - principal_id: 3423548 # lopierra
    - email: 
- name: INCLUDE_DS-Sleep
  type: Team
  can_public_join: false
  description: DS-Sleep (Martin) study team
  invitations:
  - message: 
    members:
    - principal_id: 3423548 # lopierra
    - email: 
- name: INCLUDE_DS-PALS
  type: Team
  can_public_join: false
  description: DS-PALS (Rabin) study team
  invitations:
  - message: 
    members:
    - principal_id: 3423548 # lopierra
    - email: 
- name: INCLUDE_ECODS
  type: Team
  can_public_join: false
  description: ECODS (Esbensen) study team
  invitations:
  - message: 
    members:
    - principal_id: 3423548 # lopierra
    - email: 
- name: INCLUDE_DS-ISP
  type: Team
  can_public_join: false
  description: DS-ISP (Baumer) study team
  invitations:
  - message: 
    members:
    - principal_id: 3423548 # lopierra
    - email: 
- name: INCLUDE_DS-Immune
  type: Team
  can_public_join: false
  description: DS-Immune (Khor) study team
  invitations:
  - message: 
    members:
    - principal_id: 3423548 # lopierra
    - email: 
- name: INCLUDE_DS-Brain
  type: Team
  can_public_join: false
  description: DS-Brain (Korenberg) study team
  invitations:
  - message: 
    members:
    - principal_id: 3423548 # lopierra
    - email: 
- name: INCLUDE_DS-COG-AML
  type: Team
  can_public_join: false
  description: DS-COG-AML (Meshinchi) study team
  invitations:
  - message: 
    members:
    - principal_id: 3423548 # lopierra
    - email: 
- name: INCLUDE_ADS
  type: Team
  can_public_join: false
  description: ADS (Head) study team
  invitations:
  - message: 
    members:
    - principal_id: 3423548 # lopierra
    - email: 

@thomasyu888
Copy link
Member Author

The issue is that templates can't have empty email: . Will rename this ticket

@thomasyu888 thomasyu888 changed the title Make sure multiple teams can be created from template Empty email: in template causes error May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants