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-2426 Adds new config options to support notice-only banner + modal #5136

Merged
merged 9 commits into from
Jul 30, 2024

Conversation

eastandwestwind
Copy link
Contributor

@eastandwestwind eastandwestwind commented Jul 29, 2024

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

Description Of Changes

Adds 2 new config options to support notice-only banner + modal

Code Changes

  • Update model and add migration

Steps to Confirm

Pre-Merge Checklist

  • All CI Pipelines Succeeded
  • Documentation:
    • documentation complete, PR opened in fidesdocs
    • documentation issue created in fidesdocs
    • if there are any new client scopes created as part of the pull request, remember to update public-facing documentation that references our scope registry
  • Issue Requirements are Met
  • Relevant Follow-Up Issues Created
  • Update CHANGELOG.md
  • For API changes, the Postman collection has been updated
  • If there are any database migrations:
    • Ensure that your downrev is up to date with the latest revision on main
    • Ensure that your downgrade() migration is correct and works
      • If a downgrade migration is not possible for this change, please call this out in the PR description!

Copy link

vercel bot commented Jul 29, 2024

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

Name Status Preview Comments Updated (UTC)
fides-plus-nightly ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 30, 2024 6:32pm

Copy link

cypress bot commented Jul 29, 2024



Test summary

4 0 0 0


Run details

Project fides
Status Passed
Commit 4be0513bfc ℹ️
Started Jul 30, 2024 6:39 PM
Ended Jul 30, 2024 6:40 PM
Duration 00:34 💡
OS Linux Ubuntu -
Browser Electron 106

View run in Cypress Cloud ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Cloud

Copy link

codecov bot commented Jul 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.54%. Comparing base (1ff4d8c) to head (df533d8).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5136      +/-   ##
==========================================
- Coverage   86.56%   86.54%   -0.02%     
==========================================
  Files         357      357              
  Lines       22354    22330      -24     
  Branches     2957     2955       -2     
==========================================
- Hits        19351    19326      -25     
  Misses       2480     2480              
- Partials      523      524       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@eastandwestwind eastandwestwind requested a review from galvana July 30, 2024 18:05
@eastandwestwind eastandwestwind changed the title PROD-2426 Adds new config options to support notice-only banner + modal [DRAFT] PROD-2426 Adds new config options to support notice-only banner + modal Jul 30, 2024
Comment on lines +86 to +92
@declared_attr
def layer1_button_options(cls) -> Column:
return Column(
EnumColumn(Layer1ButtonOption),
nullable=True,
index=False,
)
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the reason for making this a declared_attr?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is similar to how we declare ComponentType(Enum). Basically using this instead of formalizing it in the DB allows for more flexibility with future enum changes where we won't need a whole migration.

@eastandwestwind eastandwestwind merged commit a318829 into main Jul 30, 2024
32 checks passed
@eastandwestwind eastandwestwind deleted the PROD-2426 branch July 30, 2024 18:46
Copy link

cypress bot commented Jul 30, 2024



Test summary

4 0 0 0


Run details

Project fides
Status Passed
Commit a318829
Started Jul 30, 2024 6:58 PM
Ended Jul 30, 2024 6:58 PM
Duration 00:36 💡
OS Linux Ubuntu -
Browser Electron 106

View run in Cypress Cloud ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Cloud

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