-
Notifications
You must be signed in to change notification settings - Fork 59
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
Auto-create Application/Instance when first joining FlowForge #2553
Conversation
@@ -11,6 +11,27 @@ const inflightProjectState = { } | |||
|
|||
const inflightDeploys = new Set() | |||
|
|||
class ControllerError extends Error { |
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.
The long term intension would be to have a standard set of FlowForge error objects that we use throughout the app at various logical levels.
Codecov Report
@@ Coverage Diff @@
## main #2553 +/- ##
==========================================
+ Coverage 39.95% 40.06% +0.10%
==========================================
Files 495 498 +3
Lines 17763 17865 +102
Branches 4145 4182 +37
==========================================
+ Hits 7098 7158 +60
- Misses 10665 10707 +42
Flags with carried forward coverage won't be shown. Click here to find out more.
|
This method doesn't appear to be being used, and the includes clauses were totally invalid; a team doesn't have a projectype, stack or template.
a11f5af
to
e92f982
Compare
There is a frustrating out of memory error holding up the tests, but otherwise this is ready for review, pinging @joepavitt for frontend and @hardillb for backend as they have context. |
`app.db.models.Project.byUser(user)` seems to hand during tests, unclear why at this stage.
f185d66
to
b1a1948
Compare
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.
Quick read and a localfs test looks good to me,
Recommend "Default Application" being something like "Firstname Surname's Application" |
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.
This commit only has tests in?
Final thought, can we know client-side if this is their first time logging in? Cookie/session storage flag/check or something maybe? Would be good to use |
@joepavitt Let's investigate that as a follow up, I'm hesitant to keep increasing scope so close to release! |
For the record, I looked into how to how to track if this is the users first time landing on the page, but without implementing some sort of server side first time user experience tracking (.e.g a list of alerts the user has seen) or tracking an accounts state (again server side), there was no easy way to add it! |
Description
Adds a new admin config option
user:team:auto-create:instanceType
to the admins setting screen, nested under auto-creation of team types.If this option is set, when a user verifies their email, if they have a team (which they should always do thanks to the
team:auto-create
setting); the user is also given an application namedDefault Application
and an instance, which is based on the team, and username, with a random hash, like so:team-name-username-3425aed6
Screen.Recording.2023-08-02.at.12.14.34.mov
Related Issue(s)
Fixes #2475
Checklist
flowforge.yml
?flowforge/helm
to update ConfigMap Templateflowforge/CloudProject
to update values for Staging/ProductionLabels
backport
labelarea:migration
label