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

PROD-2476: Support hierarchical notices in Admin-UI #5300

Merged
merged 23 commits into from
Sep 24, 2024
Merged

Conversation

lucanovera
Copy link
Contributor

@lucanovera lucanovera commented Sep 19, 2024

Closes https://ethyca.atlassian.net/browse/PROD-2476

Description Of Changes

In the edit notice screen, add an option to the form to select notice children therefore adding support for hierarchical notices.

Code Changes

  • Add option to select child notices in the edit notice screen
  • In the consent automation form, if a parent notice is linked to a consentable item, then the child consent item should only be able to link to childrens of that parent notice.

Screenshots

Linking child notices from the edit notice screen
Captura de pantalla 2024-09-19 a la(s) 10 24 27 a  m

Linking notices and child notices in a consent automation integration
Captura de pantalla 2024-09-19 a la(s) 10 24 09 a  m

Steps to Confirm

  • Creating a child/parent relationship between notices

    • Create a new notice from admin-ui (let's say "Weekly Newsletter")
    • Now go to edit another notice that will become the parent (let's say "Marketing")
    • Check that there's a new Child notices section, and add that child notices
    • You can also check that you can add/remove child notices
  • Linking a child item with a consetable item integration

    • Create a new test system
    • Go to Integration, select Iterable, fill out the API key (1pass)
    • Now expand the Consent Automation accordion
    • Now you can link notices
    • Check that you can link Marketing Channel (Email) to the notice "Marketing"
    • Check that the child consent items (Marketing Message / Untitled message type) can be link only to child notices of the Marketing notice (that would be Weekly Newsletter we created)
    • Check that the integration can be saved correctly

Pre-Merge Checklist

  • All CI Pipelines Succeeded
  • Issue Requirements are Met
  • Update CHANGELOG.md

Copy link

vercel bot commented Sep 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
fides-plus-nightly ⬜️ Ignored (Inspect) Visit Preview Sep 24, 2024 6:56pm

Copy link

cypress bot commented Sep 19, 2024

fides    Run #10099

Run Properties:  status check passed Passed #10099  •  git commit 4d0703127f ℹ️: Merge 9dda7ee9a93ad8b2775f7e35e07d21d8963d17b3 into 41094b7274adb21532c23abbd898...
Project fides
Branch Review refs/pull/5300/merge
Run status status check passed Passed #10099
Run duration 00m 38s
Commit git commit 4d0703127f ℹ️: Merge 9dda7ee9a93ad8b2775f7e35e07d21d8963d17b3 into 41094b7274adb21532c23abbd898...
Committer Lucano Vera
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 4
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.
View all changes introduced in this branch ↗︎

Copy link
Contributor

@eastandwestwind eastandwestwind left a comment

Choose a reason for hiding this comment

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

Did a screenshare CR with @lucanovera and he will work on additional validation to the notice detail page, such that we cannot add a child notice to a child notice 😄

Otherwise, this is in good shape. Thanks!

@lucanovera
Copy link
Contributor Author

Did a screenshare CR with @lucanovera and he will work on additional validation to the notice detail page, such that we cannot add a child notice to a child notice 😄

Great! I just pushed the change to prevent adding child notices to child notices.

Copy link
Contributor

@eastandwestwind eastandwestwind left a comment

Choose a reason for hiding this comment

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

Nice work on those updates, thanks!

@lucanovera lucanovera merged commit 06d25c7 into main Sep 24, 2024
43 checks passed
@lucanovera lucanovera deleted the PROD-2476 branch September 24, 2024 20:44
Copy link

cypress bot commented Sep 24, 2024

fides    Run #10102

Run Properties:  status check passed Passed #10102  •  git commit 06d25c744e: PROD-2476: Support hierarchical notices in Admin-UI (#5300)
Project fides
Branch Review main
Run status status check passed Passed #10102
Run duration 00m 41s
Commit git commit 06d25c744e: PROD-2476: Support hierarchical notices in Admin-UI (#5300)
Committer Lucano Vera
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 4
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.
View all changes introduced in this branch ↗︎

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.

3 participants