-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add User Invite Resource #120
Conversation
fullName := fmt.Sprintf("users.%d.full_name", usersIdx) | ||
if instanceState.Attributes[fullName] == "" { | ||
return fmt.Errorf("expected 'full_name' to be set") | ||
} | ||
status := fmt.Sprintf("users.%d.status", usersIdx) | ||
if instanceState.Attributes[status] == "" { | ||
return fmt.Errorf("expected 'status' to be set") | ||
} | ||
avatarUrl := fmt.Sprintf("users.%d.avatar_url", usersIdx) | ||
if instanceState.Attributes[avatarUrl] == "" { | ||
return fmt.Errorf("expected 'avatar_url' to be set") | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when we create new user invites, those users can be found in our org but by default they do not have the fields fullName
or avatarUrl
populated
removed so the test would not check those fields (as they'll always be empty for user invites)
) { | ||
var data models.UserInvite | ||
|
||
// Delete existing user invite |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment seems outta place
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we can add this to above the function definition of what we're gonna do something like
1. Delete existing user invite
2. Create a new user invite
<reason why>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added the comment to make it clear that we delete the existing user invite first and then create a new user invite (since we don't have an update user invite endpoint)
Description
Add support for user invite resource on terraform.
🎟 Issue(s)
#113
🧪 Functional Testing
Create user invite
![Screenshot 2024-08-01 at 5 33 49 PM](https://private-user-images.githubusercontent.com/69920967/354421545-c4c44616-24e7-4e6f-b0f4-0eaadf9ec538.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMTQwMjgsIm5iZiI6MTczOTExMzcyOCwicGF0aCI6Ii82OTkyMDk2Ny8zNTQ0MjE1NDUtYzRjNDQ2MTYtMjRlNy00ZTZmLWIwZjQtMGVhYWRmOWVjNTM4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDE1MDg0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ0NTM5M2Q0YWQ0MDYzNGI0OTRkZGVhZjZkYjMxZTU0MGJlMzZkZTQ0OGExZWY4NGZjOTAwZDIwZWVjMGI0NjAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.L7s2JFGDC7jeVwW5HnRUzvcYsP-mILqu8yCSQJxyHrk)
Update user invite
![Screenshot 2024-08-01 at 5 46 39 PM](https://private-user-images.githubusercontent.com/69920967/354423234-a43fd3de-266a-4232-9681-ba22c6861d62.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMTQwMjgsIm5iZiI6MTczOTExMzcyOCwicGF0aCI6Ii82OTkyMDk2Ny8zNTQ0MjMyMzQtYTQzZmQzZGUtMjY2YS00MjMyLTk2ODEtYmEyMmM2ODYxZDYyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDE1MDg0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRmZTcyNzNlYTczMzgyOGFhYzcxZjY1MzcwZDEyMGQxNzI1OWUyYWY5MDk1OWUzZTk2YWI0MDAwZTEzNWYyODYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.yRDGMFsxbKBvII1W-7oS28Q7XD2yrg4YDf1m0jwsWJc)
Delete user invite
![Screenshot 2024-08-01 at 5 47 22 PM](https://private-user-images.githubusercontent.com/69920967/354423344-51fe4537-dc4b-465e-857c-2a87cb5aec1d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMTQwMjgsIm5iZiI6MTczOTExMzcyOCwicGF0aCI6Ii82OTkyMDk2Ny8zNTQ0MjMzNDQtNTFmZTQ1MzctZGM0Yi00NjVlLTg1N2MtMmE4N2NiNWFlYzFkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDE1MDg0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWIzOGEwMWNiMDg1OWFiOGY1NTM2YWRkZWNiYjE2YTc5MDk0NTFlYzJiY2U3N2QxZWIxNGJlMjg2M2VjYzEzYzkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.oPEG4hRUEvhK247coiaZL7FY32cgIJhiD5pNkTsuM2Q)
📸 Screenshots
📋 Checklist
examples/
directory