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 methodOfRedress to DSA tenant settings #4395

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

nick-funk
Copy link
Contributor

@nick-funk nick-funk commented Nov 14, 2023

What does this PR do?

Adds a methodOfRedress to the tenant DSA settings.

These changes will impact:

  • commenters
  • moderators
  • admins
  • developers

What changes to the GraphQL/Database Schema does this PR introduce?

Adds methodOfRedress to the DSAConfiguration type and it's corresponding settings inputs.

Does this PR introduce any new environment variables or feature flags?

No

If any indexes were added, were they added to INDEXES.md?

No new indices.

How do I test this PR?

  • Go to Admin > Config > General > Digital services act
  • See the new Select your method of redress
  • Set it to something other than None
  • Save changes
  • Reload page and see that the change is persisted

Where any tests migrated to React Testing Library?

No

How do we deploy this PR?

Merge into DSA epic branch and release with rest of epic.

Sorry, something went wrong.

Verified

This commit was signed with the committer’s verified signature. The key has expired.
Zitrone44 Jonas Kuche
@nick-funk nick-funk marked this pull request as ready for review November 14, 2023 23:33
Copy link
Contributor

@kabeaty kabeaty left a comment

Choose a reason for hiding this comment

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

Looking good overall! Just two things:

  1. If email or url is selected as the method of redress, should there also be an input shown to add the appropriate email/url to be shown in this case?
  2. Do we also need to update the defaultDSAConfiguration in src/core/server/models/settings/settings.ts to include methodOfRedress: GQLDSA_METHOD_OF_REDRESS.NONE?

URL = "URL",
}

export const parseVal = (v: any, name: string) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need this parseVal and format? Seems like it works fine without them?

Copy link
Contributor Author

@nick-funk nick-funk Nov 15, 2023

Choose a reason for hiding this comment

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

it wasn't working for me without them, but I can try again

@kabeaty kabeaty merged commit 6a2a586 into feat/dsa-launch-pad Nov 15, 2023
@kabeaty kabeaty deleted the feat/DSA-config-method-of-redress branch November 15, 2023 18:12
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.

None yet

2 participants