-
Notifications
You must be signed in to change notification settings - Fork 111
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
Create owner role and prepare migration #127
Conversation
@@ -129,6 +129,7 @@ | |||
"@phpstan", | |||
"@coverage-ci", | |||
"bin/console lint:twig templates --show-deprecations", | |||
"rm -rf var/cache/prod", |
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.
prevent fail when entity mapping changed
Codecov Report
@@ Coverage Diff @@
## members #127 +/- ##
==========================================
Coverage 99.83% 99.83%
- Complexity 1073 1087 +14
==========================================
Files 190 190
Lines 3083 3102 +19
==========================================
+ Hits 3078 3097 +19
Misses 5 5
Continue to review full report at Codecov.
|
$this->addSql('ALTER TABLE organization_package ADD CONSTRAINT FK_13BAEFD632C8A3DE FOREIGN KEY (organization_id) REFERENCES organization (id) NOT DEFERRABLE INITIALLY IMMEDIATE'); | ||
$this->addSql('ALTER TABLE organization_token ADD CONSTRAINT FK_D1B047FC32C8A3DE FOREIGN KEY (organization_id) REFERENCES organization (id) NOT DEFERRABLE INITIALLY IMMEDIATE'); | ||
$this->addSql('ALTER TABLE organization ADD CONSTRAINT FK_C1EE637C7E3C61F9 FOREIGN KEY (owner_id) REFERENCES "user" (id) NOT DEFERRABLE INITIALLY IMMEDIATE'); | ||
$this->addSql('ALTER TABLE user_oauth_token ADD CONSTRAINT FK_712F82BFA76ED395 FOREIGN KEY (user_id) REFERENCES "user" (id) NOT DEFERRABLE INITIALLY IMMEDIATE'); |
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.
shame 😞 it had to be lost when flattening migration
@@ -36,11 +34,6 @@ public function alias(): string | |||
return $this->alias; | |||
} | |||
|
|||
public function ownerEmail(): string | |||
{ | |||
return $this->ownerEmail; |
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.
for now removed, maybe we will need members
feature for admin (but for now it's not needed)
tests/Unit/Entity/UserTest.php
Outdated
public function testNoneWhenNoOrganizations(): void | ||
{ | ||
self::assertTrue(Option::none()->equals($this->user->firstOrganizationAlias())); | ||
} |
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.
hmm, this should not be removed
25cc19c
to
764b5a0
Compare
764b5a0
to
c24e449
Compare
Next part of #56.
⚠️
Now everyone can do anything 😱 , so I have to create permissions.