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

Add User and OrganizationMembers Resources #19

Merged
merged 6 commits into from
Jan 24, 2022
Merged

Add User and OrganizationMembers Resources #19

merged 6 commits into from
Jan 24, 2022

Conversation

glrf
Copy link
Contributor

@glrf glrf commented Jan 14, 2022

Summary

Introduces Users and OrganizationMembers according to https://kb.vshn.ch/appuio-cloud/references/architecture/control-api.html.

On Organization creation we will create an OrganizationMembers resource containing a reference to the creating user.

I introduced the same best effort abort logic to reduce the likelihood of us ending up in an inconsistent state. It's still possible if we e.g. crash during Organization creation, but that's our life without ACID and introducing something like sagas is IMO overkill.

Checklist

  • PR contains a single logical change (to build a better changelog).
  • Categorize the PR by setting a good title and adding one of the labels:
    bug, enhancement, documentation, change, breaking, dependency
    as they show up in the changelog.

@glrf glrf force-pushed the feat/users branch 2 times, most recently from f383cba to f95a269 Compare January 18, 2022 15:02
@glrf glrf self-assigned this Jan 18, 2022
Base automatically changed from feat/rolebinding to master January 18, 2022 15:58
@glrf glrf marked this pull request as ready for review January 19, 2022 09:54
@glrf glrf added the enhancement New feature or request label Jan 19, 2022
@glrf glrf requested review from ccremer and bastjan January 19, 2022 10:02
Copy link
Contributor

@ccremer ccremer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't look too deep into actual code though

apis/v1/organizationmembers_type.go Outdated Show resolved Hide resolved
apis/v1/user_types.go Outdated Show resolved Hide resolved
@glrf glrf merged commit 616cac5 into master Jan 24, 2022
@glrf glrf deleted the feat/users branch January 24, 2022 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants