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

Remove 'production entities enabled' feature toggle from the Service entity #628

Merged
merged 5 commits into from
May 16, 2024

Conversation

MKodde
Copy link
Contributor

@MKodde MKodde commented May 14, 2024

The 'production entities enabled' feature toggle is not used by the PO's of SPD. They always allow the services to create production entites. Having this featue is illogical, and it can be cleaned up.

Note that a Doctrine migration was created to remove the column from the service table.

https://www.pivotaltracker.com/story/show/187053888

@MKodde MKodde force-pushed the feature/remove-prod-ent-enabled-switch branch 2 times, most recently from 2e778b3 to 4472496 Compare May 16, 2024 10:08
From the Service entity. This setting is never used. All services have
the production enitties enabled by default. So this setting is never
used, and can be removed
@MKodde MKodde force-pushed the feature/remove-prod-ent-enabled-switch branch from 4472496 to d24e12c Compare May 16, 2024 10:26
@MKodde MKodde requested a review from parijke May 16, 2024 12:41
Copy link
Contributor

@parijke parijke left a comment

Choose a reason for hiding this comment

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

Small suggestions / questions, no blockers to merge IMHO

@@ -51,7 +50,7 @@ public function __construct(
private ?string $intakeStatus,
private ?string $contractSigned,
private ?string $surfconextRepresentativeApproved,
private ?string $privacyQuestionsAnswered,
private bool $privacyQuestionsAnswered,
Copy link
Contributor

Choose a reason for hiding this comment

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

not nullable anymore?

BTW, I heard a statement, that bool variables "sh|c"ould be named with is in front, like $isPrivacyQuestionAnswered.

Butt hat is probably not for now

Copy link
Contributor

Choose a reason for hiding this comment

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

If is is not nullebale, maybe initilize it with false to be sure?

Copy link
Contributor Author

@MKodde MKodde May 16, 2024

Choose a reason for hiding this comment

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

Good point, I looked it up, and it should always be set. My own testing and the CI functional tests did confirm my assumption. I feel confident to leave it like this.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

@MKodde MKodde left a comment

Choose a reason for hiding this comment

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

Thanks for your review @parijke

@MKodde MKodde merged commit d7b62ea into main May 16, 2024
2 checks passed
@MKodde MKodde deleted the feature/remove-prod-ent-enabled-switch branch May 16, 2024 13:48
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

Successfully merging this pull request may close these issues.

2 participants