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

Introduce new privacy questions #591

Merged
merged 2 commits into from
Jul 5, 2023

Conversation

MKodde
Copy link
Contributor

@MKodde MKodde commented Jun 22, 2023

PART 2 of the Privacy Questions overhaul

In the second part, I added the new fields. Which are the dpaType and the multilingual PrivacyStatementUrl (nl+en) fields. They are added throughout the entire stack.

While at it, I found out the Privacy Questions where not included upon entity update actions. That was also addressed in this PR.

@MKodde MKodde marked this pull request as draft June 22, 2023 14:10
@MKodde MKodde force-pushed the feature/introduce-new-privacy-questions branch 5 times, most recently from c311794 to 7ade1a1 Compare June 26, 2023 14:53
@MKodde MKodde marked this pull request as ready for review June 26, 2023 14:58
Base automatically changed from feature/remove-unused-privacy-questions to develop June 28, 2023 08:28
@MKodde MKodde force-pushed the feature/introduce-new-privacy-questions branch from 7ade1a1 to 1a75d54 Compare June 29, 2023 13:58
@MKodde MKodde added the 5.1 label Jul 3, 2023
@MKodde MKodde requested review from rubencatshoek and pablothedude and removed request for rubencatshoek July 3, 2023 11:42
*/
class DpaType
{
public const DPA_TYPE_NOT_APPLICABLE = 'dpa_not_applicable';
Copy link
Contributor

Choose a reason for hiding this comment

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

Do all those constant have to be public?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, only the default was used outside of the VO scope.

Updated

@@ -68,6 +69,18 @@ class PrivacyQuestionsCommand implements Command
*/
private $otherInfo;

private DpaType $dpaType;
Copy link
Contributor

Choose a reason for hiding this comment

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

No assertion is needed here?

Copy link
Contributor Author

@MKodde MKodde Jul 5, 2023

Choose a reason for hiding this comment

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

Good point, I've added a NotBlank and Type assertion. Thanks for spotting that!

@MKodde MKodde force-pushed the feature/introduce-new-privacy-questions branch from a303313 to fd21189 Compare July 5, 2023 06:40
- New questions where added (dpatype + privacy policy url NL/EN)
- When saving an exisiting entity, also include the privacy questions.
  To achieve that goal, the priv. questions generator had to be called
  explicitly for the different entity type json generators.
@MKodde MKodde force-pushed the feature/introduce-new-privacy-questions branch from fd21189 to ae4616c Compare July 5, 2023 06:56
@MKodde MKodde merged commit 9d39076 into develop Jul 5, 2023
@MKodde MKodde deleted the feature/introduce-new-privacy-questions branch July 5, 2023 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants